summaryrefslogtreecommitdiff
path: root/sys/net/if_bridge.c
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2015-09-10 16:41:31 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2015-09-10 16:41:31 +0000
commita793901e87f107b64f3aea895465d10a514eb4ca (patch)
tree027dc7b393e1b522b41b1019b51cca037795977e /sys/net/if_bridge.c
parentecb062743cab98559c151841da5801e6afd4e232 (diff)
pass a cookie argument to interface input handlers that can be used
to pass additional context or transient data with the similar life time. ok mpi, suggestions, hand holding and ok from dlg
Diffstat (limited to 'sys/net/if_bridge.c')
-rw-r--r--sys/net/if_bridge.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c
index 2937b027c28..b97b8de197b 100644
--- a/sys/net/if_bridge.c
+++ b/sys/net/if_bridge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bridge.c,v 1.263 2015/09/10 15:27:00 mpi Exp $ */
+/* $OpenBSD: if_bridge.c,v 1.264 2015/09/10 16:41:30 mikeb Exp $ */
/*
* Copyright (c) 1999, 2000 Jason L. Wright (jason@thought.net)
@@ -223,7 +223,7 @@ bridge_clone_create(struct if_clone *ifc, int unit)
DLT_EN10MB, ETHER_HDR_LEN);
#endif
- if_ih_insert(ifp, ether_input);
+ if_ih_insert(ifp, ether_input, NULL);
return (0);
}
@@ -248,7 +248,7 @@ bridge_clone_destroy(struct ifnet *ifp)
/* Undo pseudo-driver changes. */
if_deactivate(ifp);
- if_ih_remove(ifp, ether_input);
+ if_ih_remove(ifp, ether_input, NULL);
KASSERT(SRPL_EMPTY_LOCKED(&ifp->if_inputs));