Skip to content
Snippets Groups Projects
Commit 5dc48d3b authored by Lorenzo Colitti's avatar Lorenzo Colitti Committed by Sreeram Ramachandran
Browse files

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).

Change-Id: I95d896647b278d092ef331d1377b959da1deb042
Signed-off-by: default avatarLorenzo Colitti <lorenzo@google.com>

Conflicts:
	Documentation/networking/ip-sysctl.txt
parent be697074
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment