diff options
author | rwatson <rwatson@FreeBSD.org> | 2005-02-28 12:35:52 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2005-02-28 12:35:52 +0000 |
commit | 3cc07fe4d655fff6274b2ed654ced7f3a81d52ad (patch) | |
tree | 649ed36a771f3a514dc0394786f8e89c608e82e9 | |
parent | 3bad63fb1db495bebcabf60cafb7bcc6d1a28d9e (diff) | |
download | FreeBSD-src-3cc07fe4d655fff6274b2ed654ced7f3a81d52ad.zip FreeBSD-src-3cc07fe4d655fff6274b2ed654ced7f3a81d52ad.tar.gz |
Update a comment describing bpf_iflist to indicate that the BPF interface
structures correspond to specific link layers, so the same network
interface may appear more than once.
MFC after: 3 days
-rw-r--r-- | sys/net/bpf.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c index 234e414..a9734ab 100644 --- a/sys/net/bpf.c +++ b/sys/net/bpf.c @@ -89,7 +89,10 @@ SYSCTL_INT(_debug, OID_AUTO, bpf_maxbufsize, CTLFLAG_RW, &bpf_maxbufsize, 0, ""); /* - * bpf_iflist is the list of interfaces; each corresponds to an ifnet + * bpf_iflist is a list of BPF interface structures, each corresponding to a + * specific DLT. The same network interface might have several BPF interface + * structures registered by different layers in the stack (i.e., 802.11 + * frames, ethernet frames, etc). */ static LIST_HEAD(, bpf_if) bpf_iflist; static struct mtx bpf_mtx; /* bpf global lock */ |