E:/fip/workspaces/fip/source/framework/fip_packet.c File Reference

Active Packet Interface. More...


Functions

fip_return_t fip_packet_activeNew (fip_bufnum_t bufnum, uint16_t length, fip_ifnum_t ifnum)
 Allocate a new packet & make active.
fip_return_t fip_packet_ptrBufCpyFromActive (fip_packet_t *packetPtr, unsigned int destOffset, uint8_t *srcData, unsigned int dataLen)
 Copy srcLen bytes from srcData to the FIP_IPHDRBUF of fragLocation offset from the start, extending the buffer if required to fit the data in.
fip_return_t fip_packet_activeUnqueuePacket (void)
 If current packet is PS_UNUSED, swap it with something else.
void fip_packet_activeQueuePacket (void)
 Push the active packet into the queue if supported, if not supported this just frees the packet.
void fip_packet_activeDrop (void)
 Deallocate the active packet.
fip_return_t fip_packet_activeResponsePacket (fip_bufnum_t bufnum, unsigned int length)
 Deallocate the current buffer, and allocate a new buffer.
void fip_packet_activeBufSplit (fip_bufnum_t original, fip_bufnum_t new)
 Takes the specified origin buffer, and splits off all the free space (between allocSize and Size) and moves it to the new buffer, before using this function be SURE allocSize is set correctly in the 'original' buffer, and you don't have free space at the end.
unsigned int fip_packet_getBufSizes (fip_bufnum_t first, fip_bufnum_t last)
 Returns the total size of all buffers specified, starting at 'first' up to but NOT INCLUDING 'last'.
void fip_packet_copyToIP6Hdr_destAddr (const uint8_t *const address)
 Copies 16 bytes from the pointer to the IPv6 Destination Address and resets all associated flags containing attributes about the address.
void fip_packet_setToIP6Hdr_srcAddrUnspecified (void)
 Sets the IPv6 Source Address as the Unspecified Address.
void fip_packet_setToIP6Hdr_destAddrAllNodes (void)
 Sets the IPv6 Destination Address as the All Nodes Address.
void fip_packet_setToIP6Hdr_destAddrAllRouters (void)
 Sets the IPv6 Destination Address as the All Routers Address.
void fip_packet_copyToIP6Hdr_srcAddr (const uint8_t *const address)
 Copies 16 bytes from the pointer to the IPv6 Source Address and resets all associated flags containing attributes about the address .

Variables

uint8_t fip_activePacket_buffer [FIP_STATIC_BUF_SIZE]
 NB: There are two methods allowed to access the global fip_activePacket structure and directory.


Detailed Description

Active Packet Interface.

Author:
Colin O'Flynn

Generated on Wed Dec 8 13:00:19 2010 for FIP by  doxygen 1.5.7.1