Rtos API example
lwip_icmp6.c File Reference
IPv6 version of ICMP, as per RFC 4443. More...
Go to the source code of this file.
Functions | |
static void | icmp6_send_response (struct pbuf *p, u8_t code, u32_t data, u8_t type) |
Send an ICMPv6 packet in response to an incoming packet. | |
void | icmp6_input (struct pbuf *p, struct netif *inp) |
Process an input ICMPv6 message. | |
void | icmp6_dest_unreach (struct pbuf *p, enum icmp6_dur_code c) |
Send an icmpv6 'destination unreachable' packet. | |
void | icmp6_packet_too_big (struct pbuf *p, u32_t mtu) |
Send an icmpv6 'packet too big' packet. | |
void | icmp6_time_exceeded (struct pbuf *p, enum icmp6_te_code c) |
Send an icmpv6 'time exceeded' packet. | |
void | icmp6_param_problem (struct pbuf *p, enum icmp6_pp_code c, u32_t pointer) |
Send an icmpv6 'parameter problem' packet. |
Detailed Description
IPv6 version of ICMP, as per RFC 4443.
Definition in file lwip_icmp6.c.
Function Documentation
void icmp6_dest_unreach | ( | struct pbuf * | p, |
enum icmp6_dur_code | c | ||
) |
Send an icmpv6 'destination unreachable' packet.
- Parameters:
-
p the input packet for which the 'unreachable' should be sent, p->payload pointing to the IPv6 header c ICMPv6 code for the unreachable type
Definition at line 217 of file lwip_icmp6.c.
Process an input ICMPv6 message.
Called by ip6_input.
Will generate a reply for echo requests. Other messages are forwarded to nd6_input, or mld6_input.
- Parameters:
-
p the mld packet, p->payload pointing to the icmpv6 header inp the netif on which this packet was received
Definition at line 81 of file lwip_icmp6.c.
void icmp6_packet_too_big | ( | struct pbuf * | p, |
u32_t | mtu | ||
) |
Send an icmpv6 'packet too big' packet.
- Parameters:
-
p the input packet for which the 'packet too big' should be sent, p->payload pointing to the IPv6 header mtu the maximum mtu that we can accept
Definition at line 230 of file lwip_icmp6.c.
void icmp6_param_problem | ( | struct pbuf * | p, |
enum icmp6_pp_code | c, | ||
u32_t | pointer | ||
) |
Send an icmpv6 'parameter problem' packet.
- Parameters:
-
p the input packet for which the 'param problem' should be sent, p->payload pointing to the IP header c ICMPv6 code for the param problem type pointer the pointer to the byte where the parameter is found
Definition at line 257 of file lwip_icmp6.c.
static void icmp6_send_response | ( | struct pbuf * | p, |
u8_t | code, | ||
u32_t | data, | ||
u8_t | type | ||
) | [static] |
Send an ICMPv6 packet in response to an incoming packet.
- Parameters:
-
p the input packet for which the response should be sent, p->payload pointing to the IPv6 header code Code of the ICMPv6 header data Additional 32-bit parameter in the ICMPv6 header type Type of the ICMPv6 header
Definition at line 272 of file lwip_icmp6.c.
void icmp6_time_exceeded | ( | struct pbuf * | p, |
enum icmp6_te_code | c | ||
) |
Send an icmpv6 'time exceeded' packet.
- Parameters:
-
p the input packet for which the 'unreachable' should be sent, p->payload pointing to the IPv6 header c ICMPv6 code for the time exceeded type
Definition at line 243 of file lwip_icmp6.c.
Generated on Sun Jul 17 2022 08:25:34 by 1.7.2