mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 13:41:30 +00:00
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:
parent
ab450605b3
commit
705cc62f67
2 changed files with 9 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue