incubator-nuttx/net/icmpv6
wangchen 2e6d0815b2 nuttx/net:Support to PMTUD
RFC 1191
When a router is unable to forward a datagram because it exceeds the
   MTU of the next-hop network and its Don't Fragment bit is set, the
   router is required to return an ICMP Destination Unreachable message
   to the source of the datagram, with the Code indicating
   "fragmentation needed and DF set".  To support the Path MTU Discovery
   technique specified in this memo, the router MUST include the MTU of
   that next-hop network in the low-order 16 bits of the ICMP header
   field that is labelled "unused" in the ICMP specification [7].  The
   high-order 16 bits remain unused, and MUST be set to zero.  Thus, the
   message has the following format:

       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |   Type = 3    |   Code = 4    |           Checksum            |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |           unused = 0          |         Next-Hop MTU          |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |      Internet Header + 64 bits of Original Datagram Data      |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
RFC 1185
Packet Too Big Message

       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |     Type      |     Code      |          Checksum             |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                             MTU                               |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |                    As much of invoking packet                 |
      +               as will fit without the ICMPv6 packet           +
      |                       exceeding 576 octets                    |

   IPv6 Fields:

   Destination Address

                  Copied from the Source Address field of the invoking
                  packet.

   ICMPv6 Fields:

   Type           2

   Code           0

   MTU            The Maximum Transmission Unit of the next-hop link.

   Description

   A Packet Too Big MUST be sent by a router in response to a packet
   that it cannot forward because the packet is larger than the MTU of
   the outgoing link.  The information in this message is used as part
   of the Path MTU Discovery process [RFC-1191].

Signed-off-by: wangchen <wangchen41@xiaomi.com>
2023-05-12 10:21:52 -03:00
..
Kconfig nuttx/net:Support to PMTUD 2023-05-12 10:21:52 -03:00
Make.defs nuttx/net:Support to PMTUD 2023-05-12 10:21:52 -03:00
icmpv6.h nuttx/net:Support to PMTUD 2023-05-12 10:21:52 -03:00
icmpv6_advertise.c support ipv4 ToS and ipv6 TrafficClass 2023-01-29 13:43:44 +08:00
icmpv6_autoconfig.c net: consistent the net sem wait naming conversion 2023-01-15 12:31:30 -03:00
icmpv6_conn.c icmpv6: add SOCK_RAW type support 2023-05-07 22:43:10 +08:00
icmpv6_input.c nuttx/net:Support to PMTUD 2023-05-12 10:21:52 -03:00
icmpv6_ioctl.c net: Align the prototype of sock_intf_s::si_ioctl with file_operations::ioctl 2022-09-06 22:46:37 +08:00
icmpv6_linkipaddr.c Fix nxstyle warning 2020-08-22 17:37:21 -06:00
icmpv6_neighbor.c net: consistent the net sem wait naming conversion 2023-01-15 12:31:30 -03:00
icmpv6_netpoll.c poll: add poll_notify() api and call it in all drivers 2022-09-26 12:06:32 +08:00
icmpv6_notify.c net: consistent the net sem wait naming conversion 2023-01-15 12:31:30 -03:00
icmpv6_pmtu.c nuttx/net:Support to PMTUD 2023-05-12 10:21:52 -03:00
icmpv6_poll.c net/devif_poll: optimize device buffer alloc in txpoll 2023-01-13 16:41:10 +08:00
icmpv6_radvertise.c icmpv6: add RDNSS field support for send route advertise 2023-03-17 16:50:37 -03:00
icmpv6_recvmsg.c in.h: add SOL_IPV6 protocol-level socket option IPV6_RECVHOPLIMIT 2023-05-10 18:00:15 +08:00
icmpv6_reply.c support ipv4 ToS and ipv6 TrafficClass 2023-01-29 13:43:44 +08:00
icmpv6_rnotify.c net: consistent the net sem wait naming conversion 2023-01-15 12:31:30 -03:00
icmpv6_rsolicit.c support ipv4 ToS and ipv6 TrafficClass 2023-01-29 13:43:44 +08:00
icmpv6_sendmsg.c icmpv6: add SOCK_RAW type support 2023-05-07 22:43:10 +08:00
icmpv6_sockif.c icmpv6: add SOCK_RAW type support 2023-05-07 22:43:10 +08:00
icmpv6_solicit.c support ipv4 ToS and ipv6 TrafficClass 2023-01-29 13:43:44 +08:00