diff options
Diffstat (limited to 'sys/net/if_pppvar.h')
-rw-r--r-- | sys/net/if_pppvar.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_pppvar.h b/sys/net/if_pppvar.h index daa263c..f103df5 100644 --- a/sys/net/if_pppvar.h +++ b/sys/net/if_pppvar.h @@ -54,7 +54,7 @@ * Structure describing each ppp unit. */ struct ppp_softc { - struct ifnet sc_if; /* network-visible interface */ + struct ifnet *sc_ifp; /* network-visible interface */ /*hi*/ u_int sc_flags; /* control/status bits; see if_ppp.h */ struct callout_handle sc_ch; /* Used for scheduling timeouts */ void *sc_devp; /* pointer to device-dep structure */ @@ -99,6 +99,7 @@ struct ppp_softc { int sc_rawin_count; /* # in sc_rawin */ LIST_ENTRY(ppp_softc) sc_list; }; +#define PPP2IFP(sc) ((sc)->sc_ifp) struct ppp_softc *pppalloc(pid_t pid); void pppdealloc(struct ppp_softc *sc); |