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

Function nat64lsn_fill_ntlv

tools/ipfw/nat64lsn.c:314–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312}
313
314static void
315nat64lsn_fill_ntlv(ipfw_obj_ntlv *ntlv, const char *name, uint8_t set)
316{
317
318 ntlv->head.type = IPFW_TLV_EACTION_NAME(1); /* it doesn't matter */
319 ntlv->head.length = sizeof(ipfw_obj_ntlv);
320 ntlv->idx = 1;
321 ntlv->set = set;
322 strlcpy(ntlv->name, name, sizeof(ntlv->name));
323}
324
325static void
326nat64lsn_apply_mask(int af, void *prefix, uint16_t plen)

Callers 5

nat64lsn_states_cbFunction · 0.85
nat64lsn_configFunction · 0.85
nat64lsn_reset_statsFunction · 0.85
nat64lsn_destroyFunction · 0.85
nat64lsn_get_statsFunction · 0.85

Calls 1

strlcpyFunction · 0.50

Tested by

no test coverage detected