diff --git a/sys/net/if.c b/sys/net/if.c --- a/sys/net/if.c +++ b/sys/net/if.c @@ -4622,9 +4622,9 @@ } int -if_init(if_t ifp) +if_init(if_t ifp, void *ctx) { - (*((struct ifnet *)ifp)->if_init)((struct ifnet *)ifp); + (*((struct ifnet *)ifp)->if_init)(ctx); return (0); } diff --git a/sys/net/if_var.h b/sys/net/if_var.h --- a/sys/net/if_var.h +++ b/sys/net/if_var.h @@ -784,7 +784,7 @@ void if_etherbpfmtap(if_t ifp, struct mbuf *m); void if_vlancap(if_t ifp); int if_transmit(if_t ifp, struct mbuf *m); -int if_init(if_t ifp); +int if_init(if_t ifp, void *ctx); /* * Traversing through interface address lists.