summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2015-02-04 05:12:13 +0000
committermpi <mpi@openbsd.org>2015-02-04 05:12:13 +0000
commit575128c36c739d6a4b6ec79851d0bdc71b930063 (patch)
tree8d6855dcf7c974540d16bddd5a6d805308ee7878
parentReturn the correct report ID when hitting a "collection" item. (diff)
downloadwireguard-openbsd-575128c36c739d6a4b6ec79851d0bdc71b930063.tar.xz
wireguard-openbsd-575128c36c739d6a4b6ec79851d0bdc71b930063.zip
Kill annoying comments about ether_input()
-rw-r--r--sys/dev/usb/if_cue.c8
-rw-r--r--sys/dev/usb/if_kue.c8
-rw-r--r--sys/dev/usb/if_ugl.c8
-rw-r--r--sys/dev/usb/if_upl.c8
4 files changed, 4 insertions, 28 deletions
diff --git a/sys/dev/usb/if_cue.c b/sys/dev/usb/if_cue.c
index b5101588332..3944ceb3c5f 100644
--- a/sys/dev/usb/if_cue.c
+++ b/sys/dev/usb/if_cue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_cue.c,v 1.67 2014/12/22 02:28:52 tedu Exp $ */
+/* $OpenBSD: if_cue.c,v 1.68 2015/02/04 05:12:13 mpi Exp $ */
/* $NetBSD: if_cue.c,v 1.40 2002/07/11 21:14:26 augustss Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
@@ -734,12 +734,6 @@ cue_rxeof(struct usbd_xfer *xfer, void *priv, usbd_status status)
}
#if NBPFILTER > 0
- /*
- * Handle BPF listeners. Let the BPF user see the packet, but
- * don't pass it up to the ether_input() layer unless it's
- * a broadcast packet, multicast packet, matches our ethernet
- * address or the interface is in promiscuous mode.
- */
if (ifp->if_bpf)
bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
#endif
diff --git a/sys/dev/usb/if_kue.c b/sys/dev/usb/if_kue.c
index 4c8ce7f5da1..af3e5185b06 100644
--- a/sys/dev/usb/if_kue.c
+++ b/sys/dev/usb/if_kue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_kue.c,v 1.76 2015/01/11 02:59:59 deraadt Exp $ */
+/* $OpenBSD: if_kue.c,v 1.77 2015/02/04 05:12:13 mpi Exp $ */
/* $NetBSD: if_kue.c,v 1.50 2002/07/16 22:00:31 augustss Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
@@ -741,12 +741,6 @@ kue_rxeof(struct usbd_xfer *xfer, void *priv, usbd_status status)
}
#if NBPFILTER > 0
- /*
- * Handle BPF listeners. Let the BPF user see the packet, but
- * don't pass it up to the ether_input() layer unless it's
- * a broadcast packet, multicast packet, matches our ethernet
- * address or the interface is in promiscuous mode.
- */
if (ifp->if_bpf)
bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
#endif
diff --git a/sys/dev/usb/if_ugl.c b/sys/dev/usb/if_ugl.c
index fca697d1983..9672dc5b9ca 100644
--- a/sys/dev/usb/if_ugl.c
+++ b/sys/dev/usb/if_ugl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ugl.c,v 1.8 2014/12/22 02:28:52 tedu Exp $ */
+/* $OpenBSD: if_ugl.c,v 1.9 2015/02/04 05:12:13 mpi Exp $ */
/* $NetBSD: if_upl.c,v 1.19 2002/07/11 21:14:26 augustss Exp $ */
/*
* Copyright (c) 2013 SASANO Takayoshi <uaa@uaa.org.uk>
@@ -510,12 +510,6 @@ ugl_rxeof(struct usbd_xfer *xfer, void *priv, usbd_status status)
}
#if NBPFILTER > 0
- /*
- * Handle BPF listeners. Let the BPF user see the packet, but
- * don't pass it up to the ether_input() layer unless it's
- * a broadcast packet, multicast packet, matches our ethernet
- * address or the interface is in promiscuous mode.
- */
if (ifp->if_bpf) {
bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
}
diff --git a/sys/dev/usb/if_upl.c b/sys/dev/usb/if_upl.c
index 3386277aafc..0a0ff554a25 100644
--- a/sys/dev/usb/if_upl.c
+++ b/sys/dev/usb/if_upl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_upl.c,v 1.61 2014/12/29 02:39:33 brad Exp $ */
+/* $OpenBSD: if_upl.c,v 1.62 2015/02/04 05:12:13 mpi Exp $ */
/* $NetBSD: if_upl.c,v 1.19 2002/07/11 21:14:26 augustss Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -469,12 +469,6 @@ upl_rxeof(struct usbd_xfer *xfer, void *priv, usbd_status status)
}
#if NBPFILTER > 0
- /*
- * Handle BPF listeners. Let the BPF user see the packet, but
- * don't pass it up to the ether_input() layer unless it's
- * a broadcast packet, multicast packet, matches our ethernet
- * address or the interface is in promiscuous mode.
- */
if (ifp->if_bpf) {
bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);
}