diff options
Diffstat (limited to 'gdhcp/common.h')
-rwxr-xr-x[-rw-r--r--] | gdhcp/common.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdhcp/common.h b/gdhcp/common.h index 1ab9a7cd..7da13135 100644..100755 --- a/gdhcp/common.h +++ b/gdhcp/common.h @@ -170,6 +170,14 @@ static const uint8_t dhcp_option_lengths[] = { [OPTION_U32] = 4, }; +/* already defined within netinet/in.h if using GNU compiler */ +#ifndef __USE_GNU +struct in6_pktinfo { + struct in6_addr ipi6_addr; /* src/dst IPv6 address */ + unsigned int ipi6_ifindex; /* send/recv interface index */ +}; +#endif + char *malloc_option_value_string(uint8_t *option, GDHCPOptionType type); uint8_t *dhcp_get_option(struct dhcp_packet *packet, int code); uint8_t *dhcpv6_get_option(struct dhcpv6_packet *packet, uint16_t pkt_len, |