Hi Everybody
It seems I can't figure how to correctly offload my TCP/UDP packet to
the H/W network checksumming routines. It seems rather inconvenient
that I have to add all typical checksumming code into the driver -
because neither of mbuf API can actually re-checksum the packet. As
for H/W support - I can see from the flags that my H/W supports TCP
offload but if I set tcp checksum f.ex. to zero in my Interface
filter the packet will not be checksummed later in the hardware.
Thus some questions:
1) Seems that there is no kernel API to do IP checksumming in Mac -
is it true, if not how to do it? mbuf finalize func does not do it.
2) Seems that hardware TCP/UDP checksum offload is actually missing
from Mac at all? At least it is not present on MacBook/MacBook pro.
If yes why does it advertise itself using ifnet API as capable to do
it? If I am wrong how can I check that my network adapter is actually
doing its work and how can I benefit from this in my code (I am
actively changing the packet)
Best regards,
Platon.
On Aug 23, 2007, at 9:05 AM, JanakiRam wrote:
email@hidden
This email sent to email@hidden