[PATCH net-next 1/2] sock: support per-packet fwmark

2015-10-08 Thread Edward Hyunkoo Jee
It's useful to allow users to set fwmark for an individual packet, without changing the socket state. The function this patch adds in sock layer can be used by the protocols that need such a feature. Signed-off-by: Edward Hyunkoo Jee Signed-off-by: Eric Dumazet Cc: Willem de B

[PATCH net-next 2/2] packet: support per-packet fwmark for af_packet sendmsg

2015-10-08 Thread Edward Hyunkoo Jee
Signed-off-by: Edward Hyunkoo Jee Signed-off-by: Eric Dumazet Cc: Willem de Bruijn --- net/packet/af_packet.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index 81c900f..9d8c7fa 100644 --- a/net/packet/af_packet.c