diff options
| author | Brian Somers <brian@FreeBSD.org> | 2004-07-08 13:40:33 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 2004-07-08 13:40:33 +0000 |
| commit | 59e1ebc9b560e3cadb9ef32eafa3ead5282cdac6 (patch) | |
| tree | ebac46b3b358807a8144fabd366380413a43366c /sys/netinet/ip_input.c | |
| parent | 390f67839aa3e11c19ac171022ddb3c813b3de70 (diff) | |
Notes
Diffstat (limited to 'sys/netinet/ip_input.c')
| -rw-r--r-- | sys/netinet/ip_input.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 048f6130f64c..77c8c79a20d7 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -30,7 +30,6 @@ * $FreeBSD$ */ -#include "opt_bootp.h" #include "opt_ipfw.h" #include "opt_ipdn.h" #include "opt_ipdivert.h" @@ -299,6 +298,7 @@ ip_input(struct mbuf *m) struct ipq *fp; struct in_ifaddr *ia = NULL; struct ifaddr *ifa; + char *cp; int i, checkif, hlen = 0; u_short sum; struct in_addr pkt_dst; @@ -598,10 +598,11 @@ pass: goto ours; if (ia->ia_netbroadcast.s_addr == pkt_dst.s_addr) goto ours; -#ifdef BOOTP_COMPAT - if (IA_SIN(ia)->sin_addr.s_addr == INADDR_ANY) - goto ours; -#endif + if ((cp = getenv("bootp.compat")) != NULL) { + freeenv(cp); + if (IA_SIN(ia)->sin_addr.s_addr == INADDR_ANY) + goto ours; + } } } if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr))) { |
