shin
fdb3a70644
Avoid kernel panic when tcp rfc1323 and rfc1644 options are enabled
...
at the same time.
When rfc1323 and rfc1644 option are enabled by sysctl,
and tcp over IPv6 is tried, kernel panic happens by the
following check in tcp_output(), because now hdrlen is bigger
in such case than before.
/*#ifdef DIAGNOSTIC*/
if (max_linkhdr + hdrlen > MHLEN)
panic("tcphdr too big");
/*#endif*/
So change the above check to compare with MCLBYTES in #ifdef INET6 case.
Also, allocate a mbuf cluster for the header mbuf, in that case.
Bug reported at KAME environment.
Approved by: jkh
Reviewed by: sumikawa
Obtained from: KAME project
2000-02-09 00:34:40 +00:00
..
2000-02-02 23:49:32 +00:00
2000-01-13 19:01:33 +00:00
1999-11-22 02:45:11 +00:00
1999-12-29 04:46:21 +00:00
1999-12-07 17:39:16 +00:00
1998-02-03 21:52:02 +00:00
1999-10-18 11:56:50 +00:00
1999-12-29 04:46:21 +00:00
1999-12-29 04:46:21 +00:00
1999-12-29 04:46:21 +00:00
1999-12-22 19:13:38 +00:00
1999-08-28 01:08:13 +00:00
1999-08-28 01:08:13 +00:00
1999-12-22 19:13:38 +00:00
2000-01-15 05:20:40 +00:00
1999-08-28 01:08:13 +00:00
1999-12-29 04:46:21 +00:00
1999-12-22 19:13:38 +00:00
1999-12-29 04:46:21 +00:00
1999-12-22 19:13:38 +00:00
1999-08-28 01:08:13 +00:00
1999-12-29 04:46:21 +00:00
1999-12-29 04:46:21 +00:00
2000-01-13 14:52:53 +00:00
1999-12-29 04:46:21 +00:00
1999-11-22 02:45:11 +00:00
2000-01-13 19:01:33 +00:00
2000-01-13 19:01:33 +00:00
2000-01-13 19:01:33 +00:00
2000-01-08 12:53:48 +00:00
2000-02-04 16:45:33 +00:00
2000-01-08 11:24:46 +00:00
1999-12-22 19:13:38 +00:00
1999-12-29 04:46:21 +00:00
2000-01-13 19:01:33 +00:00
2000-01-14 19:48:42 +00:00
1999-08-28 01:08:13 +00:00
1999-08-28 01:08:13 +00:00
2000-01-13 19:01:33 +00:00
1999-11-23 21:44:59 +00:00
2000-01-13 19:01:33 +00:00
2000-01-09 19:17:30 +00:00
2000-01-08 11:31:43 +00:00
2000-01-28 06:13:09 +00:00
1999-12-29 04:46:21 +00:00
2000-01-24 20:39:02 +00:00
2000-01-13 19:01:33 +00:00
1999-12-22 19:13:38 +00:00
1999-12-29 04:46:21 +00:00
2000-01-13 19:01:33 +00:00
2000-01-13 19:01:33 +00:00
2000-01-10 18:46:05 +00:00
1999-11-23 21:44:59 +00:00
1999-11-23 21:44:59 +00:00
2000-01-13 19:01:33 +00:00
2000-01-13 19:01:33 +00:00
2000-01-13 19:01:33 +00:00
1999-11-23 21:44:59 +00:00
1999-12-29 04:46:21 +00:00
1999-12-22 19:13:38 +00:00
2000-01-13 19:01:33 +00:00
1999-12-22 19:13:38 +00:00
1999-12-20 15:49:38 +00:00
1999-12-22 19:13:38 +00:00
2000-01-29 11:49:07 +00:00
2000-01-29 11:49:07 +00:00
1999-11-07 04:18:30 +00:00
2000-01-28 06:13:09 +00:00
2000-02-09 00:34:40 +00:00
2000-01-28 06:13:09 +00:00
1999-12-29 04:46:21 +00:00
2000-01-25 01:05:18 +00:00
2000-01-09 19:17:30 +00:00
1999-12-29 04:46:21 +00:00
2000-01-25 01:05:18 +00:00
2000-01-09 19:17:30 +00:00
2000-01-09 19:17:30 +00:00
2000-01-09 19:17:30 +00:00
1999-08-28 01:08:13 +00:00
1999-12-22 19:13:38 +00:00
1999-12-29 04:46:21 +00:00
1999-08-28 01:08:13 +00:00