ip.h
IP address structure containing the bytes of a v4 or v6 IP address.
Definition: ip.h:75
fiftyoneDegreesEvidenceIpAddress * fiftyoneDegreesIpParseAddress(void *(*malloc)(size_t), const char *start, const char *end)
Parse a single IP address string.
int fiftyoneDegreesCompareIpAddresses(const unsigned char *ipAddress1, const unsigned char *ipAddress2, fiftyoneDegreesEvidenceIpType type)
Compare two IP addresses in its binary form.
fiftyoneDegreesEvidenceIpType type
The type of address (v4 or v6)
Definition: ip.h:76
fiftyoneDegreesEvidenceIpAddress * next
Next address in the list or NULL.
Definition: ip.h:79
fiftyoneDegreesEvidenceIpType
Enum indicating the type of IP address.
Definition: ip.h:59
void fiftyoneDegreesIpFreeAddresses(void(*free)(void *), fiftyoneDegreesEvidenceIpAddress *addresses)
Free a linked list of IP addresses.
fiftyoneDegreesEvidenceIpAddress * fiftyoneDegreesIpParseAddresses(void *(*malloc)(size_t), const char *start)
Parse a list of IP addresses and return as a linked list.
byte * current
When building the address the next byte to update.
Definition: ip.h:78
byte * address
The first byte of the address.
Definition: ip.h:77
byte bytesPresent
Number of bytes in the original string which are not abbreviated.
Definition: ip.h:81