summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2007-09-26 13:09:59 +0000
committerhenning <henning@openbsd.org>2007-09-26 13:09:59 +0000
commitfca085108fc99e04641f1363ff23ceb7b583dd17 (patch)
tree07e0e650ba91964fc7e2fc3f56acb1074c8fccca /lib
parentprovide m_inithdr(), which takes an mbuf and gives an initialized M_PKTHDR (diff)
downloadwireguard-openbsd-fca085108fc99e04641f1363ff23ceb7b583dd17.tar.xz
wireguard-openbsd-fca085108fc99e04641f1363ff23ceb7b583dd17.zip
ep(4) is totally weird. due to hardware design limitations it plays
wierd games with caching mbufs. as part of that it used regular mbufs and makes them M_PKTHDR mbufs on the fly, instead of calling m_gethdr. of course it did it hackish and wrong and did not properly initialize the pkthdr fields, which stated to cause problems as soon as we started to stuff more into the packet header. so use the freshly introduced m_inithdr() to make the mbuf a pktdr mbuf. problem found + analyzed by janjaap@stack.nl PR5563, input theo, ok claudio
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions