API for v6 of the Internet Control Message Protocol
More...
|
int | net_icmp6_send_echo (netif_t *net, const struct in6_addr *dst, uint16 ident, uint16 seq, const uint8 *data, size_t size) |
| Send an ICMPv6 Echo (PING6) packet to the specified device.
|
|
int | net_icmp6_send_nsol (netif_t *net, const struct in6_addr *dst, const struct in6_addr *target, int dupdet) |
| Send a Neighbor Solicitation packet on the specified device.
|
|
int | net_icmp6_send_nadv (netif_t *net, const struct in6_addr *dst, const struct in6_addr *target, int sol) |
| Send a Neighbor Advertisement packet on the specified device.
|
|
int | net_icmp6_send_rsol (netif_t *net) |
| Send a Router Solicitation request on the specified interface.
|
|
int | net_icmp6_send_dest_unreach (netif_t *net, uint8 code, const uint8 *ppkt, size_t psz) |
| Send a destination unreachable packet on the specified interface.
|
|
int | net_icmp6_send_time_exceeded (netif_t *net, uint8 code, const uint8 *ppkt, size_t psz) |
| Send a time exceeded message on the specified interface.
|
|
int | net_icmp6_send_param_prob (netif_t *net, uint8 code, uint32 ptr, const uint8 *ppkt, size_t psz) |
| Send an ICMPv6 Parameter Problem about the given packet.
|
|
API for v6 of the Internet Control Message Protocol
◆ net6_echo_cb
ICMPv6 echo reply callback type.
- Parameters
-
ip | The IPv6 address the reply is from. |
seq | The sequence number of the packet. |
delta_us | The time difference, in microseconds. |
hlim | The hop limit value in the packet. |
data | Any data in the packet. |
len | The length of the data, in bytes. |
◆ net_icmp6_send_dest_unreach()
int net_icmp6_send_dest_unreach |
( |
netif_t * | net, |
|
|
uint8 | code, |
|
|
const uint8 * | ppkt, |
|
|
size_t | psz ) |
Send a destination unreachable packet on the specified interface.
- Parameters
-
net | The network device to use. |
code | The type of message this is. |
ppkt | The message that caused this error. |
psz | Size of the original message. |
- Returns
- 0 on success, <0 on failure.
◆ net_icmp6_send_echo()
Send an ICMPv6 Echo (PING6) packet to the specified device.
- Parameters
-
net | The network device to use. |
dst | The address to send to. |
ident | A packet identifier. |
seq | A packet sequence number. |
data | Data to send with the packet. |
size | Length of the data, in bytes. |
- Returns
- 0 on success, <0 on failure.
◆ net_icmp6_send_nadv()
Send a Neighbor Advertisement packet on the specified device.
- Parameters
-
net | The network device to use. |
dst | The destination address. |
target | The target address. |
sol | 1 if solicited, 0 otherwise. |
- Returns
- 0 on success, <0 on failure.
◆ net_icmp6_send_nsol()
Send a Neighbor Solicitation packet on the specified device.
- Parameters
-
net | The network device to use. |
dst | The destination address. |
target | The target address. |
dupdet | 1 if this is for duplicate detection. |
- Returns
- 0 on success, <0 on failure.
◆ net_icmp6_send_param_prob()
Send an ICMPv6 Parameter Problem about the given packet.
- Parameters
-
net | The network device to use. |
code | The error code. |
ptr | Where in the packet is the error? |
ppkt | The message that caused the error. |
psz | Size of the original packet. |
- Returns
- 0 on success, <0 on failure.
◆ net_icmp6_send_rsol()
int net_icmp6_send_rsol |
( |
netif_t * | net | ) |
|
Send a Router Solicitation request on the specified interface.
- Parameters
-
net | The network device to use. |
- Returns
- 0 on success, <0 on failure.
◆ net_icmp6_send_time_exceeded()
int net_icmp6_send_time_exceeded |
( |
netif_t * | net, |
|
|
uint8 | code, |
|
|
const uint8 * | ppkt, |
|
|
size_t | psz ) |
Send a time exceeded message on the specified interface.
- Parameters
-
net | The network device to use. |
code | The error code. |
ppkt | The message that caused this error. |
psz | Size of the original packet. |
- Returns
- 0 on success, <0 on failure.
◆ net_icmp6_echo_cb
Where will we handle possibly notifying the user of ping replies?