From: Lorenzo Colitti Date: Tue, 13 May 2014 17:17:33 +0000 (-0700) Subject: net: add a sysctl to reflect the fwmark on replies X-Git-Tag: omap-for-v3.16/fixes-against-rc1~36^2~237^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e110861f86094cd78cc85593b873970092deb43a;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed