MCPcopy Create free account
hub / github.com/F-Stack/f-stack / linux2freebsd_opt

Function linux2freebsd_opt

lib/ff_syscall_wrapper.c:647–662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

645}
646
647static int
648linux2freebsd_opt(int level, int optname)
649{
650 switch(level) {
651 case SOL_SOCKET:
652 return so_opt_convert(optname);
653 case IPPROTO_IP:
654 return ip_opt_convert(optname);
655 case IPPROTO_IPV6:
656 return ip6_opt_convert(optname);
657 case IPPROTO_TCP:
658 return tcp_opt_convert(optname);
659 default:
660 return -1;
661 }
662}
663
664static int
665linux2freebsd_socket_flags(int flags)

Callers 2

ff_getsockoptFunction · 0.85
ff_setsockoptFunction · 0.85

Calls 4

so_opt_convertFunction · 0.85
ip_opt_convertFunction · 0.85
ip6_opt_convertFunction · 0.85
tcp_opt_convertFunction · 0.85

Tested by

no test coverage detected