summaryrefslogtreecommitdiffstats
path: root/include/net/sock.h
diff options
context:
space:
mode:
authorEdward Jee <edjee@google.com>2015-10-08 14:56:48 -0700
committerDavid S. Miller <davem@davemloft.net>2015-10-12 19:25:21 -0700
commitf28ea365cdefc3b4fd0373e70b0106a0cd9b4c23 (patch)
tree136f458e3435a79f3b5048b62dcd3c884ff644f2 /include/net/sock.h
parentc1bf5fe03184f782f2a6827cf314ae58834865da (diff)
downloadop-kernel-dev-f28ea365cdefc3b4fd0373e70b0106a0cd9b4c23.zip
op-kernel-dev-f28ea365cdefc3b4fd0373e70b0106a0cd9b4c23.tar.gz
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>
Diffstat (limited to 'include/net/sock.h')
-rw-r--r--include/net/sock.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/net/sock.h b/include/net/sock.h
index 771ca19..9322cafd 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -1514,6 +1514,13 @@ void sock_kfree_s(struct sock *sk, void *mem, int size);
void sock_kzfree_s(struct sock *sk, void *mem, int size);
void sk_send_sigurg(struct sock *sk);
+struct sockcm_cookie {
+ u32 mark;
+};
+
+int sock_cmsg_send(struct sock *sk, struct msghdr *msg,
+ struct sockcm_cookie *sockc);
+
/*
* Functions to fill in entries in struct proto_ops when a protocol
* does not implement a particular function.
OpenPOWER on IntegriCloud