Pavel Emelyanov de248a75c3 tcp repair: Fix unaligned access when repairing options (v2)
Don't pick __u8/__u16 values directly from raw pointers, but instead use
an array of structures of code:value pairs. This is OK, since the buffer
we take options from is not an skb memory, but a user-to-kernel one.

For those options which don't require any value now, require this to be
zero (for potential future extension of this API).

v2: Changed tcp_repair_opt to use two __u32-s as spotted by David Laight.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-04-26 06:13:51 -04:00
..
2012-04-15 12:37:19 -04:00
2012-04-15 12:44:40 -04:00
2012-04-02 04:33:43 -04:00
2012-03-28 18:30:03 +01:00
2012-04-15 12:37:19 -04:00
2012-04-15 12:37:19 -04:00
2011-10-19 03:10:46 -04:00
2012-03-08 00:30:32 -08:00
2012-04-15 12:37:19 -04:00
2012-04-15 12:37:19 -04:00
2012-03-11 23:42:51 -07:00
2012-04-15 12:37:19 -04:00
2011-12-12 19:04:10 -05:00
2012-04-15 12:44:40 -04:00
2012-03-19 16:53:08 -04:00
2012-04-15 12:37:19 -04:00
2012-03-11 15:52:12 -07:00
2012-01-20 14:17:26 -05:00
2012-01-20 14:17:26 -05:00
2011-03-31 11:26:23 -03:00
2012-01-31 12:14:00 -05:00
2011-03-31 11:26:23 -03:00
2012-03-11 23:42:51 -07:00
2012-01-17 10:31:12 -05:00
2012-04-15 12:37:19 -04:00
2010-07-12 12:57:54 -07:00