Lines Matching refs:bufsize

302 of_str(ofmt_arg_t *of_arg, char *buf, uint_t bufsize)  in of_str()  argument
309 (void) strlcpy(buf, rd->r_name, bufsize); in of_str()
312 (void) strlcpy(buf, rd->r_sgname, bufsize); in of_str()
316 (void) strlcpy(buf, rd->r_hcname, bufsize); in of_str()
324 of_proto(ofmt_arg_t *of_arg, char *buf, uint_t bufsize) in of_proto() argument
330 (void) strlcpy(buf, "TCP", bufsize); in of_proto()
332 (void) strlcpy(buf, "UDP", bufsize); in of_proto()
339 of_rl_ip(ofmt_arg_t *of_arg, char *buf, uint_t bufsize) in of_rl_ip() argument
360 ip2str(ip, buf, bufsize, V6_ADDRONLY); in of_rl_ip()
365 buf += sl; bufsize -= sl; in of_rl_ip()
366 *buf++ = '-'; bufsize--; in of_rl_ip()
367 ip2str(ip2, buf, bufsize, V6_ADDRONLY); in of_rl_ip()
374 of_rl_mask(ofmt_arg_t *of_arg, char *buf, uint_t bufsize) in of_rl_mask() argument
385 (void) snprintf(buf, bufsize, "/%d", ilbadm_mask_to_prefixlen(ip)); in of_rl_mask()
390 hcport_print(ilb_rule_data_t *rd, char *buf, uint_t bufsize) in hcport_print() argument
393 (void) snprintf(buf, bufsize, "%d", ntohs(rd->r_hcport)); in hcport_print()
395 (void) snprintf(buf, bufsize, "ANY"); in hcport_print()
400 of_rport(ofmt_arg_t *of_arg, char *buf, uint_t bufsize) in of_rport() argument
407 bufsize)); in of_rport()
411 hcport_print(rd, buf, bufsize); in of_rport()
418 of_rstatus(ofmt_arg_t *of_arg, char *buf, uint_t bufsize) in of_rstatus() argument
432 of_algo(ofmt_arg_t *of_arg, char *buf, uint_t bufsize) in of_algo() argument
437 if (algo2bare_str(rd->r_algo, buf, bufsize) == 0) in of_algo()
443 of_topo(ofmt_arg_t *of_arg, char *buf, uint_t bufsize) in of_topo() argument
448 if (topo2bare_str(rd->r_topo, buf, bufsize) == 0) in of_topo()
454 of_time(ofmt_arg_t *of_arg, char *buf, uint_t bufsize) in of_time() argument
461 (void) snprintf(buf, bufsize, "%u", rd->r_conndrain); in of_time()
464 (void) snprintf(buf, bufsize, "%u", rd->r_nat_timeout); in of_time()
467 (void) snprintf(buf, bufsize, "%u", rd->r_sticky_timeout); in of_time()
475 uint_t bufsize; member
486 (void) snprintf(sla->buf, sla->bufsize, "%s,", sd->sd_srvID); in srv2srvID()
489 sla->bufsize -= len; in srv2srvID()
495 of_rl_srvlist(ofmt_arg_t *of_arg, char *buf, uint_t bufsize) in of_rl_srvlist() argument
502 sla.bufsize = bufsize; in of_rl_srvlist()
516 of_port2str(in_port_t minport, in_port_t maxport, char *buf, uint_t bufsize) in of_port2str() argument
527 len = snprintf(buf, bufsize, "%d", h_min); in of_port2str()
529 (void) snprintf(buf + len, bufsize - len, "-%d", h_max); in of_port2str()
534 ip2hostname(ilb_ip_addr_t *ip, char *buf, uint_t bufsize) in ip2hostname() argument
555 (void) strlcpy(buf, he->h_name, bufsize); in ip2hostname()
728 of_srv2str(ofmt_arg_t *of_arg, char *buf, uint_t bufsize) in of_srv2str() argument
742 (void) strlcpy(buf, sd->sd_srvID, bufsize); in of_srv2str()
752 (void) strlcpy(buf, larg->rd->r_name, bufsize); in of_srv2str()
755 (void) strlcpy(buf, larg->sgname, bufsize); in of_srv2str()
758 rc = ip2hostname(&sd->sd_addr, buf, bufsize); in of_srv2str()
766 buf, bufsize); in of_srv2str()
769 ip2str(&sd->sd_addr, buf, bufsize, V6_ADDRONLY); in of_srv2str()