<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/lib/libpcap, branch master</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/lib/libpcap?h=master</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/lib/libpcap?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2021-01-20T12:37:26Z</updated>
<entry>
<title>typo; spotted by jmc</title>
<updated>2021-01-20T12:37:26Z</updated>
<author>
<name>sthen</name>
<email>sthen@openbsd.org</email>
</author>
<published>2021-01-20T12:37:26Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=6ea1460922840db4dd799430eb5154b2905a7dcc'/>
<id>urn:sha1:6ea1460922840db4dd799430eb5154b2905a7dcc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>support PCAP_NETMASK_UNKNOWN, adapted from an old commit in upstream</title>
<updated>2021-01-18T09:26:35Z</updated>
<author>
<name>sthen</name>
<email>sthen@openbsd.org</email>
</author>
<published>2021-01-18T09:26:35Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=ff78d6edd4ee27e44eebf250095a6ef702022eff'/>
<id>urn:sha1:ff78d6edd4ee27e44eebf250095a6ef702022eff</id>
<content type='text'>
libpcap, ok dlg@

https://github.com/the-tcpdump-group/libpcap/commit/74b2de364f3443fc2414d0160b0b942f347c6fd4
https://github.com/the-tcpdump-group/libpcap/commit/117cb5eb2eb4fe212d3851f1205bb0b8f57873c6
</content>
</entry>
<entry>
<title>Fix byte order handling for DLT_LOOP links</title>
<updated>2020-09-12T09:27:22Z</updated>
<author>
<name>kn</name>
<email>kn@openbsd.org</email>
</author>
<published>2020-09-12T09:27:22Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=fe3e795b55c6e630825f5c45b44a1e13b74085e3'/>
<id>urn:sha1:fe3e795b55c6e630825f5c45b44a1e13b74085e3</id>
<content type='text'>
Fixing filters on DLT_LOOP revealed that we treat DLT_NULL, DLT_ENC and
DLT_LOOP the same way even though DLT_LOOP stores the AF value in network
not byte order like the rest.

This amends the missing conversion which ought to land with the recent
commit exposing the byte order mismatch:

	revision 1.53
	date: 2020/07/21 22:44:55;  author: dlg;  state: Exp;  lines: +2 -2;
	DLT_LOOP does have a link header, so tell pcap-filter so it can use it.
	...
	debugged with and ok kn@

Discussed with bluhm who reported src/regress/sys/netinet6/rip6cksum/
failing on i386 after above commit.

The comment in this commit is taken from libpcap upstream as is modulo
additional file-save related byte-order handling which we don't seem to do.

OK bluhm
</content>
</entry>
<entry>
<title>crank the major cos grammar.c has grown.</title>
<updated>2020-08-03T03:47:12Z</updated>
<author>
<name>dlg</name>
<email>dlg@openbsd.org</email>
</author>
<published>2020-08-03T03:47:12Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=6b2850a6aefad9f1b3eebff6c5ecf79c204e7a7e'/>
<id>urn:sha1:6b2850a6aefad9f1b3eebff6c5ecf79c204e7a7e</id>
<content type='text'>
pointed out by tb@, who also provided the diff.

maybe someone should/could add a Symbols.list here?

ok tb@ deraadt@
</content>
</entry>
<entry>
<title>add "sample NUM" so you can ask to capture 1/NUM packets from a filter.</title>
<updated>2020-08-03T03:40:02Z</updated>
<author>
<name>dlg</name>
<email>dlg@openbsd.org</email>
</author>
<published>2020-08-03T03:40:02Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=2cba36b56b1c3fd3bbf6a036e01b16253c887425'/>
<id>urn:sha1:2cba36b56b1c3fd3bbf6a036e01b16253c887425</id>
<content type='text'>
the use of the sample keyword matches similar config in other
products.

NUM can be a number between 2 and 1048576, and is used to divide
0x100000000 into a threshold that is then compared against a randomly
generated number produced by a load of BPF_RND.

having sampling as part of the grammar means you can write things
like "icmp or sample 128". this lets you capture all icmp traffic
and a sample of the rest of the traffic.

ok jmatthew@ kn@ tb@
</content>
</entry>
<entry>
<title>add support for handling loads from BPF_RND.</title>
<updated>2020-08-03T03:29:58Z</updated>
<author>
<name>dlg</name>
<email>dlg@openbsd.org</email>
</author>
<published>2020-08-03T03:29:58Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=a8e9f808963388af56d210337c14dd50c91412d5'/>
<id>urn:sha1:a8e9f808963388af56d210337c14dd50c91412d5</id>
<content type='text'>
this adds "rnd" and "random" as keywords in the grammar, and handles
them as an arithmetic operator. the decoder recognises the load,
so tcpdump can print it as 'ld #random'. most of the handling is
copied from the "len"/"length" keywoard handling that generates and
decodes a load of the actual wire length of the packet.

ok jmatthew@ tb@ kn@
</content>
</entry>
<entry>
<title>DLT_LOOP does have a link header, so tell pcap-filter so it can use it.</title>
<updated>2020-07-21T22:44:55Z</updated>
<author>
<name>dlg</name>
<email>dlg@openbsd.org</email>
</author>
<published>2020-07-21T22:44:55Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=0918526a4b077332bde6e58017c9a114d03110f9'/>
<id>urn:sha1:0918526a4b077332bde6e58017c9a114d03110f9</id>
<content type='text'>
matthieu@ reported that asking tcpdump to look at ip or ip6 traffic
on a wg(4) interface caused all packets to be captured. this is
because pcap assumes that if your link type doesn't have a link
header then it is always ip or ip6 (which is weird anyway) and
captures everything.

there was already code to generate a filter for the DLT_LOOP link
header, it was just bypassed cos earlier code said that there wasn't
one.

debugged with and ok kn@
</content>
</entry>
<entry>
<title>from edgar pettijohn: correct return type in pcap_open_live.3;</title>
<updated>2020-05-29T05:51:19Z</updated>
<author>
<name>jmc</name>
<email>jmc@openbsd.org</email>
</author>
<published>2020-05-29T05:51:19Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=bcdfdb4ab1703478281fdce7a7095a2d333a4ca9'/>
<id>urn:sha1:bcdfdb4ab1703478281fdce7a7095a2d333a4ca9</id>
<content type='text'>
ok djm
</content>
</entry>
<entry>
<title>add support for pcap_breakloop when reading packets from files.</title>
<updated>2020-05-27T04:24:01Z</updated>
<author>
<name>dlg</name>
<email>dlg@openbsd.org</email>
</author>
<published>2020-05-27T04:24:01Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=c5e4be465a16a5443f18a26b06c2477e1d4700f7'/>
<id>urn:sha1:c5e4be465a16a5443f18a26b06c2477e1d4700f7</id>
<content type='text'>
djm pulled support in for pcap_breakloop on the bpf side of things,
this makes it work when reading files too.

from Caspar Schutijser
lteo@ seems keen
ok djm@
</content>
</entry>
<entry>
<title>Fix bogus ".It .Cm"</title>
<updated>2019-12-17T15:22:48Z</updated>
<author>
<name>jca</name>
<email>jca@openbsd.org</email>
</author>
<published>2019-12-17T15:22:48Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=5d69de98a728e4b6e9bda9d21514c412871a38c6'/>
<id>urn:sha1:5d69de98a728e4b6e9bda9d21514c412871a38c6</id>
<content type='text'>
</content>
</entry>
</feed>
