etherlib updated

This commit is contained in:
Wiesner András 2022-11-13 15:36:57 +01:00
parent 3e1a2174a6
commit a46b3a8564
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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;
}