]> bbs.cooldavid.org Git - net-next-2.6.git/commit - net/ipv4/icmp.c
[IPV4]: Sysctl configurable icmp error source address.
authorJ. Simonetti <jeroen@simonetti.nl>
Mon, 13 Jun 2005 22:19:03 +0000 (15:19 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Jun 2005 22:19:03 +0000 (15:19 -0700)
commit1c2fb7f93cb20621772bf304f3dba0849942e5db
tree0cb992ad463ee13af28d80d6730dcf1c4532b707
parent6a6ddb2a9c11fcc3e8d7517841d28c9ea206ddef
[IPV4]: Sysctl configurable icmp error source address.

This patch alows you to change the source address of icmp error
messages. It applies cleanly to 2.6.11.11 and retains the default
behaviour.

In the old (default) behaviour icmp error messages are sent with the ip
of the exiting interface.

The new behaviour (when the sysctl variable is toggled on), it will send
the message with the ip of the interface that received the packet that
caused the icmp error. This is the behaviour network administrators will
expect from a router. It makes debugging complicated network layouts
much easier. Also, all 'vendor routers' I know of have the later
behaviour.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/sysctl.h
net/ipv4/icmp.c
net/ipv4/sysctl_net_ipv4.c