Searched refs:copym (Results 1 – 2 of 2) sorted by relevance
1531 struct mbuf *copym; in ip_mloopback() local1537 copym = m_dup(m, M_NOWAIT); in ip_mloopback()1538 if (copym != NULL && (!M_WRITABLE(copym) || copym->m_len < hlen)) in ip_mloopback()1539 copym = m_pullup(copym, hlen); in ip_mloopback()1540 if (copym != NULL) { in ip_mloopback()1542 if (copym->m_pkthdr.csum_flags & CSUM_DELAY_DATA) { in ip_mloopback()1543 in_delayed_cksum(copym); in ip_mloopback()1544 copym->m_pkthdr.csum_flags &= ~CSUM_DELAY_DATA; in ip_mloopback()1545 copym->m_pkthdr.csum_flags |= in ip_mloopback()1547 copym->m_pkthdr.csum_data = 0xffff; in ip_mloopback()[all …]
3283 struct mbuf *copym; in ip6_mloopback() local3286 copym = m_copym(m, 0, M_COPYALL, M_NOWAIT); in ip6_mloopback()3287 if (copym == NULL) in ip6_mloopback()3295 if (!M_WRITABLE(copym) || in ip6_mloopback()3296 copym->m_len < sizeof(struct ip6_hdr)) { in ip6_mloopback()3297 copym = m_pullup(copym, sizeof(struct ip6_hdr)); in ip6_mloopback()3298 if (copym == NULL) in ip6_mloopback()3301 ip6 = mtod(copym, struct ip6_hdr *); in ip6_mloopback()3308 if (copym->m_pkthdr.csum_flags & CSUM_DELAY_DATA_IPV6) { in ip6_mloopback()3309 copym->m_pkthdr.csum_flags |= CSUM_DATA_VALID_IPV6 | in ip6_mloopback()[all …]