Subject: Re: ip->ip_len signed?
To: Tim Newsham <newsham@aloha.net>
From: Kevin M. Lahey <kml@nas.nasa.gov>
List: tech-kern
Date: 10/24/1996 22:19:28
In message <199610250158.PAA27381@haleakala.aloha.net>Tim Newsham writes
>
> I noticed this in an include file and it struck me
>as odd:
>
> struct ip {
> ...
> int16_t ip_len;
> ...
> }
>
>why is the length field signed?
Because nobody would ever want to send an IP packet bigger than
32K, right? I posted some patches for this earlier in the year,
and I promise I'll do a send-pr on it within the next week, :-)
as soon as I get the actual 1.2 release running.
I'll also try to spend a little time to ensure that the Win95
ping bug (bogusly large pings crashing various systems) doesn't
bite us...
Kevin