Date: Tue, 19 May 1998 15:02:39 -0700 From: David Greenman <dg@root.com> To: Luigi Rizzo <luigi@labinfo.iet.unipi.it> Cc: current@FreeBSD.ORG Subject: Re: and again on forwarding... Message-ID: <199805192202.PAA26825@implode.root.com> In-Reply-To: Your message of "Tue, 19 May 1998 18:24:50 %2B0200." <199805191624.SAA09951@labinfo.iet.unipi.it>
next in thread | previous in thread | raw e-mail | index | archive | help
>forgot to mention: on each forwarded packet, our code does the >following (in ip_input.c, function ip_forward() ): > > /* > * Save at most 64 bytes of the packet in case > * we need to generate an ICMP message to the src. > */ > mcopy = m_copy(m, 0, imin((int)ip->ip_len, 64)); > >is this necessary or the work can be avoided ? ICMP messages get generated when the host is unreachable or when the TTL decrements to 0. Both or these cases are handled in the ip_flow code and the slow path (of which the above is part of) will be taken. -DG David Greenman Co-founder/Principal Architect, The FreeBSD Project To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805192202.PAA26825>
