Functions | |
int | IsICMPv6ErrorPkt (PBM_Pkt *pPkt) |
int | ICMPv6SendDstUnreachable (UINT8 Code, PBM_Pkt *pOrgPkt) |
int | ICMPv6SendTimeExceeded (UINT8 Code, PBM_Pkt *pOrgPkt) |
int | ICMPv6SendParameterProblem (UINT8 Code, PBM_Pkt *pOrgPkt, UINT32 Pointer) |
int ICMPv6SendDstUnreachable | ( | UINT8 | Code, | |
PBM_Pkt * | pOrgPkt | |||
) |
Description
The function sends a destination unreachable message. The function accepts Code as a parameter and can be used to send different messages.
[in] | Code | Code to be added to the ICMPv6 Destination Unreachable message Valid Values range from 0 - 4 as specified in RFC 2463. |
[in] | pOrgPkt | The offending packet which causes the packet to be sent out. |
0 | - Success | |
<0 | - Error |
int ICMPv6SendParameterProblem | ( | UINT8 | Code, | |
PBM_Pkt * | pOrgPkt, | |||
UINT32 | Pointer | |||
) |
Description
The function sends the Parameter Problem message. The function accepts Code as a parameter and can be used to send different messages.
[in] | Code | Code to be added to the ICMPv6 Time Exceeded message Valid Values range from 0 - 2 as specified in RFC 2463. |
[in] | pOrgPkt | The offending packet which causes the packet to be sent out. |
[in] | Pointer | Identifies the Code Offset within the packet where the error occurred. |
0 | - Success | |
<0 | - Error |
int ICMPv6SendTimeExceeded | ( | UINT8 | Code, | |
PBM_Pkt * | pOrgPkt | |||
) |
Description
The function sends a Time Exceeded message. The function accepts Code as a parameter and can be used to send different messages.
[in] | Code | Code to be added to the ICMPv6 Time Exceeded message Valid Values range from 0 - 1 as specified in RFC 2463. |
[in] | pOrgPkt | The offending packet which causes the packet to be sent out. |
0 | - Success | |
<0 | - Error |
int IsICMPv6ErrorPkt | ( | PBM_Pkt * | pPkt | ) |
Description
This function parses through all the IPv6 extension headers to check if the packet is an ICMPv6 error message.
[in] | pPkt | The packet that needs to be checked for ICMPv6 error. |
1 | - Packet is an ICMPv6 error message. | |
0 | - Packet is not an ICMPv6 error packet. |