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>
This commit is contained in:

committed by
David S. Miller

parent
ab450605b3
commit
705cc62f67
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user