diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2021-01-18 09:26:36 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2021-01-18 09:26:36 +0000 |
commit | 13a4ecec6d494f4e85c2f1e18fbc4de6c7b3b913 (patch) | |
tree | f97b8ee56d9e5a65c17f80be04def54d3d525077 /lib/libpcap/pcap-filter.5 | |
parent | 588bd1b6e71c92694a53fa44b5318687ef09354d (diff) |
support PCAP_NETMASK_UNKNOWN, adapted from an old commit in upstream
libpcap, ok dlg@
https://github.com/the-tcpdump-group/libpcap/commit/74b2de364f3443fc2414d0160b0b942f347c6fd4
https://github.com/the-tcpdump-group/libpcap/commit/117cb5eb2eb4fe212d3851f1205bb0b8f57873c6
Diffstat (limited to 'lib/libpcap/pcap-filter.5')
-rw-r--r-- | lib/libpcap/pcap-filter.5 | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libpcap/pcap-filter.5 b/lib/libpcap/pcap-filter.5 index 5555ed0259b..8eac728f571 100644 --- a/lib/libpcap/pcap-filter.5 +++ b/lib/libpcap/pcap-filter.5 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pcap-filter.5,v 1.5 2020/08/03 03:40:02 dlg Exp $ +.\" $OpenBSD: pcap-filter.5,v 1.6 2021/01/18 09:26:35 sthen Exp $ .\" .\" Copyright (c) 1987, 1988, 1989, 1990, 1991, 1992, 1994, 1995, 1996, 1997 .\" The Regents of the University of California. All rights reserved. @@ -20,7 +20,7 @@ .\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. .\" -.Dd $Mdocdate: August 3 2020 $ +.Dd $Mdocdate: January 18 2021 $ .Dt PCAP-FILTER 5 .Os .Sh NAME @@ -378,8 +378,9 @@ and looks up the subnet mask on the interface on which the capture is being done. .Pp If the subnet mask of the interface on which the capture is being done -is not available, -this check will not work correctly. +is not known, a value of PCAP_NETMASK_UNKNOWN can be supplied; +tests for IPv4 broadcast addreses will fail to compile, +but all other tests in the filter program will be OK. .It Cm ether multicast True if the packet is an Ethernet multicast packet. The |