summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2004-02-16 18:19:15 +0000
committerdes <des@FreeBSD.org>2004-02-16 18:19:15 +0000
commite54c8a074637ad709272907da70f07f445947709 (patch)
tree5d1ea79834042c8782d3069028b1c09242f4155b /sys/net
parent1cfd0c3b385f7123976d8b9df470b0f665e4e0fa (diff)
downloadFreeBSD-src-e54c8a074637ad709272907da70f07f445947709.zip
FreeBSD-src-e54c8a074637ad709272907da70f07f445947709.tar.gz
Random style fixes and a comment update. No functional changes.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/bpf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c
index 0682d03..f829e62 100644
--- a/sys/net/bpf.c
+++ b/sys/net/bpf.c
@@ -140,7 +140,7 @@ static struct cdevsw bpf_cdevsw = {
};
static struct filterops bpfread_filtops =
- { 1, NULL, filt_bpfdetach, filt_bpfread };
+ { 1, NULL, filt_bpfdetach, filt_bpfread };
static int
bpf_movein(uio, linktype, mp, sockp, datlen)
@@ -1129,7 +1129,7 @@ filt_bpfread(kn, hint)
d->bd_state = BPF_WAITING;
}
BPFD_UNLOCK(d);
-
+
return (ready);
}
@@ -1272,8 +1272,7 @@ bpf_mtap2(bp, data, dlen, m)
/*
* Move the packet data from interface memory (pkt) into the
- * store buffer. Return 1 if it's time to wakeup a listener (buffer full),
- * otherwise 0. "copy" is the routine called to do the actual data
+ * store buffer. "cpfn" is the routine called to do the actual data
* transfer. bcopy is passed in to copy contiguous chunks, while
* bpf_mcopy is passed in to copy mbuf chains. In the latter case,
* pkt is really an mbuf.
@@ -1288,6 +1287,7 @@ catchpacket(d, pkt, pktlen, snaplen, cpfn)
struct bpf_hdr *hp;
int totlen, curlen;
int hdrlen = d->bd_bif->bif_hdrlen;
+
/*
* Figure out how many bytes to move. If the packet is
* greater or equal to the snapshot length, transfer that
OpenPOWER on IntegriCloud