View | Details | Raw Unified | Return to bug 192013 | Differences between
and this patch

Collapse All | Expand All

(-)pf_ioctl.c (-6 / +3 lines)
Lines 3534-3540 Link Here
3534
	int chk;
3534
	int chk;
3535
3535
3536
	/* We need a proper CSUM befor we start (s. OpenBSD ip_output) */
3536
	/* We need a proper CSUM befor we start (s. OpenBSD ip_output) */
3537
	if ((*m)->m_pkthdr.csum_flags & CSUM_DELAY_DATA) {
3537
	if ((*m)->m_pkthdr.csum_flags & CSUM_DELAY_DATA & ~ifp->if_hwassist) {
3538
		in_delayed_cksum(*m);
3538
		in_delayed_cksum(*m);
3539
		(*m)->m_pkthdr.csum_flags &= ~CSUM_DELAY_DATA;
3539
		(*m)->m_pkthdr.csum_flags &= ~CSUM_DELAY_DATA;
3540
	}
3540
	}
Lines 3578-3588 Link Here
3578
	int chk;
3578
	int chk;
3579
3579
3580
	/* We need a proper CSUM before we start (s. OpenBSD ip_output) */
3580
	/* We need a proper CSUM before we start (s. OpenBSD ip_output) */
3581
	if ((*m)->m_pkthdr.csum_flags & CSUM_DELAY_DATA) {
3581
	if ((*m)->m_pkthdr.csum_flags & CSUM_DELAY_DATA & ~ifp->if_hwassist) {	
3582
#ifdef INET
3582
		in6_delayed_cksum(*m);
3583
		/* XXX-BZ copy&paste error from r126261? */
3584
		in_delayed_cksum(*m);
3585
#endif
3586
		(*m)->m_pkthdr.csum_flags &= ~CSUM_DELAY_DATA;
3583
		(*m)->m_pkthdr.csum_flags &= ~CSUM_DELAY_DATA;
3587
	}
3584
	}
3588
	CURVNET_SET(ifp->if_vnet);
3585
	CURVNET_SET(ifp->if_vnet);

Return to bug 192013