Discussion:
BPF direction filter
(too old to reply)
Masanobu SAITOH
2018-06-21 06:55:14 UTC
Permalink
Hi.

I'd like to add the BPF direction filter function that other OSes have.
This is mainly used with "tcpdump -Q". Is it OK to add?

The ioctl names are:

BIOC[GS]DIRFILT OpenBSD
BIOC[GS]DIRECTION FreeBSD

Which one is prefer (or yet another one)?
--
-----------------------------------------------
SAITOH Masanobu (***@execsw.org
***@netbsd.org)

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Jason Thorpe
2018-06-21 07:06:59 UTC
Permalink
Post by Masanobu SAITOH
Hi.
I'd like to add the BPF direction filter function that other OSes have.
This is mainly used with "tcpdump -Q". Is it OK to add?
BIOC[GS]DIRFILT OpenBSD
BIOC[GS]DIRECTION FreeBSD
The FreeBSD name is nicer... and FreeBSD has more mindshare than OpenBSD, so I'd go with that one.
Post by Masanobu SAITOH
Which one is prefer (or yet another one)?
--
-----------------------------------------------
-- thorpej


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Masanobu SAITOH
2018-06-26 06:54:26 UTC
Permalink
Post by Jason Thorpe
Post by Masanobu SAITOH
Hi.
I'd like to add the BPF direction filter function that other OSes have.
This is mainly used with "tcpdump -Q". Is it OK to add?
BIOC[GS]DIRFILT OpenBSD
BIOC[GS]DIRECTION FreeBSD
The FreeBSD name is nicer... and FreeBSD has more mindshare than OpenBSD, so I'd go with that one.
Done (with FreeBSD style userland interface).

Thanks.
Post by Jason Thorpe
Post by Masanobu SAITOH
Which one is prefer (or yet another one)?
--
-----------------------------------------------
-- thorpej
--
-----------------------------------------------
SAITOH Masanobu (***@execsw.org
***@netbsd.org)

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Loading...