Hello all,
i was reading ip_output() code today and stumbled accross this
http://fxr.watson.org/fxr/source/netinet/ip_output.c#L587.

Can anybody shad any light on the check being done ?
(m->m_pkthdr.csum_flags & ifp->if_hwassist & CSUM_TSO) != 0 ||

Shouldn't it be just
(m->m_pkthdr.csum_flags & CSUM_TSO) != 0 ||
or it shold be
(ifp->if_hwassist & CSUM_TSO) != 0 ||

while just a few lines above the following computation is done
m->m_pkthdr.csum_flags &= ifp->if_hwassist;

I am not sure how the compiler interprets it and it might be right
though reading it is somewhat not clear what is going on.

Is this correct?

Regards,
--
Ermal
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to