Lines Matching refs:tbuf
376 table_print_type(char *tbuf, size_t size, uint8_t type, uint8_t tflags) in table_print_type() argument
384 l = snprintf(tbuf, size, "%s", tname); in table_print_type()
385 tbuf += l; in table_print_type()
391 *tbuf++ = ':'; in table_print_type()
393 print_flags_buffer(tbuf, size, flowtypecmds, tflags); in table_print_type()
412 char tbuf[128]; in table_create() local
433 concat_tokens(tbuf, sizeof(tbuf), tabletypes, in table_create()
437 *av, tbuf); in table_create()
457 concat_tokens(tbuf, sizeof(tbuf), tablevaltypes, ", "); in table_create()
459 e, tbuf); in table_create()
520 char tbuf[sizeof(ipfw_obj_header) + sizeof(ipfw_xtable_info)]; in table_do_create() local
523 memcpy(tbuf, oh, sizeof(*oh)); in table_do_create()
524 memcpy(tbuf + sizeof(*oh), i, sizeof(*i)); in table_do_create()
525 oh = (ipfw_obj_header *)tbuf; in table_do_create()
527 error = do_set3(IP_FW_TABLE_XCREATE, &oh->opheader, sizeof(tbuf)); in table_do_create()
575 char tbuf[sizeof(ipfw_obj_header) + sizeof(ipfw_xtable_info)]; in table_do_modify() local
578 memcpy(tbuf, oh, sizeof(*oh)); in table_do_modify()
579 memcpy(tbuf + sizeof(*oh), i, sizeof(*i)); in table_do_modify()
580 oh = (ipfw_obj_header *)tbuf; in table_do_modify()
582 error = do_set3(IP_FW_TABLE_XMODIFY, &oh->opheader, sizeof(tbuf)); in table_do_modify()
651 char tbuf[sizeof(ipfw_obj_header) + sizeof(ipfw_obj_ntlv)]; in table_do_swap() local
654 memset(tbuf, 0, sizeof(tbuf)); in table_do_swap()
655 memcpy(tbuf, oh, sizeof(*oh)); in table_do_swap()
656 oh = (ipfw_obj_header *)tbuf; in table_do_swap()
659 error = do_set3(IP_FW_TABLE_XSWAP, &oh->opheader, sizeof(tbuf)); in table_do_swap()
696 char tbuf[sizeof(ipfw_obj_header) + sizeof(ipfw_xtable_info)]; in table_get_info() local
699 sz = sizeof(tbuf); in table_get_info()
700 memset(tbuf, 0, sizeof(tbuf)); in table_get_info()
701 memcpy(tbuf, oh, sizeof(*oh)); in table_get_info()
702 oh = (ipfw_obj_header *)tbuf; in table_get_info()
707 if (sz < sizeof(tbuf)) in table_get_info()
1872 char tbuf[128], pval[128]; in table_show_entry() local
1883 inet_ntop(tent->subtype, &tent->k, tbuf, sizeof(tbuf)); in table_show_entry()
1884 printf("%s/%u %s\n", tbuf, tent->masklen, pval); in table_show_entry()
1905 inet_ntop(tfe->af, paddr, tbuf, sizeof(tbuf)); in table_show_entry()
1906 printf("%s%s", comma, tbuf); in table_show_entry()
1925 inet_ntop(tfe->af, paddr, tbuf, sizeof(tbuf)); in table_show_entry()
1926 printf("%s%s", comma, tbuf); in table_show_entry()