bpf/pcap are weird
From: Brian Fundakowski Feldman (green_at_FreeBSD.org)
Date: 11/05/03
- Previous message: Brian Fundakowski Feldman: "__VA_ARGS__izing IEEE80211_DPRINTF[2]()"
- Next in thread: Bruce Evans: "Re: bpf/pcap are weird"
- Reply: Bruce Evans: "Re: bpf/pcap are weird"
- Maybe reply: Guy Harris: "Re: bpf/pcap are weird"
- Maybe reply: Guy Harris: "Re: bpf/pcap are weird"
- Maybe reply: Guy Harris: "Re: bpf/pcap are weird"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: arch@FreeBSD.org Date: Wed, 05 Nov 2003 14:25:29 -0500
Okay, this is goofy stuff and breaks a lot of code that otherwise makes
certain assumptions about pcap/bpf that don't work on FreeBSD. Our bpf(4)
doesn't actually care about the non-blocking fd flag, and our pcap(3)
doesn't care at all about BIOCIMMEDIATE. Why do we have BIOCIMMEDIATE? It
seems like it's what SHOULD be implemented with the non-blocking I/O flag
with the exception that if using O_NONBLOCK/FIONBIO you could actually query
for the status, whereas you can't query for BIOCIMMEDIATE since it's only a
SET and not a GET ioctl.
What's up with this? Software that knows about pcap(3) but not bpf(4) on
FreeBSD can't put the interface in the mode it wants to, and the
non-blocking flag is settable and gettable but doesn't do anything.
Wouldn't it be better to get rid of at least one of the interfaces, and
provide a way to check what mode the bpf descriptor is in, either way?
-- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\ _______________________________________________ freebsd-arch@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-arch To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
- Previous message: Brian Fundakowski Feldman: "__VA_ARGS__izing IEEE80211_DPRINTF[2]()"
- Next in thread: Bruce Evans: "Re: bpf/pcap are weird"
- Reply: Bruce Evans: "Re: bpf/pcap are weird"
- Maybe reply: Guy Harris: "Re: bpf/pcap are weird"
- Maybe reply: Guy Harris: "Re: bpf/pcap are weird"
- Maybe reply: Guy Harris: "Re: bpf/pcap are weird"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- Re: bpf/pcap are weird
... > doesn't care at all about BIOCIMMEDIATE. ... Why do we have BIOCIMMEDIATE?
... FreeBSD's bpf certainly cares about the non-blocking fd flag. ... (freebsd-arch) - FreeBSD 7.0 WITHOUT Heimdal
... In earlier version of FreeBSD I've been able to NOT include the heimdal ...
In 7.0 there is no detection of such a flag. ... NOT build the 0.6.3 heimdal that is deliverd
with 7.0? ... version we are running on our KDC's and all the servers using Kerberos ...
(freebsd-stable) - Re: whois tricks was : whois is what?
... the -h flag works on both Linux and FreeBSD. ... Subject: whois
tricks was: Publishing Nimda Logs ... (Vuln-Dev) - MNT_NOEXEC on root filesystem with diskless PXE boot?
... We are trying out FreeBSD 5.4-PRERELEASE on diskless clients. ... statfs
really returns this flag. ... when it's mounted from NFS by the bootloader - not
any other ... (freebsd-hackers) - Re: MNT_NOEXEC on root filesystem with diskless PXE boot?
... I don't know anything about NFS, ... > statfs really returns this flag.
... I see that on FreeBSD 5.3 diskless clients this flag is also ... (freebsd-hackers)