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-13 17:43:20 -04:00
2014-05-13 13:17:24 -04:00
2014-05-07 16:06:05 -04:00
2014-05-13 17:43:20 -04:00
2014-04-20 18:18:55 -04:00
2014-02-12 19:26:32 -05:00
2014-05-12 14:03:41 -04:00
2013-09-23 16:52:45 -04:00
2013-10-19 19:36:19 -04:00
2014-05-09 15:59:45 -04:00
2014-05-12 14:03:41 -04:00
2013-11-21 13:09:42 -05:00
2014-04-16 15:15:05 -04:00