Mercurial > hg > dhcpcd
changeset 4299:ff2791d0bac1 draft
NetBSD-7 has an incomplete IP_PKTINFO implementation.
It only works for receiving data, not sending it.
We only need it to send, so pretend it doesn't exist.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Fri, 17 Aug 2018 17:21:40 +0100 |
| parents | d029c1a28bcc |
| children | 82a8e37ab298 |
| files | src/dhcp.c |
| diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dhcp.c Fri Aug 17 17:18:56 2018 +0100 +++ b/src/dhcp.c Fri Aug 17 17:21:40 2018 +0100 @@ -86,6 +86,11 @@ #define IPDEFTTL 64 /* RFC1340 */ #endif +/* NetBSD-7 has an incomplete IP_PKTINFO implementation. */ +#if defined(__NetBSD_Version__) && __NetBSD_Version__ < 800000000 +#undef IP_PKTINFO +#endif + /* Assert the correct structure size for on wire */ __CTASSERT(sizeof(struct ip) == 20); __CTASSERT(sizeof(struct udphdr) == 8);
