Lines Matching full:sizeof
69 memset(&nl, 0, sizeof(nl));
72 if (bind(fd, (struct sockaddr *)&nl, sizeof(nl)) == -1)
91 buffer = xzalloc(sizeof(char) * BUFFERLEN);
126 l = nlm->nlmsg_len - sizeof(*nlm);
127 if ((size_t)l < sizeof(*err)) {
148 len = nlm->nlmsg_len - sizeof(*nlm);
149 if ((size_t)len < sizeof(*ifi)) {
156 rta = (struct rtattr *) ((char *)ifi + NLMSG_ALIGN(sizeof(*ifi)));
157 len = NLMSG_PAYLOAD(nlm, sizeof(*ifi));
168 strlcpy(ifn, RTA_DATA(rta), sizeof(ifn));
174 if (strncmp(ifname, ifn, sizeof(ifn)) == 0)
197 memset(&nl, 0, sizeof(nl));
199 if (bind(fd, (struct sockaddr *)&nl, sizeof(nl)) == -1) {
203 memset(&iov, 0, sizeof(iov));
206 memset(&msg, 0, sizeof(msg));
208 msg.msg_namelen = sizeof(nl);
250 int len = RTA_LENGTH(sizeof(data));
261 memcpy(RTA_DATA(rta), &data, sizeof(data));
289 nlm = xzalloc(sizeof(*nlm));
290 nlm->hdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifaddrmsg));
305 add_attr_l(&nlm->hdr, sizeof(*nlm), IFA_LABEL,
307 add_attr_l(&nlm->hdr, sizeof(*nlm), IFA_LOCAL,
308 &address->s_addr, sizeof(address->s_addr));
310 add_attr_l(&nlm->hdr, sizeof(*nlm), IFA_BROADCAST,
311 &broadcast->s_addr, sizeof(broadcast->s_addr));
333 nlm = xzalloc(sizeof(*nlm));
334 nlm->hdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg));
374 add_attr_l(&nlm->hdr, sizeof(*nlm), RTA_DST,
375 &destination->s_addr, sizeof(destination->s_addr));
377 add_attr_l(&nlm->hdr, sizeof(*nlm), RTA_PREFSRC,
378 &iface->addr.s_addr, sizeof(iface->addr.s_addr));
383 add_attr_l(&nlm->hdr, sizeof(*nlm), RTA_GATEWAY,
384 &gateway->s_addr, sizeof(gateway->s_addr));
386 add_attr_32(&nlm->hdr, sizeof(*nlm), RTA_OIF, ifindex);
387 add_attr_32(&nlm->hdr, sizeof(*nlm), RTA_PRIORITY, metric);