Home | History | Annotate | Download | only in dhcpcd

Lines Matching full:sizeof

81 	snprintf(path, sizeof(path),
100 snprintf(path, sizeof(path),
107 if (fgets(buf, sizeof(buf), fp) != NULL && buf[0] == '0')
121 if (bind(fd, (struct sockaddr *)nl, sizeof(*nl)) == -1)
143 memset(&snl, 0, sizeof(snl));
216 l = nlm->nlmsg_len - sizeof(*nlm);
217 if ((size_t)l < sizeof(*err)) {
240 len = nlm->nlmsg_len - sizeof(*nlm);
241 if ((size_t)len < sizeof(*rtm)) {
251 rta = (struct rtattr *) ((char *)rtm + NLMSG_ALIGN(sizeof(*rtm)));
252 len = NLMSG_PAYLOAD(nlm, sizeof(*rtm));
263 sizeof(rt.dest.s_addr));
267 sizeof(rt.gate.s_addr));
302 len = nlm->nlmsg_len - sizeof(*nlm);
303 if ((size_t)len < sizeof(*ifa)) {
316 len = NLMSG_PAYLOAD(nlm, sizeof(*ifa));
325 sizeof(addr.s_addr));
330 sizeof(addr.s_addr));
356 len = nlm->nlmsg_len - sizeof(*nlm);
357 if ((size_t)len < sizeof(*ifi)) {
364 rta = (struct rtattr *) ((char *)ifi + NLMSG_ALIGN(sizeof(*ifi)));
365 len = NLMSG_PAYLOAD(nlm, sizeof(*ifi));
376 strlcpy(ifn, RTA_DATA(rta), sizeof(ifn));
415 memset(&iov, 0, sizeof(iov));
418 memset(&msg, 0, sizeof(msg));
420 msg.msg_namelen = sizeof(sock_nl);
461 int len = RTA_LENGTH(sizeof(data));
472 memcpy(RTA_DATA(rta), &data, sizeof(data));
500 nlm = xzalloc(sizeof(*nlm));
501 nlm->hdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifaddrmsg));
516 add_attr_l(&nlm->hdr, sizeof(*nlm), IFA_LABEL,
518 add_attr_l(&nlm->hdr, sizeof(*nlm), IFA_LOCAL,
519 &address->s_addr, sizeof(address->s_addr));
521 add_attr_l(&nlm->hdr, sizeof(*nlm), IFA_BROADCAST,
522 &broadcast->s_addr, sizeof(broadcast->s_addr));
542 nlm = xzalloc(sizeof(*nlm));
543 nlm->hdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg));
576 add_attr_l(&nlm->hdr, sizeof(*nlm), RTA_DST,
577 &rt->dest.s_addr, sizeof(rt->dest.s_addr));
579 add_attr_l(&nlm->hdr, sizeof(*nlm), RTA_PREFSRC,
580 &rt->iface->addr.s_addr, sizeof(rt->iface->addr.s_addr));
585 add_attr_l(&nlm->hdr, sizeof(*nlm), RTA_GATEWAY,
586 &rt->gate.s_addr, sizeof(rt->gate.s_addr));
588 add_attr_32(&nlm->hdr, sizeof(*nlm), RTA_OIF, ifindex);
589 add_attr_32(&nlm->hdr, sizeof(*nlm), RTA_PRIORITY, rt->metric);