etherlib updated
This commit is contained in:
parent
3e1a2174a6
commit
a46b3a8564
@ -11,7 +11,7 @@ typedef struct {
|
||||
int (*llError)(int error); ///< Low-level error interrupt
|
||||
} EthIODef;
|
||||
|
||||
typedef struct {
|
||||
typedef struct EthInterface_ {
|
||||
PcktSieve sieve; ///< Packet sieve
|
||||
EthIODef ioDef; ///< Low-level IO definitions
|
||||
EthernetAddress mac; ///< Ethernet address
|
||||
|
@ -47,10 +47,11 @@ int udp_send(const struct ConnBlock_ * connBlock, const uint8_t *data, uint32_t
|
||||
ethHeader->prev = NULL;
|
||||
|
||||
UdpProps * udpProps = HEADER_FETCH_PROPS(UdpProps, udpHeader);
|
||||
IPv4Props * ipProps = HEADER_FETCH_PROPS(IPv4Props, udpHeader);
|
||||
EthernetProps * ethProps = HEADER_FETCH_PROPS(EthernetProps, udpHeader);
|
||||
IPv4Props * ipProps = HEADER_FETCH_PROPS(IPv4Props, ipHeader);
|
||||
EthernetProps * ethProps = HEADER_FETCH_PROPS(EthernetProps, ethHeader);
|
||||
|
||||
udpProps->Length = size;
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user