Searched refs:ipfw_socket (Results 1 – 1 of 1) sorted by relevance
/freebsd/sbin/ipfw/ |
H A D | ipfw2.c | 77 static int ipfw_socket = -1; variable 646 if (ipfw_socket == -1) in do_cmd() 647 ipfw_socket = socket(AF_INET, SOCK_RAW, IPPROTO_RAW); in do_cmd() 648 if (ipfw_socket < 0) in do_cmd() 658 i = getsockopt(ipfw_socket, IPPROTO_IP, optname, optval, in do_cmd() 661 i = setsockopt(ipfw_socket, IPPROTO_IP, optname, optval, optlen); in do_cmd() 696 if (ipfw_socket == -1) in do_set3() 697 ipfw_socket = socket(AF_INET, SOCK_RAW, IPPROTO_RAW); in do_set3() 698 if (ipfw_socket < 0) in do_set3() 702 return (setsockopt(ipfw_socket, IPPROTO_IP, IP_FW3, op3, optlen)); in do_set3() [all …]
|