Andrey V. Elsukov
8428914909
Clear h/w csum flags on mbuf handled by UDP.
...
When checksums of received IP and UDP header already checked, UDP uses
sbappendaddr_locked() to pass received data to the socket.
sbappendaddr_locked() uses given mbuf as is, and if NIC supports checksum
offloading, mbuf contains csum_data and csum_flags that were calculated
for already stripped headers. Some NICs support only limited checksums
offloading and do not use CSUM_PSEUDO_HDR flag, and csum_data contains
some value that UDP/TCP should use for pseudo header checksum calculation.
When L2TP is used for tunneling with mpd5, ng_ksocket receives mbuf with
filled csum_flags and csum_data, that were calculated for outer headers.
When L2TP header is stripped, a packet that was tunneled goes to the IP
layer and due to presence of csum_flags (without CSUM_PSEUDO_HDR) and
csum_data, the UDP/TCP checksum check fails for this packet.
Reported by: Irina Liakh <spell at itl ua>
Tested by: Irina Liakh <spell at itl ua>
MFC after: 1 week
2017-04-13 17:03:57 +00:00
..
2017-01-15 18:00:45 +00:00
2016-10-06 16:28:34 +00:00
2017-03-13 18:05:31 +00:00
2017-04-12 20:27:15 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-03-11 04:57:52 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-03-14 20:57:54 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-03-31 00:41:54 +00:00
2017-04-10 08:19:35 +00:00
2017-04-10 08:19:35 +00:00
2017-03-14 20:57:54 +00:00
2017-03-25 15:06:28 +00:00
2017-03-21 16:23:44 +00:00
2016-03-31 00:53:23 +00:00
2016-07-28 18:39:30 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-04-11 19:20:20 +00:00
2017-02-28 23:42:47 +00:00
2017-01-25 19:04:08 +00:00
2017-01-25 19:04:08 +00:00
2017-03-21 06:39:49 +00:00
2016-05-26 21:40:13 +00:00
2016-12-29 19:57:46 +00:00
2017-04-03 02:44:40 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2016-07-06 14:09:49 +00:00
2017-04-11 19:20:20 +00:00
2017-03-14 20:57:54 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-03-25 15:06:28 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-03-21 06:39:49 +00:00
2016-12-26 11:06:41 +00:00
2016-12-06 10:21:25 +00:00
2016-12-26 11:06:41 +00:00
2016-12-26 11:06:41 +00:00
2016-12-26 11:06:41 +00:00
2016-12-26 11:06:41 +00:00
2016-12-26 11:06:41 +00:00
2016-12-07 19:30:59 +00:00
2016-12-26 11:06:41 +00:00
2016-12-06 10:21:25 +00:00
2016-04-07 09:10:34 +00:00
2016-12-07 19:30:59 +00:00
2016-12-26 11:06:41 +00:00
2016-12-26 11:06:41 +00:00
2017-02-13 11:37:52 +00:00
2016-12-26 11:06:41 +00:00
2016-05-02 20:56:11 +00:00
2017-02-13 11:37:52 +00:00
2017-02-01 00:10:29 +00:00
2016-12-26 11:06:41 +00:00
2017-02-13 11:37:52 +00:00
2016-12-26 11:06:41 +00:00
2016-12-06 10:21:25 +00:00
2016-12-26 11:06:41 +00:00
2016-12-26 11:06:41 +00:00
2017-02-28 23:42:47 +00:00
2016-12-26 11:06:41 +00:00
2016-05-12 16:34:59 +00:00
2017-01-31 23:34:02 +00:00
2016-02-17 18:04:22 +00:00
2016-12-06 10:21:25 +00:00
2017-01-31 23:36:31 +00:00
2016-12-07 19:30:59 +00:00
2016-04-07 09:10:34 +00:00
2016-12-26 11:06:41 +00:00
2016-12-26 11:06:41 +00:00
2016-03-11 23:18:06 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-03 17:02:57 +00:00
2017-02-28 23:42:47 +00:00
2017-02-16 20:47:41 +00:00
2016-10-06 16:28:34 +00:00
2017-04-12 20:27:15 +00:00
2016-08-25 13:33:32 +00:00
2016-08-02 06:36:47 +00:00
2017-04-10 08:19:35 +00:00
2016-07-06 16:17:13 +00:00
2016-07-06 16:17:13 +00:00
2017-02-28 23:42:47 +00:00
2016-12-25 17:37:18 +00:00
2017-02-28 23:42:47 +00:00
2017-03-21 06:39:49 +00:00
2017-03-21 06:39:49 +00:00
2017-02-28 23:42:47 +00:00
2017-03-21 06:39:49 +00:00
2017-03-21 06:39:49 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-04-10 08:19:35 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2016-06-02 17:51:29 +00:00
2017-04-13 17:03:57 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00