Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Apr 1997 22:13:21 -0400
From:      Robert Withrow <witr@rwwa.com>
To:        hackers@freebsd.org
Subject:   Bogus bpf af from tun driver?
Message-ID:  <199704120213.WAA11662@spooky.rwwa.com>

next in thread | raw e-mail | index | archive | help
The tun driver prepends what it calls the address family to the packet it 
passes to bpf.  I get it as 0x02.00.00.00 which looks like AF_INET in some 
weird byte-swapped state...

This is wrong, right?

Should it HTONL or something?

-----------------------------------------------------------------------------
Robert Withrow, Tel: +1 617 592 8935, Net: witr@rwwa.COM





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704120213.WAA11662>