commit | 705cc62f6728c5a23e3c82465aa94e652e0b50e4 | [log] [tgz] |
---|---|---|
author | Jiri Benc <jbenc@redhat.com> | Thu Aug 20 13:56:28 2015 +0200 |
committer | David S. Miller <davem@davemloft.net> | Thu Aug 20 15:42:37 2015 -0700 |
tree | c3e2bb50a4d01ce760ea54ea1290e518ac67d644 | |
parent | ab450605b35caa768ca33e86db9403229bf42be4 [diff] |
vxlan: provide access function for vxlan socket address family Signed-off-by: Jiri Benc <jbenc@redhat.com> Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/include/net/vxlan.h b/include/net/vxlan.h index e4534f1..43677e6 100644 --- a/include/net/vxlan.h +++ b/include/net/vxlan.h
@@ -241,3 +241,8 @@ } #endif #endif + +static inline unsigned short vxlan_get_sk_family(struct vxlan_sock *vs) +{ + return vs->sock->sk->sk_family; +}