aboutsummaryrefslogtreecommitdiff
path: root/sys/net/if_ppp.c
diff options
context:
space:
mode:
authorSam Leffler <sam@FreeBSD.org>2002-11-15 00:00:15 +0000
committerSam Leffler <sam@FreeBSD.org>2002-11-15 00:00:15 +0000
commit6fc32a24955d1548f39d120cc7ac9e0d0161a80a (patch)
tree2a5611d45149f91e7ddfd0e32391f1ef7d8590e1 /sys/net/if_ppp.c
parent2f907a97c73adc46da1cf009e6b4fbf74816aae0 (diff)
downloadsrc-6fc32a24955d1548f39d120cc7ac9e0d0161a80a.tar.gz
src-6fc32a24955d1548f39d120cc7ac9e0d0161a80a.zip
network interface and link layer changes:
o on input don't strip the Ethernet header from packets o input packet handling is now done with if_input o track changes to ether_ifattach/ether_ifdetach API o track changes to bpf tapping o call ether_ioctl for default handling of ioctl's o use constants from net/ethernet.h where possible Reviewed by: many Approved by: re
Notes
Notes: svn path=/head/; revision=106939
Diffstat (limited to 'sys/net/if_ppp.c')
-rw-r--r--sys/net/if_ppp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c
index 0ad0b74a2001..aab5377f600e 100644
--- a/sys/net/if_ppp.c
+++ b/sys/net/if_ppp.c
@@ -887,8 +887,7 @@ pppoutput(ifp, m0, dst, rtp)
/*
* See if bpf wants to look at the packet.
*/
- if (ifp->if_bpf)
- bpf_mtap(ifp, m0);
+ BPF_MTAP(ifp, m0);
/*
* Put the packet on the appropriate queue.
@@ -1519,8 +1518,7 @@ ppp_inproc(sc, m)
}
/* See if bpf wants to look at the packet. */
- if (sc->sc_if.if_bpf)
- bpf_mtap(&sc->sc_if, m);
+ BPF_MTAP(&sc->sc_if, m);
rv = 0;
switch (proto) {