Lines Matching refs:m_pkthdr
230 ip->ip_len = htons(m->m_pkthdr.len); in ipsec4_perform_request()
325 if (m->m_pkthdr.csum_flags & CSUM_DELAY_DATA) { in ipsec4_common_output()
327 m->m_pkthdr.csum_flags &= ~CSUM_DELAY_DATA; in ipsec4_common_output()
330 if (m->m_pkthdr.csum_flags & CSUM_SCTP) { in ipsec4_common_output()
334 m->m_pkthdr.csum_flags &= ~CSUM_SCTP; in ipsec4_common_output()
520 ip6->ip6_plen = htons(m->m_pkthdr.len - sizeof(*ip6)); in ipsec6_perform_request()
535 if (m->m_pkthdr.len - sizeof(*ip6) > IPV6_MAXPACKET) { in ipsec6_perform_request()
619 if (m->m_pkthdr.csum_flags & CSUM_DELAY_DATA_IPV6) { in ipsec6_common_output()
620 in6_delayed_cksum(m, m->m_pkthdr.len - in ipsec6_common_output()
622 m->m_pkthdr.csum_flags &= ~CSUM_DELAY_DATA_IPV6; in ipsec6_common_output()
625 if (m->m_pkthdr.csum_flags & CSUM_SCTP_IPV6) { in ipsec6_common_output()
627 m->m_pkthdr.csum_flags &= ~CSUM_SCTP_IPV6; in ipsec6_common_output()
701 mtod(m, struct ip *)->ip_len = htons(m->m_pkthdr.len); in ipsec_process_done()
707 if (m->m_pkthdr.len < sizeof (struct ip6_hdr)) { in ipsec_process_done()
711 if (m->m_pkthdr.len - sizeof (struct ip6_hdr) > IPV6_MAXPACKET) { in ipsec_process_done()
717 htons(m->m_pkthdr.len - sizeof(struct ip6_hdr)); in ipsec_process_done()
842 m->m_pkthdr.len += len; in ipsec_prepend()
855 n->m_pkthdr.len += len; in ipsec_prepend()
917 ip->ip_len = htons((*mp)->m_pkthdr.len); in ipsec_encap()
950 ip6->ip6_plen = htons((*mp)->m_pkthdr.len - sizeof(*ip6)); in ipsec_encap()