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

Function ipfw_delete_nat

tools/ipfw/nat.c:965–980  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

963}
964
965int
966ipfw_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
982struct nat_list_arg {
983 uint16_t cmd;

Callers 1

ipfw_deleteFunction · 0.85

Calls 3

memsetFunction · 0.85
nat_fill_ntlvFunction · 0.85
do_set3Function · 0.85

Tested by

no test coverage detected