summaryrefslogtreecommitdiff
path: root/gdhcp/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdhcp/common.h')
-rw-r--r--gdhcp/common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdhcp/common.h b/gdhcp/common.h
index c6927992..75abc183 100644
--- 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
+
uint8_t *dhcp_get_option(struct dhcp_packet *packet, int code);
uint8_t *dhcpv6_get_option(struct dhcpv6_packet *packet, uint16_t pkt_len,
int code, uint16_t *option_len, int *option_count);