summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r--sys/netinet/ip_input.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 77c8c79..048f613 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -30,6 +30,7 @@
* $FreeBSD$
*/
+#include "opt_bootp.h"
#include "opt_ipfw.h"
#include "opt_ipdn.h"
#include "opt_ipdivert.h"
@@ -298,7 +299,6 @@ 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,11 +598,10 @@ pass:
goto ours;
if (ia->ia_netbroadcast.s_addr == pkt_dst.s_addr)
goto ours;
- if ((cp = getenv("bootp.compat")) != NULL) {
- freeenv(cp);
- if (IA_SIN(ia)->sin_addr.s_addr == INADDR_ANY)
- goto ours;
- }
+#ifdef BOOTP_COMPAT
+ if (IA_SIN(ia)->sin_addr.s_addr == INADDR_ANY)
+ goto ours;
+#endif
}
}
if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr))) {
OpenPOWER on IntegriCloud