summaryrefslogtreecommitdiffstats
path: root/sys/net/if_var.h
diff options
context:
space:
mode:
authormelifaro <melifaro@FreeBSD.org>2012-09-04 22:17:33 +0000
committermelifaro <melifaro@FreeBSD.org>2012-09-04 22:17:33 +0000
commitb490e053cd9aa2ed0142ab95406c9e7f92728c62 (patch)
treec52fd377955dd361ee780cebc8482a59522bb1b2 /sys/net/if_var.h
parent7c43d2b0905339c3d58017930052930a59197135 (diff)
downloadFreeBSD-src-b490e053cd9aa2ed0142ab95406c9e7f92728c62.zip
FreeBSD-src-b490e053cd9aa2ed0142ab95406c9e7f92728c62.tar.gz
Fix the build broken by r240099.
Hide link_pfil_hook under _KERNEL macro. MFC after: 3 weeks
Diffstat (limited to 'sys/net/if_var.h')
-rw-r--r--sys/net/if_var.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/if_var.h b/sys/net/if_var.h
index 74491c6..01ec2b6 100644
--- a/sys/net/if_var.h
+++ b/sys/net/if_var.h
@@ -99,8 +99,10 @@ TAILQ_HEAD(ifaddrhead, ifaddr); /* instantiation is preserved in the list */
TAILQ_HEAD(ifmultihead, ifmultiaddr);
TAILQ_HEAD(ifgrouphead, ifg_group);
+#ifdef _KERNEL
VNET_DECLARE(struct pfil_head, link_pfil_hook); /* packet filter hooks */
#define V_link_pfil_hook VNET(link_pfil_hook)
+#endif /* _KERNEL */
/*
* Structure defining a queue for a network interface.
OpenPOWER on IntegriCloud