NetBurner 3.5.6
PDF Version
netrx.h
1/*NB_REVISION*/
2
3/*NB_COPYRIGHT*/
4
52#ifndef _NETRX_H
53#define _NETRX_H
54
55#include <predef.h>
56#include <buffers.h>
57
58#ifdef ALLOW_CUSTOM_NET_DO_RX
107typedef int (*netDoRXFunc)(PoolPtr pp, uint16_t ocount, int if_num);
108
120
163{
165 CustomNetDoRX = customFunc;
166 return ret;
167}
168
197{
198 return SetCustomNetDoRX(NULL);
199}
200#endif
201
244int NetDoRX(PoolPtr pp, uint16_t ocount, int if_num);
245
246#endif /* ----- #ifndef _NETRX_H ----- */
247
248
int NetDoRX(PoolPtr pp, uint16_t ocount, int if_num)
Main entry point for Ethernet frames into the TCP/IP stack.
netDoRXFunc ClearCustomNetDoRX()
Remove the currently registered custom Ethernet handler.
Definition netrx.h:196
int(* netDoRXFunc)(PoolPtr pp, uint16_t ocount, int if_num)
Function pointer type for custom network receive handlers.
Definition netrx.h:107
netDoRXFunc CustomNetDoRX
Global pointer to the currently registered custom receive handler.
netDoRXFunc SetCustomNetDoRX(netDoRXFunc customFunc)
Register a custom Ethernet frame handler.
Definition netrx.h:162
Main buffer structure for network and serial communication.
Definition buffers.h:90