Lorenzo Colitti e110861f86 net: add a sysctl to reflect the fwmark on replies
Kernel-originated IP packets that have no user socket associated
with them (e.g., ICMP errors and echo replies, TCP RSTs, etc.)
are emitted with a mark of zero. Add a sysctl to make them have
the same mark as the packet they are replying to.

This allows an administrator that wishes to do so to use
mark-based routing, firewalling, etc. for these replies by
marking the original packets inbound.

Tested using user-mode linux:
 - ICMP/ICMPv6 echo replies and errors.
 - TCP RST packets (IPv4 and IPv6).

Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-05-13 18:35:08 -04:00
..
2014-05-07 16:06:05 -04:00
2014-05-07 16:06:05 -04:00
2014-05-07 16:06:05 -04:00
2014-05-12 14:03:41 -04:00
2014-03-14 07:28:09 +01:00
2014-03-14 07:28:07 +01:00
2014-05-07 16:06:05 -04:00
2013-12-06 07:24:39 +01:00
2013-05-11 16:26:38 -07:00