Erik Nordmark wrote:
> [EMAIL PROTECTED] wrote:
>
>   
>> Everytime the networking code wants to know how long the
>> packet is, it is necessary to call msgdsize() - or similar.
>> In the best cast, this requires a simple bit of pointer arithmetic,
>> but otherwise becomes a linked list walk.  Costly.
>>     
>
> I think ipha_length works just fine.
> The only exception is where IP needs to verify that the length of the 
> received packet is consistent with ipha_length.
>   

No, it doesn't.

A lot of device drivers do msgdsize.  Some (neptune, I'm looking at 
you!) call it *a lot* (repeatedly) on the same packet.

It would be very, very handy to have to full packet (maybe I mean 
ethernet frame here) length pre-calculated.

    -- Garrett
>
>     Erik
> _______________________________________________
> networking-discuss mailing list
> [email protected]
>   

_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to