Lines Matching refs:buf
178 char buf[BUFSIZE];
199 memset(buf, 0, BUFSIZE);
201 ret = sss_atomic_read_s(fd, buf, BUFSIZE);
210 buf[BUFSIZE-1] = '\0';
212 return strncmp(buf, "1\n", BUFSIZE) == 0;
293 static void nladdr_to_string(struct nl_addr *nl, char *buf, size_t bufsize)
300 strncpy(buf, "unknown", bufsize);
307 if (inet_ntop(addr_family, addr, buf, bufsize) == NULL) {
309 snprintf(buf, bufsize, "unknown");
575 char buf[INET6_ADDRSTRLEN];
580 nladdr_to_string(nl, buf, INET6_ADDRSTRLEN);
583 strncpy(buf, "unknown", INET6_ADDRSTRLEN);
589 rtnl_route_get_family(route_obj), buf, prefixlen);
658 char buf[INET6_ADDRSTRLEN];
665 nladdr_to_string(local_addr, buf, INET6_ADDRSTRLEN);
668 "addr %s flags 0x%X (%s)\n", ifidx, buf, flags, str_flags);