diff options
author | Jiri Benc <jbenc@redhat.com> | 2015-08-20 13:56:28 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-20 15:42:37 -0700 |
commit | 705cc62f6728c5a23e3c82465aa94e652e0b50e4 (patch) | |
tree | c3e2bb50a4d01ce760ea54ea1290e518ac67d644 /include/net/vxlan.h | |
parent | ab450605b35caa768ca33e86db9403229bf42be4 (diff) | |
download | linux-705cc62f6728c5a23e3c82465aa94e652e0b50e4.tar.gz linux-705cc62f6728c5a23e3c82465aa94e652e0b50e4.tar.bz2 linux-705cc62f6728c5a23e3c82465aa94e652e0b50e4.zip |
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>
Diffstat (limited to 'include/net/vxlan.h')
-rw-r--r-- | include/net/vxlan.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/vxlan.h b/include/net/vxlan.h index e4534f1b2d8c..43677e6b9c43 100644 --- a/include/net/vxlan.h +++ b/include/net/vxlan.h @@ -241,3 +241,8 @@ static inline void vxlan_get_rx_port(struct net_device *netdev) } #endif #endif + +static inline unsigned short vxlan_get_sk_family(struct vxlan_sock *vs) +{ + return vs->sock->sk->sk_family; +} |