Lines Matching refs:m_len
443 m->m_len = opts->ip_nhops * sizeof(struct in_addr) + in ip_srcroute()
487 m->m_len -= olen; in ip_stripoptions()
494 (size_t )(m->m_len - sizeof(struct ip))); in ip_stripoptions()
512 optlen = opt->m_len - sizeof(p->ipopt_dst); in ip_insertoptions()
530 m->m_len -= sizeof(struct ip); in ip_insertoptions()
534 m->m_len = optlen + sizeof(struct ip); in ip_insertoptions()
539 m->m_len += optlen; in ip_insertoptions()
616 if (m == NULL || m->m_len == 0) { in ip_pcbopts()
625 if (m->m_len % sizeof(int32_t)) in ip_pcbopts()
631 if (m->m_data + m->m_len + sizeof(struct in_addr) >= &m->m_dat[MLEN]) in ip_pcbopts()
633 cnt = m->m_len; in ip_pcbopts()
634 m->m_len += sizeof(struct in_addr); in ip_pcbopts()
672 m->m_len -= sizeof(struct in_addr); in ip_pcbopts()
691 if (m->m_len > MAX_IPOPTLEN + sizeof(struct in_addr)) in ip_pcbopts()