Go to the documentation of this file.
36 #define NetTxAncillary struct _NetTxAncillary
40 #define NetRxAncillary struct _NetRxAncillary
48 #define NET_RAND_GET_BIT(s, n) ((s[(n - 1) / 8] >> ((n - 1) % 8)) & 1)
51 #define NET_RAND_STATE_SET_BIT(s, n, v) s[(n - 1) / 8] = \
52 (s[(n - 1) / 8] & ~(1 << ((n - 1) % 8))) | (v) << ((n - 1) % 8)
65 bool_t linkState,
void *param);
117 #if (UDP_SUPPORT == ENABLED)
125 #if (ETH_SUPPORT == ENABLED)
129 #if (ETH_VLAN_SUPPORT == ENABLED)
133 #if (ETH_VMAN_SUPPORT == ENABLED)
137 #if (ETH_PORT_TAGGING_SUPPORT == ENABLED)
142 #if (ETH_TIMESTAMP_SUPPORT == ENABLED)
156 #if (ETH_SUPPORT == ENABLED)
161 #if (ETH_PORT_TAGGING_SUPPORT == ENABLED)
164 #if (ETH_TIMESTAMP_SUPPORT == ENABLED)
NetTimerCallback callback
error_t netAttachTimerCallback(systime_t period, NetTimerCallback callback, void *param)
Register timer callback.
const NetRxAncillary NET_DEFAULT_RX_ANCILLARY
bool_t netTimerRunning(NetTimer *timer)
Check whether the timer is running.
uint16_t ethType
Ethernet type field.
systime_t netGetRemainingTime(NetTimer *timer)
Get the remaining value of the running timer.
error_t netDetachTimerCallback(NetTimerCallback callback, void *param)
Unregister timer callback.
Pseudo-random number generator state.
bool_t dontRoute
Do not send the packet via a router.
void(* NetLinkChangeCallback)(NetInterface *interface, bool_t linkState, void *param)
Link change callback.
uint8_t ttl
Time-to-live value.
MacAddr srcMacAddr
Source MAC address.
uint8_t ttl
Time-to-live value.
uint32_t ports
Egress port map.
MacAddr srcMacAddr
Source MAC address.
void netStartTimer(NetTimer *timer, systime_t interval)
Start timer.
Additional options passed to the stack (TX path)
uint8_t tos
Type-of-service value.
void netGenerateRandData(uint8_t *data, size_t length)
Get a string of random data.
int8_t vmanDei
Drop eligible indicator.
uint32_t netGenerateRandBit(NetRandState *state)
Generate one random bit.
bool_t noChecksum
Disable UDP checksum generation.
void netTick(void)
Manage TCP/IP timers.
uint8_t tos
Type-of-service value.
uint32_t netGenerateRand(void)
Generate a random 32-bit value.
Additional options passed to the stack (RX path)
bool_t routerAlert
Add an IP Router Alert option.
int8_t vmanPcp
VMAN priority (802.1ad)
MacAddr destMacAddr
Destination MAC address.
error_t netDetachLinkChangeCallback(NetInterface *interface, NetLinkChangeCallback callback, void *param)
Unregister link change callback.
uint8_t port
Egress port identifier.
int8_t vlanPcp
VLAN priority (802.1Q)
MacAddr destMacAddr
Destination MAC address.
uint32_t systime_t
System time.
void netStopTimer(NetTimer *timer)
Stop timer.
uint8_t port
Ingress port identifier.
NetLinkChangeCallback callback
IPv4 and IPv6 common routines.
Link change callback entry.
void netProcessLinkChange(NetInterface *interface)
Process link state change event.
bool_t dontFrag
Do not fragment the IP packet.
void netInitRand(void)
Initialize random number generator.
const NetTxAncillary NET_DEFAULT_TX_ANCILLARY
bool_t netTimerExpired(NetTimer *timer)
Check whether the timer has expired.
error_t netAttachLinkChangeCallback(NetInterface *interface, NetLinkChangeCallback callback, void *param)
Register link change callback.
NetTimestamp timestamp
Captured time stamp.
int8_t vlanDei
Drop eligible indicator.
uint32_t netGenerateRandRange(uint32_t min, uint32_t max)
Generate a random value in the specified range.
void(* NetTimerCallback)(void *param)
Timer callback.
int32_t timestampId
Unique identifier for hardware time stamping.