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()
527 char tbuf[sizeof(ipfw_obj_header) + sizeof(ipfw_xtable_info)]; in table_do_create() local
530 memcpy(tbuf, oh, sizeof(*oh)); in table_do_create()
531 memcpy(tbuf + sizeof(*oh), i, sizeof(*i)); in table_do_create()
532 oh = (ipfw_obj_header *)tbuf; in table_do_create()
534 error = do_set3(IP_FW_TABLE_XCREATE, &oh->opheader, sizeof(tbuf)); in table_do_create()
582 char tbuf[sizeof(ipfw_obj_header) + sizeof(ipfw_xtable_info)]; in table_do_modify() local
585 memcpy(tbuf, oh, sizeof(*oh)); in table_do_modify()
586 memcpy(tbuf + sizeof(*oh), i, sizeof(*i)); in table_do_modify()
587 oh = (ipfw_obj_header *)tbuf; in table_do_modify()
589 error = do_set3(IP_FW_TABLE_XMODIFY, &oh->opheader, sizeof(tbuf)); in table_do_modify()
658 char tbuf[sizeof(ipfw_obj_header) + sizeof(ipfw_obj_ntlv)]; in table_do_swap() local
661 memset(tbuf, 0, sizeof(tbuf)); in table_do_swap()
662 memcpy(tbuf, oh, sizeof(*oh)); in table_do_swap()
663 oh = (ipfw_obj_header *)tbuf; in table_do_swap()
666 error = do_set3(IP_FW_TABLE_XSWAP, &oh->opheader, sizeof(tbuf)); in table_do_swap()
703 char tbuf[sizeof(ipfw_obj_header) + sizeof(ipfw_xtable_info)]; in table_get_info() local
706 sz = sizeof(tbuf); in table_get_info()
707 memset(tbuf, 0, sizeof(tbuf)); in table_get_info()
708 memcpy(tbuf, oh, sizeof(*oh)); in table_get_info()
709 oh = (ipfw_obj_header *)tbuf; in table_get_info()
714 if (sz < sizeof(tbuf)) in table_get_info()
1900 char tbuf[128], pval[128]; in table_show_entry() local
1912 inet_ntop(tent->subtype, &tent->k, tbuf, sizeof(tbuf)); in table_show_entry()
1913 printf("%s/%u %s\n", tbuf, tent->masklen, pval); in table_show_entry()
1941 inet_ntop(tfe->af, paddr, tbuf, sizeof(tbuf)); in table_show_entry()
1942 printf("%s%s", comma, tbuf); in table_show_entry()
1961 inet_ntop(tfe->af, paddr, tbuf, sizeof(tbuf)); in table_show_entry()
1962 printf("%s%s", comma, tbuf); in table_show_entry()