IPC@CHIP® RTOS-PPC – API Documentation

Header image

Main page

Network packet transmission und reception

Detailed Description

The Packet API provides functions for transmission und reception of network packets independent from the TCPIP protocol stack.

Explanations and source code example

Data Structures

struct  PktHandle
 Packet handler structure. More...
struct  EthPacket
 Simplified strcuture of an Ethernet packet. More...
union  EthPacketUnion
 Ethernet packet. More...


typedef int(* PktRecvCbPtr )(void *buffer, int length)
 Type of the packet receiver callback function.


int pktSetAccessType (DevUserIfaceHandle devHandle, PktHandle *pktHandle, BOOL wildcard)
 Install packet handler for specific packet type.
int pktReleaseType (DevUserIfaceHandle devHandle, int handle, BOOL wildcard)
 Release a packet handler.
int pktSendPacket (DevUserIfaceHandle devHandle, const unsigned char *buffer, int len)
 Send a packet.
int pktSetReceiveMode (DevUserIfaceHandle devHandle, int mode)
 Set receiver mode.
int pktMulticast (DevUserIfaceHandle devHandle, const unsigned char *mcastAddress, int set)
 Install/Delete multicast address.
int pktGetPhysAddress (DevUserIfaceHandle devHandle, unsigned char *physAddress)
 Retrieve physical address of a device.
int pktIncomingPacket (DevUserIfaceHandle devHandle, void *pktTypePtr, void *buffer, int len)
 Incoming packet dispatcher for user device drivers.

Top of page | Main page

Copyright © 2020 Beck IPC GmbH
Generated on Tue Jul 14 12:36:25 2020 by Doxygen 1.6.1