From owner-freebsd-net Mon Jun 5 13: 6:41 2000 Delivered-To: freebsd-net@freebsd.org Received: from yagosys.com (mail.yagosys.com [207.135.89.130]) by hub.freebsd.org (Postfix) with ESMTP id CF12337B630 for ; Mon, 5 Jun 2000 13:06:38 -0700 (PDT) (envelope-from shiva@yagosys.com) Received: from yagosys.com by yagosys.com (8.8.8+Sun/SMI-SVR4-Yago) id NAA16453; Mon, 5 Jun 2000 13:05:07 -0700 (PDT) Message-ID: <393C084D.C6D2BAB3@yagosys.com> Date: Mon, 05 Jun 2000 13:06:37 -0700 From: Shiva Shenoy Reply-To: shiva@yagosys.com Organization: Cabletron Systems, Inc. X-Mailer: Mozilla 4.7 [en] (X11; I; SunOS 5.5.1 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-net@freebsd.org Subject: [Q]: Src address in the icmp_reflect() Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following comment in icmp_reflect() in ip_icmp.c explains it all. /* * If the incoming packet was addressed directly to us, * use dst as the src for the reply. Otherwise (broadcast * or anonymous), use the address which corresponds * to the incoming interface. */ My question is: If the reply can take a different interface than the packet that came in on, then the src address as seen in the icmp error packet is different from the interface from which it is sourced. If the packet is not addressed to us, then can we set the source address to be the address of the outgoing interface? If so,this can be achieved by setting the ip->ip_src to INADDR_ANY. Does anybody see a problem with this approach? Thanks Shiva Shenoy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message