Searched refs:ipfw_socket (Results 1 – 1 of 1) sorted by relevance
| /src/sbin/ipfw/ |
| H A D | ipfw2.c | 77 static int ipfw_socket = -1; variable 651 if (ipfw_socket == -1) in do_cmd() 652 ipfw_socket = socket(AF_INET, SOCK_RAW, IPPROTO_RAW); in do_cmd() 653 if (ipfw_socket < 0) in do_cmd() 659 i = getsockopt(ipfw_socket, IPPROTO_IP, optname, optval, in do_cmd() 662 i = setsockopt(ipfw_socket, IPPROTO_IP, optname, optval, optlen); in do_cmd() 697 if (ipfw_socket == -1) in do_set3() 698 ipfw_socket = socket(AF_INET, SOCK_RAW, IPPROTO_RAW); in do_set3() 699 if (ipfw_socket < 0) in do_set3() 703 return (setsockopt(ipfw_socket, IPPROTO_IP, IP_FW3, op3, optlen)); in do_set3() [all …]
|