|
@@ -993,6 +993,9 @@ void ipv4_update_pmtu(struct sk_buff *skb, struct net *net, u32 mtu,
|
|
struct flowi4 fl4;
|
|
struct flowi4 fl4;
|
|
struct rtable *rt;
|
|
struct rtable *rt;
|
|
|
|
|
|
|
|
+ if (!mark)
|
|
|
|
+ mark = IP4_REPLY_MARK(net, skb->mark);
|
|
|
|
+
|
|
__build_flow_key(&fl4, NULL, iph, oif,
|
|
__build_flow_key(&fl4, NULL, iph, oif,
|
|
RT_TOS(iph->tos), protocol, mark, flow_flags);
|
|
RT_TOS(iph->tos), protocol, mark, flow_flags);
|
|
rt = __ip_route_output_key(net, &fl4);
|
|
rt = __ip_route_output_key(net, &fl4);
|
|
@@ -1010,6 +1013,10 @@ static void __ipv4_sk_update_pmtu(struct sk_buff *skb, struct sock *sk, u32 mtu)
|
|
struct rtable *rt;
|
|
struct rtable *rt;
|
|
|
|
|
|
__build_flow_key(&fl4, sk, iph, 0, 0, 0, 0, 0);
|
|
__build_flow_key(&fl4, sk, iph, 0, 0, 0, 0, 0);
|
|
|
|
+
|
|
|
|
+ if (!fl4.flowi4_mark)
|
|
|
|
+ fl4.flowi4_mark = IP4_REPLY_MARK(sock_net(sk), skb->mark);
|
|
|
|
+
|
|
rt = __ip_route_output_key(sock_net(sk), &fl4);
|
|
rt = __ip_route_output_key(sock_net(sk), &fl4);
|
|
if (!IS_ERR(rt)) {
|
|
if (!IS_ERR(rt)) {
|
|
__ip_rt_update_pmtu(rt, &fl4, mtu);
|
|
__ip_rt_update_pmtu(rt, &fl4, mtu);
|