cvs commit: src/sbin/route route.c

Joerg Sonnenberger joerg at britannica.bec.de
Tue Mar 15 20:59:29 PST 2005


On Tue, Mar 15, 2005 at 08:47:01PM -0800, Chris Pressey wrote:
>   
>   - start at sa_data, end at sa + sa_len (NOT sa_data + sa_len);
>   - don't make assumptions about the size of u_short.

Actually this code this makes assumptions :)

I think it should be:
splim = (u_short *)sa +
    (sa->sa_len - offsetof(sa->sa_data)) / sizeof(u_short);

Beside, find a better way to do the hex printing, this is not
endian neutral.

Joerg





More information about the Commits mailing list