From owner-freebsd-current Tue May 19 14:03:34 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA13335 for freebsd-current-outgoing; Tue, 19 May 1998 14:03:34 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA13328 for ; Tue, 19 May 1998 14:03:28 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.8.8/8.8.8) id RAA21962; Tue, 19 May 1998 17:03:24 -0400 (EDT) (envelope-from wollman) Date: Tue, 19 May 1998 17:03:24 -0400 (EDT) From: Garrett Wollman Message-Id: <199805192103.RAA21962@khavrinen.lcs.mit.edu> To: Luigi Rizzo Cc: current@FreeBSD.ORG Subject: and again on forwarding... In-Reply-To: <199805191624.SAA09951@labinfo.iet.unipi.it> References: <199805191624.SAA09951@labinfo.iet.unipi.it> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG < 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