| 963 | } |
| 964 | |
| 965 | int |
| 966 | ipfw_delete_nat(int i) |
| 967 | { |
| 968 | ipfw_obj_header oh; |
| 969 | int ret; |
| 970 | |
| 971 | memset(&oh, 0, sizeof(oh)); |
| 972 | nat_fill_ntlv(&oh.ntlv, i); |
| 973 | ret = do_set3(IP_FW_NAT44_DESTROY, &oh.opheader, sizeof(oh)); |
| 974 | if (ret == -1) { |
| 975 | if (!g_co.do_quiet) |
| 976 | warn("nat %u not available", i); |
| 977 | return (EX_UNAVAILABLE); |
| 978 | } |
| 979 | return (EX_OK); |
| 980 | } |
| 981 | |
| 982 | struct nat_list_arg { |
| 983 | uint16_t cmd; |
no test coverage detected