OSDN Git Service

sock: support per-packet fwmark
authorEdward Jee <edjee@google.com>
Thu, 8 Oct 2015 21:56:48 +0000 (14:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Oct 2015 02:25:21 +0000 (19:25 -0700)
commitf28ea365cdefc3b4fd0373e70b0106a0cd9b4c23
tree136f458e3435a79f3b5048b62dcd3c884ff644f2
parentc1bf5fe03184f782f2a6827cf314ae58834865da
sock: support per-packet fwmark

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 <edjee@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h
net/core/sock.c