ip.h
IP address structure containing the bytes of a v4 or v6 IP address.
Definition: ip.h:63
EXTERNAL fiftyoneDegreesEvidenceIpAddress * fiftyoneDegreesIpParseAddress(void *(*malloc)(size_t), const char *start, const char *end)
Parse a single IP address string.
Definition: ip.c:158
EXTERNAL void fiftyoneDegreesIpFreeAddresses(void(*free)(void *), fiftyoneDegreesEvidenceIpAddress *addresses)
Free a linked list of IP addresses.
Definition: ip.c:146
fiftyoneDegreesEvidenceIpType type
The type of address (v4 or v6)
Definition: ip.h:64
fiftyoneDegreesEvidenceIpAddress * next
Next address in the list or NULL.
Definition: ip.h:67
fiftyoneDegreesEvidenceIpType
Enum indicating the type of IP address.
Definition: ip.h:47
EXTERNAL fiftyoneDegreesEvidenceIpAddress * fiftyoneDegreesIpParseAddresses(void *(*malloc)(size_t), const char *start)
Parse a list of IP addresses and return as a linked list.
Definition: ip.c:192
byte * current
When building the address the next byte to update.
Definition: ip.h:66
byte * address
The first byte of the address.
Definition: ip.h:65
byte bytesPresent
Number of bytes in the original string which are not abbreviated.
Definition: ip.h:69
