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

Function table_fill_ntlv

tools/ipfw/tables.c:313–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313void
314table_fill_ntlv(ipfw_obj_ntlv *ntlv, const char *name, uint8_t set,
315 uint16_t uidx)
316{
317
318 ntlv->head.type = IPFW_TLV_TBL_NAME;
319 ntlv->head.length = sizeof(ipfw_obj_ntlv);
320 ntlv->idx = uidx;
321 ntlv->set = set;
322 strlcpy(ntlv->name, name, sizeof(ntlv->name));
323}
324
325static void
326table_fill_objheader(ipfw_obj_header *oh, ipfw_xtable_info *i)

Callers 7

ipfw_table_handlerFunction · 0.85
table_fill_objheaderFunction · 0.85
table_destroy_oneFunction · 0.85
table_do_swapFunction · 0.85
table_flush_oneFunction · 0.85
nat64stl_createFunction · 0.85
nat64stl_configFunction · 0.85

Calls 1

strlcpyFunction · 0.50

Tested by

no test coverage detected