src/stack/icmpv6/icmpv6out.c File Reference

The file handles the transmission of ICMPv6 Packets. More...


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)


Detailed Description

The file handles the transmission of ICMPv6 Packets.

NOTE: (C) Copyright 2008, Texas Instruments, Inc.

Function Documentation

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.

Parameters:
[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.
Return values:
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.

Parameters:
[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.
Return values:
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.

Parameters:
[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.
Return values:
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.

Parameters:
[in] pPkt The packet that needs to be checked for ICMPv6 error.
Return values:
1 - Packet is an ICMPv6 error message.
0 - Packet is not an ICMPv6 error packet.


Copyright 2009, Texas Instruments Incorporated