Home | History | Annotate | Download | only in slirp-android

Lines Matching full:sizeof

87 	if (m->m_len < sizeof (struct ip)) {
100 if (hlen<sizeof(struct ip ) || hlen>m->m_len) {/* min header length */
173 /* if (hlen > sizeof (struct ip) && ip_dooptions(m))
259 #define iptofrag(P) ((struct ipasfrag *)(((char*)(P)) - sizeof(struct qlink)))
260 #define fragtoip(P) ((struct ip*)(((char*)(P)) + sizeof(struct qlink)))
515 cnt = (ip->ip_hl << 2) - sizeof (struct ip);
565 if (off > optlen - sizeof(struct in_addr)) {
576 sizeof(ipaddr.sin_addr));
591 (caddr_t)(cp + off), sizeof(struct in_addr));
592 cp[IPOPT_OFFSET] += sizeof(struct in_addr);
608 if (off > optlen - sizeof(struct in_addr))
611 sizeof(ipaddr.sin_addr));
623 (caddr_t)(cp + off), sizeof(struct in_addr));
624 cp[IPOPT_OFFSET] += sizeof(struct in_addr);
632 if (ipt->ipt_ptr > ipt->ipt_len - sizeof (int32_t)) {
644 if (ipt->ipt_ptr + sizeof
645 sizeof(struct in_addr) > ipt->ipt_len)
653 (caddr_t)sin, sizeof(struct in_addr));
654 ipt->ipt_ptr += sizeof(struct in_addr);
658 if (ipt->ipt_ptr + sizeof(n_time) +
659 sizeof(struct in_addr) > ipt->ipt_len)
662 sizeof(struct in_addr));
665 ipt->ipt_ptr += sizeof(struct in_addr);
673 sizeof(n_time));
674 ipt->ipt_ptr += sizeof(n_time);
711 olen = (ip->ip_hl<<2) - sizeof (struct ip);
713 i = m->m_len - (sizeof (struct ip) + olen);
717 ip->ip_hl = sizeof(struct ip) >> 2;