Lines Matching full:sizeof
202 char buf[sizeof (isakmp) + 4];
204 char lbuf[sizeof(struct udphdr) +
206 sizeof(struct iphdr) +
208 sizeof(struct ip) +
210 sizeof(isakmp) + 4];
214 unsigned int remote_len = sizeof(remote);
215 unsigned int local_len = sizeof(local);
221 while ((len = recvfromto(so_isakmp, x.buf, sizeof(x),
252 ip = (struct iphdr *)(x.lbuf + sizeof(*udp));
253 extralen += sizeof(*udp) + ip->ihl;
260 ip = (struct ip *)(x.lbuf + sizeof(*udp));
261 extralen += sizeof(*udp) + ip->ip_hl;
275 memcpy ((char *)&isakmp, x.buf + extralen, sizeof (isakmp));
278 if (len < sizeof(isakmp) || ntohl(isakmp.len) < sizeof(isakmp)) {
281 len, ntohl(isakmp.len), sizeof(isakmp));
283 if ((len = recvfrom(so_isakmp, (char *)&isakmp, sizeof(isakmp),
296 if ((len = recvfrom(so_isakmp, (char *)&isakmp, sizeof(isakmp),
311 if ((len = recvfrom(so_isakmp, (char *)&isakmp, sizeof(isakmp),
411 if (memcmp(&isakmp->i_ck, r_ck0, sizeof(cookie_t)) == 0) {
462 if (memcmp(&isakmp->r_ck, r_ck0, sizeof(cookie_t)) == 0 &&
563 sizeof(cookie_t)) != 0) {
1152 memcpy(&iph1->index.i_ck, &isakmp->i_ck, sizeof(iph1->index.i_ck));
1433 result = vmalloc(sizeof(struct isakmp_parse_t) * 5);
1440 ep = (struct isakmp_parse_t *)(result->v + result->l - sizeof(*ep));
1446 if (tlen <= sizeof(struct isakmp_gen)) {
1459 if (p->len < sizeof(struct isakmp_gen) || p->len > tlen) {
1479 (result->v + result->l - sizeof(*ep));
1512 gen = (struct isakmp_gen *)(buf->v + sizeof(*isakmp));
1513 tlen = buf->l - sizeof(struct isakmp);
1551 memset(buf, 0, sizeof(buf));
1555 for (j = 0, i = 0; i < sizeof(isakmp_index); i++) {
1556 snprintf((char *)&buf[j], sizeof(buf) - j, "%02x", p[i]);
1568 snprintf((char *)&buf[j], sizeof(buf) - j, ":%08x", ntohs(msgid));
1644 (const void *)&yes, sizeof(yes)) < 0) {
1663 (const void *)&yes, sizeof(yes)) < 0)
1677 (void *)&yes, sizeof(yes)) < 0) {
1715 UDP_ENCAP, &option, sizeof (option)) < 0) {
2375 return buf + sizeof(*data) + len;
2391 return buf + sizeof(*data);
2407 tlen = sizeof(*data) + len;
2440 tlen = sizeof(*data);
2487 alen = sizeof(struct in_addr);
2493 alen = sizeof(struct in6_addr);
2503 blen = (alen + sizeof(u_short)) * 2
2504 + sizeof(time_t) + lcconf->secret_size;
2517 memcpy(p, &port, sizeof(u_short));
2518 p += sizeof(u_short);
2524 memcpy(p, &port, sizeof(u_short));
2525 p += sizeof(u_short);
2529 memcpy(p, (caddr_t)&t, sizeof(t));
2530 p += sizeof(t);
2541 memcpy(place, buf2->v, sizeof(cookie_t));
2543 sa1 = val2str(place, sizeof (cookie_t));
2571 *buf = vmalloc(ntohs(gen->len) - sizeof(*gen));
2609 if (vbuf->l < sizeof(*isakmp))
2614 memcpy(&isakmp->i_ck, &iph1->index.i_ck, sizeof(cookie_t));
2615 memcpy(&isakmp->r_ck, &iph1->index.r_ck, sizeof(cookie_t));
2623 return vbuf->v + sizeof(*isakmp);
2667 gen->len = htons(sizeof(*gen) + src->l);
2668 p += sizeof(*gen);
2727 memset(&addr, 0, sizeof(addr));
2729 addr.sin_len = sizeof(struct sockaddr_in);
2732 memcpy(&addr.sin_addr, ap, sizeof(addr.sin_addr));
2733 if (getnameinfo((struct sockaddr *)&addr, sizeof(addr),
2734 ntop_buf, sizeof(ntop_buf), NULL, 0,
2736 strlcpy(ntop_buf, "?", sizeof(ntop_buf));
2753 memset(&addr, 0, sizeof(addr));
2754 addr.sin6_len = sizeof(struct sockaddr_in6);
2756 memcpy(&addr.sin6_addr, ap, sizeof(addr.sin6_addr));
2758 ntop_buf, sizeof(ntop_buf), NULL, 0,
2760 strlcpy(ntop_buf, "?", sizeof(ntop_buf));
2806 if (getnameinfo(from, sysdep_sa_len(from), hostbuf, sizeof(hostbuf),
2807 portbuf, sizeof(portbuf),
2809 strlcpy(hostbuf, "?", sizeof(hostbuf));
2810 strlcpy(portbuf, "?", sizeof(portbuf));
2817 if (getnameinfo(my, sysdep_sa_len(my), hostbuf, sizeof(hostbuf),
2818 portbuf, sizeof(portbuf),
2820 strlcpy(hostbuf, "?", sizeof(hostbuf));
2821 strlcpy(portbuf, "?", sizeof(portbuf));
2954 plist = racoon_malloc (sizeof (struct payload_list));
2958 plist->next = racoon_malloc (sizeof (struct payload_list));
2974 size_t tlen = sizeof (struct isakmp), n = 0;
2984 tlen += ptr->payload->l + sizeof (struct isakmp_gen);
3136 newenvp = racoon_realloc(*envp, newenvc * sizeof(char *));
3222 if ((msg->sadb_msg_len << 3) < sizeof(*msg))
3362 memset(&spidx, 0, sizeof(spidx));
3429 sizeof(struct in_addr) << 3;
3434 sizeof(struct in6_addr) << 3;
3501 sizeof(struct in_addr) << 3;
3506 sizeof(struct in6_addr) << 3;