Date: Mon, 05 Jun 2000 13:06:37 -0700 From: Shiva Shenoy <shiva@yagosys.com> To: freebsd-net@freebsd.org Subject: [Q]: Src address in the icmp_reflect() Message-ID: <393C084D.C6D2BAB3@yagosys.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?393C084D.C6D2BAB3>