NetBurner 3.5.0
PDF Version
 
netrx.h
Go to the documentation of this file.
1/*NB_REVISION*/
2
3/*NB_COPYRIGHT*/
4
30#ifndef _NETRX_H
31#define _NETRX_H
32
33#include <predef.h>
34#include <buffers.h>
35
36#ifdef ALLOW_CUSTOM_NET_DO_RX
52typedef int (*netDoRXFunc)(PoolPtr, uint16_t, int);
53
54extern netDoRXFunc CustomNetDoRX;
55
64{
65 netDoRXFunc ret = CustomNetDoRX;
66 CustomNetDoRX = customFunc;
67 return ret;
68}
69
76{
77 return SetCustomNetDoRX(NULL);
78}
79#endif
80
90int NetDoRX(PoolPtr pp, uint16_t ocount, int if_num);
91
92#endif /* ----- #ifndef _NETRX_H ----- */
93
94
NetBurner Buffers API.
int NetDoRX(PoolPtr pp, uint16_t ocount, int if_num)
Entry function for Ethernet frames into the system TCP/IP stack.
int(* netDoRXFunc)(PoolPtr, uint16_t, int)
Typedef interface for all network rx processing functions.
Definition netrx.h:52
netDoRXFunc ClearCustomNetDoRX()
Clears the custom ethernet handler, resetting the handler to NULL.
Definition netrx.h:75
netDoRXFunc SetCustomNetDoRX(netDoRXFunc customFunc)
Registers a new custom ethernet handler to run prior to the primary handler.
Definition netrx.h:63