Ignore:
Timestamp:
Apr 16, 2017, 3:07:01 PM (6 weeks ago)
Author:
brainslayer
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-3.18/net/ipv4/ip_sockglue.c

    r26375 r31869  
    10671067                pktinfo->ipi_spec_dst.s_addr = 0;
    10681068        }
    1069         skb_dst_drop(skb);
     1069        /* We need to keep the dst for __ip_options_echo()
     1070         * We could restrict the test to opt.ts_needtime || opt.srr,
     1071         * but the following is good enough as IP options are not often used.
     1072         */
     1073        if (unlikely(IPCB(skb)->opt.optlen))
     1074                skb_dst_force(skb);
     1075        else
     1076                skb_dst_drop(skb);
    10701077}
    10711078
Note: See TracChangeset for help on using the changeset viewer.