Date: Tue, 19 May 1998 17:03:24 -0400 (EDT) From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> To: Luigi Rizzo <luigi@labinfo.iet.unipi.it> Cc: current@FreeBSD.ORG Subject: and again on forwarding... Message-ID: <199805192103.RAA21962@khavrinen.lcs.mit.edu> In-Reply-To: <199805191624.SAA09951@labinfo.iet.unipi.it> References: <199805191624.SAA09951@labinfo.iet.unipi.it>
next in thread | previous in thread | raw e-mail | index | archive | help
<<On Tue, 19 May 1998 18:24:50 +0200 (MET DST), Luigi Rizzo <luigi@labinfo.iet.unipi.it> said: > 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 ? It could be avoided by simply rewriting the IP input code to not munge the IP header (and IP output to expect it to be munged). Easy enough to do, but it's a pain to find all the clients which expect it to be munged. -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick 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?199805192103.RAA21962>