Lines Matching defs:buf
1488 * buf - Buffer into which the decoded name will be saved.
1489 * bufsiz - Size of the buffer 'buf'.
1496 dnsdecode(const u_char *sp, const u_char *ep, const u_char *base, char *buf,
1506 *buf = '\0';
1513 if (strlcat((char *)buf, ".", bufsiz) >= bufsiz)
1529 if (strlcat(buf, cresult, bufsiz) >= bufsiz)
1540 if (strlcat(buf, cresult, bufsiz) >= bufsiz)
1561 pr_pack(u_char *buf, int cc, struct msghdr *mhdr)
1571 u_char *dp, *end = buf + cc;
1602 icp = (struct icmp6_hdr *)buf;
1603 ni = (struct icmp6_nodeinfo *)buf;
1675 cp = buf + off + ICMP6ECHOLEN + ICMP6ECHOTMLEN;
1730 if (buf[off + ICMP6_NIRLEN] ==
1788 memcpy(&t, &buf[off+ICMP6ECHOLEN+8], sizeof(t));
1819 if (buf[off + ICMP6_NIRLEN] !=
1824 buf[off + ICMP6_NIRLEN],
2582 static char buf[NI_MAXHOST];
2591 if (cap_getnameinfo(capdns, addr, addrlen, buf, sizeof(buf), NULL, 0,
2593 return (buf);
2723 char *buf;
2728 buf = ipsec_set_policy(policy, strlen(policy));
2729 if (buf == NULL)
2731 if (setsockopt(ssend, IPPROTO_IPV6, IPV6_IPSEC_POLICY, buf,
2732 ipsec_get_policylen(buf)) < 0)
2734 free(buf);