Shmulik Ladkani
fedbb6b4ff
ipv4: Fix ip_skb_dst_mtu to use the sk passed by ip_finish_output
...
ip_skb_dst_mtu uses skb->sk, assuming it is an AF_INET socket (e.g. it
calls ip_sk_use_pmtu which casts sk as an inet_sk).
However, in the case of UDP tunneling, the skb->sk is not necessarily an
inet socket (could be AF_PACKET socket, or AF_UNSPEC if arriving from
tun/tap).
OTOH, the sk passed as an argument throughout IP stack's output path is
the one which is of PMTU interest:
- In case of local sockets, sk is same as skb->sk;
- In case of a udp tunnel, sk is the tunneling socket.
Fix, by passing ip_finish_output's sk to ip_skb_dst_mtu.
This augments 7026b1ddb6 'netfilter: Pass socket pointer down through okfn().'
Signed-off-by: Shmulik Ladkani <shmulik.ladkani@gmail.com >
Reviewed-by: Hannes Frederic Sowa <hannes@stressinduktion.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-06-30 09:02:48 -04:00
..
2016-05-06 11:50:01 +02:00
2016-05-23 14:32:06 -07:00
2015-08-25 13:38:50 -07:00
2016-04-27 22:48:24 -04:00
2016-04-07 16:44:14 -04:00
2015-07-29 22:44:04 -07:00
2016-03-13 23:28:35 -04:00
2016-06-23 11:52:00 -04:00
2016-05-06 15:51:47 -04:00
2015-07-24 22:46:11 -07:00
2015-09-09 14:19:50 -07:00
2016-05-15 13:32:48 -04:00
2016-02-01 15:56:08 -08:00
2016-05-20 18:03:16 -04:00
2016-06-15 22:15:21 -07:00
2016-05-20 18:03:15 -04:00
2016-04-27 22:48:23 -04:00
2016-03-08 12:34:12 -05:00
2016-05-04 23:47:54 -04:00
2016-04-26 12:00:48 -04:00
2016-01-05 22:25:57 -05:00
2016-05-04 00:52:29 -04:00
2016-05-04 16:55:11 -04:00
2015-08-28 13:32:36 -07:00
2016-04-27 22:48:24 -04:00
2016-04-27 22:48:23 -04:00
2016-06-15 22:15:21 -07:00
2016-05-11 19:31:40 -04:00
2016-03-01 17:18:44 -05:00
2016-06-30 09:02:48 -04:00
2016-05-16 13:46:23 -04:00
2016-05-20 18:03:16 -04:00
2016-05-20 18:03:16 -04:00
2016-03-31 08:59:56 +02:00
2015-04-03 12:11:15 -04:00
2016-06-11 20:40:24 -07:00
2016-05-20 18:03:15 -04:00
2016-06-28 04:14:09 -04:00
2016-02-17 16:15:46 -05:00
2016-02-17 16:15:46 -05:00
2015-09-29 20:21:32 +02:00
2016-04-04 15:50:30 -04:00
2016-02-16 20:42:54 -05:00
2014-09-19 17:15:31 -04:00
2016-04-04 15:50:30 -04:00
2016-05-09 22:33:52 -04:00
2016-04-27 22:48:24 -04:00
2016-05-23 14:32:06 -07:00
2016-05-11 14:43:19 -04:00
2016-05-11 14:43:19 -04:00
2015-09-25 13:00:38 -07:00
2016-05-11 14:43:19 -04:00
2015-10-23 02:46:52 -07:00
2015-12-15 23:26:52 -05:00
2016-05-02 17:02:25 -04:00
2015-07-09 14:22:52 -07:00
2016-05-11 14:43:19 -04:00
2015-07-09 14:22:52 -07:00
2016-05-11 14:43:19 -04:00
2016-05-11 14:43:19 -04:00
2016-05-16 13:46:23 -04:00
2016-05-11 14:43:19 -04:00
2016-04-23 20:13:24 -04:00
2016-05-02 17:02:25 -04:00
2016-05-20 18:03:15 -04:00
2016-06-29 05:25:11 -04:00
2016-03-01 17:18:44 -05:00
2016-05-02 17:02:25 -04:00
2015-07-09 14:22:52 -07:00
2016-05-02 17:02:25 -04:00
2016-05-11 14:43:19 -04:00
2016-05-11 14:43:19 -04:00
2016-05-11 14:43:19 -04:00
2016-05-11 14:43:19 -04:00
2016-05-11 14:43:19 -04:00
2016-05-04 12:44:36 -04:00
2016-04-04 22:11:19 -04:00
2015-03-02 13:06:31 -05:00
2016-05-20 18:03:15 -04:00
2016-04-07 16:53:29 -04:00
2016-06-14 17:23:09 -04:00
2014-05-23 16:28:53 -04:00
2015-09-17 17:18:37 -07:00
2015-03-25 14:07:04 -04:00
2015-10-24 06:54:12 -07:00
2015-12-22 16:26:31 -05:00
2014-06-30 07:49:47 +02:00