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

Function tcp_opt_convert

lib/ff_syscall_wrapper.c:624–645  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

622}
623
624static int
625tcp_opt_convert(int optname)
626{
627 switch(optname) {
628 case LINUX_TCP_NODELAY:
629 return TCP_NODELAY;
630 case LINUX_TCP_MAXSEG:
631 return TCP_MAXSEG;
632 case LINUX_TCP_KEEPIDLE:
633 return TCP_KEEPIDLE;
634 case LINUX_TCP_KEEPINTVL:
635 return TCP_KEEPINTVL;
636 case LINUX_TCP_KEEPCNT:
637 return TCP_KEEPCNT;
638 case LINUX_TCP_INFO:
639 return TCP_INFO;
640 case LINUX_TCP_MD5SIG:
641 return TCP_MD5SIG;
642 default:
643 return -1;
644 }
645}
646
647static int
648linux2freebsd_opt(int level, int optname)

Callers 1

linux2freebsd_optFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected