cvs commit: src/sys/netinet ip_icmp.c

Brooks Davis brooks at one-eyed-alien.net
Mon Feb 2 15:26:21 PST 2004


On Mon, Feb 02, 2004 at 02:53:16PM -0800, Andre Oppermann wrote:
> andre       2004/02/02 14:53:16 PST
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/netinet          ip_icmp.c 
>   Log:
>   Add sysctl net.inet.icmp.reply_src to specify the interface name
>   used for the ICMP reply source in reponse to packets which are not
>   directly addressed to us.  By default continue with with normal
>   source selection.

Please consider storing the interface index rather then the name.  It is
much cheaper to go from index to ifp then name to ifp and the index will
be invariant as long as the interface exists.  Sometime in the next week
the name will no longer be invariant.

-- Brooks

-- 
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20040202/59405b3d/attachment-0001.bin


More information about the cvs-src mailing list