]> git.ozlabs.org Git - ppp.git/blobdiff - freebsd-2.0/if_pppvar.h
mods for broken sunos vdcmd stuff
[ppp.git] / freebsd-2.0 / if_pppvar.h
index 22a5e4cc6417a7490a91438a221e389bf4b86533..91e8e4e758638a1f994a81452205c3a117175093 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: if_pppvar.h,v 1.3 1996/10/08 04:38:03 paulus Exp $ */
+/*     $Id: if_pppvar.h,v 1.5 1997/04/30 05:42:08 paulus Exp $ */
 /*
  * if_pppvar.h - private structures and declarations for PPP.
  *
@@ -75,6 +75,10 @@ struct ppp_softc {
        void    *sc_rc_state;           /* receive decompressor state */
        time_t  sc_last_sent;           /* time (secs) last NP pkt sent */
        time_t  sc_last_recv;           /* time (secs) last NP pkt rcvd */
+#ifdef PPP_FILTER
+       struct  bpf_program sc_pass_filt;   /* filter for packets to pass */
+       struct  bpf_program sc_active_filt; /* filter for "non-idle" packets */
+#endif /* PPP_FILTER */
 #ifdef VJC
        struct  vjcompress *sc_comp;    /* vjc control buffer */
 #endif
@@ -97,7 +101,7 @@ struct       ppp_softc ppp_softc[NPPP];
 
 struct ppp_softc *pppalloc __P((pid_t pid));
 void   pppdealloc __P((struct ppp_softc *sc));
-int    pppioctl __P((struct ppp_softc *sc, u_long cmd, caddr_t data,
+int    pppioctl __P((struct ppp_softc *sc, int cmd, caddr_t data,
                      int flag, struct proc *p));
 void   ppp_restart __P((struct ppp_softc *sc));
 void   ppppktin __P((struct ppp_softc *sc, struct mbuf *m, int lost));