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

Function nat_fill_ntlv

tools/ipfw/nat.c:954–963  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

952}
953
954static void
955nat_fill_ntlv(ipfw_obj_ntlv *ntlv, int i)
956{
957
958 ntlv->head.type = IPFW_TLV_EACTION_NAME(1); /* it doesn't matter */
959 ntlv->head.length = sizeof(ipfw_obj_ntlv);
960 ntlv->idx = 1;
961 ntlv->set = 0; /* not yet */
962 snprintf(ntlv->name, sizeof(ntlv->name), "%d", i);
963}
964
965int
966ipfw_delete_nat(int i)

Callers 1

ipfw_delete_natFunction · 0.85

Calls 1

snprintfFunction · 0.85

Tested by

no test coverage detected