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

Function freebsd2linux_sockaddr

lib/ff_syscall_wrapper.c:695–708  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

693}
694
695static void
696freebsd2linux_sockaddr(struct linux_sockaddr *linux,
697 struct sockaddr *freebsd)
698{
699 if (linux == NULL || freebsd == NULL) {
700 return;
701 }
702
703 /* #linux and #freebsd may point to the same address */
704 if (linux->sa_data != freebsd->sa_data) {
705 bcopy(freebsd->sa_data, linux->sa_data, freebsd->sa_len - sizeof(linux->sa_family));
706 }
707 linux->sa_family = freebsd->sa_family == AF_INET6 ? LINUX_AF_INET6 : freebsd->sa_family;
708}
709
710static inline int
711freebsd2linux_cmsghdr(struct linux_msghdr *linux_msg, const struct msghdr *freebsd_msg)

Callers 6

freebsd2linux_msghdrFunction · 0.85
ff_recvfromFunction · 0.85
ff_acceptFunction · 0.85
ff_accept4Function · 0.85
ff_getpeernameFunction · 0.85
ff_getsocknameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected