Home | History | Annotate | Download | only in iputils

Lines Matching full:sizeof

129 	memset(filterp, 0, sizeof(struct icmp6_filter));
132 memset(filterp, 0xFF, sizeof(struct icmp6_filter));
153 int maxpacket = sizeof(outpack);
186 memcpy(&v, p, sizeof(v));
196 return (sizeof(struct cmsghdr) + sizeof(struct ip6_rthdr0) +
197 segments * sizeof(struct in6_addr));
207 memset(bp, 0, sizeof(struct cmsghdr) + sizeof(struct ip6_rthdr0));
210 cmsg->cmsg_len = sizeof(struct cmsghdr) + sizeof(struct ip6_rthdr0);
223 cmsg->cmsg_len += sizeof(struct in6_addr);
224 hdr->ip6r0_len += sizeof(struct in6_addr) / 8;
227 sizeof(struct in6_addr));
254 .namelen = sizeof(_name) - 1, \
336 MD5_Update(&ctxt, &ni_nonce_secret, sizeof(ni_nonce_secret));
337 MD5_Update(&ctxt, nonce, sizeof(__u16));
344 memcpy(nonce + sizeof(__u16), digest, NI_NONCE_SIZE - sizeof(__u16));
347 if (memcmp(nonce + sizeof(__u16), digest, NI_NONCE_SIZE - sizeof(__u16)))
360 memcpy(&ni_nonce_ptr[NI_NONCE_SIZE * (seq % MAX_DUP_CHK)], &v, sizeof(v));
362 for (i = sizeof(v); i < NI_NONCE_SIZE; i++)
367 memcpy(nonce, &v, sizeof(v));
446 #define ARRAY_SIZE(array) (sizeof(array) / sizeof(array[0]))
460 memset(&hints, 0, sizeof(hints));
464 ni_subject_len = sizeof(struct in6_addr);
469 ni_subject_len = sizeof(struct in_addr);
731 memset(&firsthop, 0, sizeof(firsthop));
835 if (cmsglen + CMSG_SPACE(space) > sizeof(cmsgbuf)) {
840 if (space + cmsglen > sizeof(cmsgbuf)) {
861 memset(&hints, 0, sizeof(hints));
902 ni_subject_len = sizeof(whereto.sin6_addr);
920 memset(&hints, 0, sizeof(hints));
931 memcpy(&whereto, ai->ai_addr, sizeof(whereto));
970 memset(&ipi, 0, sizeof(ipi));
982 setsockopt(probe_fd, IPPROTO_IPV6, IPV6_PKTINFO, &ipi, sizeof(ipi)) == -1 &&
991 if (connect(probe_fd, (struct sockaddr*)&firsthop, sizeof(firsthop)) == -1) {
995 alen = sizeof(source);
1015 if (!strncmp(ifa->ifa_name, device, sizeof(device) - 1) &&
1044 cmsglen += CMSG_SPACE(sizeof(*ipi));
1045 cmsg->cmsg_len = CMSG_LEN(sizeof(*ipi));
1050 memset(ipi, 0, sizeof(*ipi));
1070 if (setsockopt(icmp_sock, SOL_IPV6, IPV6_MTU_DISCOVER, &pmtudisc, sizeof(pmtudisc)) == -1) {
1077 bind(icmp_sock, (struct sockaddr*)&source, sizeof(source)) == -1) {
1082 if (datalen >= sizeof(struct timeval) && (ni_query < 0)) {
1094 if (setsockopt(icmp_sock, SOL_IPV6, IPV6_RECVERR, (char *)&hold, sizeof(hold))) {
1108 sz_opt = sizeof(int);
1140 &filter, sizeof(struct icmp6_filter));
1151 &loop, sizeof(loop)) == -1) {
1158 &ttl, sizeof(ttl)) == -1) {
1163 &ttl, sizeof(ttl)) == -1) {
1174 &on, sizeof(on)) == -1 &&
1176 &on, sizeof(on)) == -1
1179 &on, sizeof(on)) == -1
1190 &tclass, sizeof(tclass)) == -1) {
1204 char freq_buf[CMSG_ALIGN(sizeof(struct in6_flowlabel_req)) + cmsglen];
1206 int freq_len = sizeof(*freq);
1209 freq_len = CMSG_ALIGN(sizeof(*freq)) + srcrt->cmsg_len;
1211 memset(freq, 0, sizeof(*freq));
1219 memcpy(freq_buf + CMSG_ALIGN(sizeof(*freq)), srcrt, srcrt->cmsg_len);
1241 &on, sizeof(on)) == -1) {
1282 iov.iov_len = sizeof(icmph);
1284 msg.msg_namelen = sizeof(target);
1289 msg.msg_controllen = sizeof(cbuf);
1319 if (res < sizeof(icmph) ||
1387 cc = sizeof(*nih);
1414 sizeof(struct sockaddr_in6));
1422 memset(&mhdr, 0, sizeof(mhdr));
1424 mhdr.msg_namelen = sizeof(struct sockaddr_in6);
1460 len -= sizeof(struct ni_hdr) + 4;
1470 memset(buf, 0xff, sizeof(buf));
1475 ret = dn_expand(h, end, p, buf, sizeof(buf));
1509 aflen = sizeof(struct in_addr);
1514 aflen = sizeof(struct in6_addr);
1531 if (p + sizeof(__u32) + aflen > end) {
1535 if (!inet_ntop(af, p + sizeof(__u32), buf, sizeof(buf)))
1540 p += sizeof(__u32) + aflen;
1602 if (c->cmsg_len < CMSG_LEN(sizeof(int)))
1604 memcpy(&hops, CMSG_DATA(c), sizeof(hops));
1621 if (gather_statistics((__u8*)icmph, sizeof(*icmph), cc,
1631 if (gather_statistics((__u8*)icmph, sizeof(*icmph), cc,
1648 if (cc < 8+sizeof(struct ip6_hdr)+8)
1786 sizeof insns / sizeof(insns[0]),
1797 if (setsockopt(icmp_sock, SOL_SOCKET, SO_ATTACH_FILTER, &filter, sizeof(filter)))
1819 hp = gethostbyaddr((__u8*)addr, sizeof(struct in6_addr), AF_INET6);
1836 inet_ntop(AF_INET6, addr, str, sizeof(str));