| 645 | } |
| 646 | |
| 647 | static int |
| 648 | linux2freebsd_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 | |
| 664 | static int |
| 665 | linux2freebsd_socket_flags(int flags) |
no test coverage detected