1. 21 6月, 2016 34 次提交
  2. 20 6月, 2016 4 次提交
  3. 19 6月, 2016 2 次提交
    • D
      Merge branch 'ipv6-better-traceroute-sit-gre' · bd081e4b
      David S. Miller 提交于
      Eric Dumazet says:
      
      ====================
      ipv6: better traceroute support in sit and gre
      
      In commit ca15a078 ("sit: generate icmpv6 error when receiving icmpv4
      error"), Oussama Ghorbel added minimal support for SIT tunnels to
      generate ICMPv6 messages when receiving ICMPv4 messages.
      
      This patch series extends this to GRE tunnels.
      
      It also adds support for ICMPV6_TIME_EXCEED.
      
      Partial support for RFC 4884 is added, to forward ICMP Multi-part
      extensions eventually found in the ICMPv4 message.
      
      v2: replaced an overlapping memcpy() by memmove()
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      bd081e4b
    • E
      ipv6: RFC 4884 partial support for SIT/GRE tunnels · 20e1954f
      Eric Dumazet 提交于
      When receiving an ICMPv4 message containing extensions as
      defined in RFC 4884, and translating it to ICMPv6 at SIT
      or GRE tunnel, we need some extra manipulation in order
      to properly forward the extensions.
      
      This patch only takes care of Time Exceeded messages as they
      are the ones that typically carry information from various
      routers in a fabric during a traceroute session.
      
      It also avoids complex skb logic if the data_len is not
      a multiple of 8.
      
      RFC states :
      
         The "original datagram" field MUST contain at least 128 octets.
         If the original datagram did not contain 128 octets, the
         "original datagram" field MUST be zero padded to 128 octets.
      
      In practice routers use 128 bytes of original datagram, not more.
      
      Initial translation was added in commit ca15a078
      ("sit: generate icmpv6 error when receiving icmpv4 error")
      Signed-off-by: NEric Dumazet <edumazet@google.com>
      Cc: Oussama Ghorbel <ghorbel@pivasoftware.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      20e1954f