Re: wireguard: problem sending via libpcap's packet socket

2020-07-01 Thread Hans Wippel
On Tue, 30 Jun 2020 21:05:27 -0600 "Jason A. Donenfeld" wrote: > On Sun, Jun 28, 2020 at 2:04 PM Willem de Bruijn > wrote: > > > > On Sat, Jun 27, 2020 at 1:58 AM Jason A. Donenfeld wrote: > > > > > > Hi again Hans, > > > > > > A few remarks: although gre implements header_ops, it looks like >

Re: wireguard: problem sending via libpcap's packet socket

2020-06-27 Thread Hans Wippel
Hi Jason, thanks for quick replies and patches! For whatever it's worth, I have attached another simple test program to this mail. It opens AF_PACKET sockets without libpcap and (incorrectly) sets the protocol to 0. It works with my ethernet device. Looking at the code, it should also work with t

wireguard: problem sending via libpcap's packet socket

2020-06-26 Thread Hans Wippel
hanged in the kernel or should this rather be reported to libpcap? Just in case, you can find changes that made it work for me below (probably not the best solution). Again, if this is not the right place to ask, just let me know and I am sorry for the noise. Hans Signed-off-by: Hans Wippel -