Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146926146
D52362.id161447.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
945 B
Referenced Files
None
Subscribers
None
D52362.id161447.diff
View Options
diff --git a/sys/net/bpf.c b/sys/net/bpf.c
--- a/sys/net/bpf.c
+++ b/sys/net/bpf.c
@@ -3223,6 +3223,8 @@
#endif /* !DEV_BPF && !NETGRAPH_BPF */
+__strong_reference(bpf_mtap_if, if_bpfmtap);
+
#ifdef DDB
static void
bpf_show_bpf_if(struct bpf_if *bpf_if)
diff --git a/sys/net/if.c b/sys/net/if.c
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -4866,18 +4866,6 @@
return (if_alloc(type));
}
-void
-if_bpfmtap(if_t ifp, struct mbuf *m)
-{
- bpf_mtap_if(ifp, m);
-}
-
-void
-if_etherbpfmtap(if_t ifp, struct mbuf *m)
-{
- ether_bpf_mtap_if(ifp, m);
-}
-
void
if_vlancap(if_t ifp)
{
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -1545,5 +1545,7 @@
ether_gen_addr_byname(if_name(ifp), hwaddr);
}
+__strong_reference(ether_bpf_mtap_if, if_etherbpfmtap);
+
DECLARE_MODULE(ether, ether_mod, SI_SUB_INIT_IF, SI_ORDER_ANY);
MODULE_VERSION(ether, 1);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 7, 8:09 PM (39 s ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29348946
Default Alt Text
D52362.id161447.diff (945 B)
Attached To
Mode
D52362: IfAPI: fix LINT-NOIP build
Attached
Detach File
Event Timeline
Log In to Comment