summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2009-02-16 15:10:51 +0000
committerluigi <luigi@FreeBSD.org>2009-02-16 15:10:51 +0000
commit18ef459d66774facccee8961de0394ce9e7cb266 (patch)
treef033d04784ccb0a3e1414fe9aea44d2035106c20 /sys/netinet
parente7a81aadfa5eb26ba1f3f7db424193d0b33e1e34 (diff)
downloadFreeBSD-src-18ef459d66774facccee8961de0394ce9e7cb266.zip
FreeBSD-src-18ef459d66774facccee8961de0394ce9e7cb266.tar.gz
correct some #include
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_fw2.c3
-rw-r--r--sys/netinet/ip_fw_pfil.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet/ip_fw2.c b/sys/netinet/ip_fw2.c
index 1c19f8d..618f5f7 100644
--- a/sys/netinet/ip_fw2.c
+++ b/sys/netinet/ip_fw2.c
@@ -65,6 +65,7 @@ __FBSDID("$FreeBSD$");
#include <sys/syslog.h>
#include <sys/ucred.h>
#include <sys/vimage.h>
+#include <net/ethernet.h> /* for ETHERTYPE_IP */
#include <net/if.h>
#include <net/radix.h>
#include <net/route.h>
@@ -98,8 +99,6 @@ __FBSDID("$FreeBSD$");
#include <netinet6/scope6_var.h>
#endif
-#include <netinet/if_ether.h> /* XXX for ETHERTYPE_IP */
-
#include <machine/in_cksum.h> /* XXX for in_cksum */
#ifdef MAC
diff --git a/sys/netinet/ip_fw_pfil.c b/sys/netinet/ip_fw_pfil.c
index 694f8ab..1e6d2b0 100644
--- a/sys/netinet/ip_fw_pfil.c
+++ b/sys/netinet/ip_fw_pfil.c
@@ -51,13 +51,13 @@ __FBSDID("$FreeBSD$");
#include <sys/ucred.h>
#include <sys/vimage.h>
+#define _NET_IF_VAR_H_ /* we don't want if_var.h, only if.h */
#include <net/if.h>
#include <net/route.h>
#include <net/pfil.h>
#include <netinet/in.h>
#include <netinet/in_systm.h>
-#include <netinet/in_var.h>
#include <netinet/ip.h>
#include <netinet/ip_var.h>
#include <netinet/ip_fw.h>
OpenPOWER on IntegriCloud