src/stack/udp6/udp6.c File Reference

The file implements the UDP protocol over IPv6. More...


Functions

int Udp6Output (HANDLE hSock, UINT8 *buf, INT32 size, INT32 *pRetSize)
void Udp6Input (PBM_Pkt *pPkt, IPV6HDR *ptr_ipv6hdr)


Detailed Description

The file implements the UDP protocol over IPv6.

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

Function Documentation

void Udp6Input ( PBM_Pkt *  pPkt,
IPV6HDR *  ptr_ipv6hdr 
)

Description
The function is the receive handler which is invoked when a UDP packet is received over IPv6.

Parameters:
[in] pPkt The actual UDP6 packet received.
[in] ptr_ipv6hdr The IPv6 Header of the received UDP packet.
Return values:
Not Applicable.

int Udp6Output ( HANDLE  hSock,
UINT8 *  buf,
INT32  size,
INT32 *  pRetSize 
)

Description
The function is called to transmit a UDP packet over an IPv6 network.

Parameters:
[in] hSock Socket handle using which the packet is sent out.
[in] buf Data Buffer which is to be sent out.
[in] size Length of the data buffer to be sent out.
[out] pRetSize Actual Length of data sent out.
Return values:
Success - 0
Error - Non Zero


Copyright 2009, Texas Instruments Incorporated