From owner-freebsd-current Tue May 19 15:03:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA27271 for freebsd-current-outgoing; Tue, 19 May 1998 15:03:10 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from implode.root.com (implode.root.com [198.145.90.17]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA27197 for ; Tue, 19 May 1998 15:02:42 -0700 (PDT) (envelope-from root@implode.root.com) Received: from implode.root.com (localhost [127.0.0.1]) by implode.root.com (8.8.5/8.8.5) with ESMTP id PAA26825; Tue, 19 May 1998 15:02:39 -0700 (PDT) Message-Id: <199805192202.PAA26825@implode.root.com> To: Luigi Rizzo cc: current@FreeBSD.ORG Subject: Re: and again on forwarding... In-reply-to: Your message of "Tue, 19 May 1998 18:24:50 +0200." <199805191624.SAA09951@labinfo.iet.unipi.it> From: David Greenman Reply-To: dg@root.com Date: Tue, 19 May 1998 15:02:39 -0700 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >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