diff options
author | 2009-08-10 11:48:02 +0000 | |
---|---|---|
committer | 2009-08-10 11:48:02 +0000 | |
commit | a8f1cdca7872b17ace8b6c39979cb91cd3f3c92f (patch) | |
tree | 96af03b97aa4aaa71bd1e6112966d245f943ad11 /sys/kern | |
parent | At sys_reboot time, bring all the interfaces down so that their xxstop (diff) | |
download | wireguard-openbsd-a8f1cdca7872b17ace8b6c39979cb91cd3f3c92f.tar.xz wireguard-openbsd-a8f1cdca7872b17ace8b6c39979cb91cd3f3c92f.zip |
this is basically a fixed version of r1.165, avoid m_copym of each and every
forwarded packet in case ip_output returns an error and we have to quote
some of it back in an icmp error message.
this implementation done from scratch:
place an mbuf on the stack. copy the pkthdr from the forwarded packet and
the first 68 bytes of payload.
if we need to send an icmp error, just m_copym our mbuf-on-the-stack into
a real one that icmp_error can fuck with and eat as it desires.
ok theo dlg
Diffstat (limited to 'sys/kern')
0 files changed, 0 insertions, 0 deletions