NetBurner 3.5.8
PDF Version
Toggle main menu visibility
netrx.h
1
/*NB_REVISION*/
2
3
/*NB_COPYRIGHT*/
4
19
20
26
51
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
107
typedef
int (*
netDoRXFunc
)(PoolPtr pp, uint16_t ocount,
int
if_num);
108
119
extern
netDoRXFunc
CustomNetDoRX
;
120
162
inline
netDoRXFunc
SetCustomNetDoRX
(
netDoRXFunc
customFunc)
163
{
164
netDoRXFunc
ret =
CustomNetDoRX
;
165
CustomNetDoRX
= customFunc;
166
return
ret;
167
}
168
196
inline
netDoRXFunc
ClearCustomNetDoRX
()
197
{
198
return
SetCustomNetDoRX
(NULL);
199
}
200
#endif
201
244
int
NetDoRX
(PoolPtr pp, uint16_t ocount,
int
if_num);
245
246
#endif
/* ----- #ifndef _NETRX_H ----- */
247
248
250
NetDoRX
int NetDoRX(PoolPtr pp, uint16_t ocount, int if_num)
Main entry point for Ethernet frames into the TCP/IP stack.
ClearCustomNetDoRX
netDoRXFunc ClearCustomNetDoRX()
Remove the currently registered custom Ethernet handler.
Definition
netrx.h:196
netDoRXFunc
int(* netDoRXFunc)(PoolPtr pp, uint16_t ocount, int if_num)
Function pointer type for custom network receive handlers.
Definition
netrx.h:107
CustomNetDoRX
netDoRXFunc CustomNetDoRX
Global pointer to the currently registered custom receive handler.
SetCustomNetDoRX
netDoRXFunc SetCustomNetDoRX(netDoRXFunc customFunc)
Register a custom Ethernet frame handler.
Definition
netrx.h:162
nbrtos
include
netrx.h
Generated by
1.18.0