Files
openthread/doc/spinel-protocol-src/spinel-prop-ipv6.md
T
Jonathan Hui f602dcd5e7 [icmp6] allow config of echo handling for unicast/multicast separately (#2609)
Previously, ICMPv6 Echo Request handling was either enabled or disabled.
This commit allows enabling/disabling the handler for ICMPv6 Echo Requests
sent to unicast and multicast destinations separately.

This commit also adds an associated spinel property and NCP implementation.
2018-03-13 18:10:28 +00:00

1.7 KiB

IPv6 Properties

PROP 96: PROP_IPV6_LL_ADDR

  • Type: Read-Only
  • Packed-Encoding: 6

IPv6 Address

PROP 97: PROP_IPV6_ML_ADDR

  • Type: Read-Only
  • Packed-Encoding: 6

IPv6 Address + Prefix Length

PROP 98: PROP_IPV6_ML_PREFIX

  • Type: Read-Write
  • Packed-Encoding: 6C

IPv6 Prefix + Prefix Length

PROP 99: PROP_IPV6_ADDRESS_TABLE

  • Type: Read-Write
  • Packed-Encoding: A(t(6CLLC))

This property provides all unicast addresses. Array of structures containing:

  • 6: IPv6 Address
  • C: Network Prefix Length
  • L: Valid Lifetime
  • L: Preferred Lifetime
  • C: Flags

PROP 101: PROP_IPv6_ICMP_PING_OFFLOAD

  • Type: Read-Write
  • Packed-Encoding: b

Allow the NCP to directly respond to ICMP ping requests. If this is turned on, ping request ICMP packets will not be passed to the host.

Default value is false.

PROP 102: SPINEL_PROP_IPV6_MULTICAST_ADDRESS_TABLE

  • Type: Read-Write
  • Packed-Encoding: A(t(6))

Array of structures containing:

  • 6: Multicast IPv6 Address

PROP 103: PROP_IPv6_ICMP_PING_OFFLOAD_MODE

  • Type: Read-Write
  • Packed-Encoding: C
  • Unit: Enumeration

Allow the NCP to directly respond to ICMP ping requests. If this is turned on, ping request ICMP packets will not be passed to the host.

This property allows enabling responses sent to unicast only, multicast only, or both.

Values:

  • 0: IPV6_ICMP_PING_OFFLOAD_DISABLED
  • 1: IPV6_ICMP_PING_OFFLOAD_UNICAST_ONLY
  • 2: IPV6_ICMP_PING_OFFLOAD_MULTICAST_ONLY
  • 3: IPV6_ICMP_PING_OFFLOAD_ALL

Default value is IPV6_ICMP_PING_OFFLOAD_DISABLED.