David S. Miller f8ab18d2d9 [TCP]: Fix MD5 signature handling on big-endian.
Based upon a report and initial patch by Peter Lieven.

tcp4_md5sig_key and tcp6_md5sig_key need to start with
the exact same members as tcp_md5sig_key.  Because they
are both cast to that type by tcp_v{4,6}_md5_do_lookup().

Unfortunately tcp{4,6}_md5sig_key use a u16 for the key
length instead of a u8, which is what tcp_md5sig_key
uses.  This just so happens to work by accident on
little-endian, but on big-endian it doesn't.

Instead of casting, just place tcp_md5sig_key as the first member of
the address-family specific structures, adjust the access sites, and
kill off the ugly casts.

Signed-off-by: David S. Miller <davem@davemloft.net>
2007-09-28 15:18:35 -07:00
..
2007-09-16 16:43:04 -07:00
2007-09-16 16:21:16 -07:00
2007-09-16 14:52:15 -07:00
2007-08-21 20:58:06 -07:00
2007-07-19 10:44:40 +09:00
2007-07-26 11:11:56 -07:00
2007-07-31 02:28:27 -07:00
2007-07-16 09:05:45 -07:00
2005-04-16 15:20:36 -07:00