CVSROOT:        /cvs
Module name:    src
Changes by:     henn...@cvs.openbsd.org 2009/08/10 05:48:02

Modified files:
        sys/netinet    : ip_input.c 

Log message:
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

Reply via email to