MCPcopy Index your code
hub / github.com/F-Stack/f-stack / vxlan_socket_bind

Function vxlan_socket_bind

freebsd/net/if_vxlan.c:1010–1028  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1008}
1009
1010static int
1011vxlan_socket_bind(struct vxlan_socket *vso, struct ifnet *ifp)
1012{
1013 union vxlan_sockaddr laddr;
1014 struct thread *td;
1015 int error;
1016
1017 td = curthread;
1018 laddr = vso->vxlso_laddr;
1019
1020 error = sobind(vso->vxlso_sock, &laddr.sa, td);
1021 if (error) {
1022 if (error != EADDRINUSE)
1023 if_printf(ifp, "cannot bind socket: %d\n", error);
1024 return (error);
1025 }
1026
1027 return (0);
1028}
1029
1030static int
1031vxlan_socket_create(struct ifnet *ifp, int multicast,

Callers 1

vxlan_socket_createFunction · 0.85

Calls 2

sobindFunction · 0.85
if_printfFunction · 0.85

Tested by

no test coverage detected