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()
528 m->m_len -= sizeof(struct ip); in ip_insertoptions()
532 m->m_len = optlen + sizeof(struct ip); in ip_insertoptions()
537 m->m_len += optlen; in ip_insertoptions()
614 if (m == NULL || m->m_len == 0) { in ip_pcbopts()
623 if (m->m_len % sizeof(int32_t)) in ip_pcbopts()
629 if (m->m_data + m->m_len + sizeof(struct in_addr) >= &m->m_dat[MLEN]) in ip_pcbopts()
631 cnt = m->m_len; in ip_pcbopts()
632 m->m_len += sizeof(struct in_addr); in ip_pcbopts()
670 m->m_len -= sizeof(struct in_addr); in ip_pcbopts()
689 if (m->m_len > MAX_IPOPTLEN + sizeof(struct in_addr)) in ip_pcbopts()