ip.h
IP address structure containing the bytes of a v4 or v6 IP address.
Definition: ip.h:70
fiftyoneDegreesEvidenceIpAddress * fiftyoneDegreesIpParseAddress(void *(*malloc)(size_t), const char *start, const char *end)
Parse a single IP address string.
fiftyoneDegreesEvidenceIpType type
The type of address (v4 or v6)
Definition: ip.h:71
fiftyoneDegreesEvidenceIpAddress * next
Next address in the list or NULL.
Definition: ip.h:74
fiftyoneDegreesEvidenceIpType
Enum indicating the type of IP address.
Definition: ip.h:54
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:73
byte * address
The first byte of the address.
Definition: ip.h:72
byte bytesPresent
Number of bytes in the original string which are not abbreviated.
Definition: ip.h:76