Use RTL descriptor definition

This commit is contained in:
logicog
2026-04-24 08:42:00 +02:00
parent baa4e5e142
commit e280ccd2f9
3 changed files with 43 additions and 44 deletions
+4 -3
View File
@@ -68,7 +68,8 @@
struct arp_hdr_i {
struct uip_eth_hdr ethhdr;
uint8_t rtl_tag[RTL_TAG_SIZE + VLAN_TAG_SIZE];
struct rtl_tag rtl_tag;
struct vlan_tag vlan_tag;
u16_t hwtype;
u16_t protocol;
u8_t hwlen;
@@ -131,8 +132,8 @@ static __xdata u8_t arptime;
static __xdata u8_t tmpage;
#define BUF ((__xdata struct arp_hdr_i *)&uip_buf[0])
#define BUF_O ((__xdata struct arp_hdr_o *)&uip_buf[RTL_TAG_SIZE + VLAN_TAG_SIZE])
#define IPBUF ((__xdata struct ethip_hdr *)&uip_buf[RTL_TAG_SIZE + VLAN_TAG_SIZE])
#define BUF_O ((__xdata struct arp_hdr_o *)&uip_buf[RTL_FRAME_DESC_SIZE])
#define IPBUF ((__xdata struct ethip_hdr *)&uip_buf[RTL_FRAME_DESC_SIZE])
/*-----------------------------------------------------------------------------------*/
/**
* Initialize the ARP module.
+1 -1
View File
@@ -447,7 +447,7 @@ void uip_log(char *msg);
#ifdef UIP_CONF_LLH_LEN
#define UIP_LLH_LEN UIP_CONF_LLH_LEN
#else /* UIP_CONF_LLH_LEN */
#define UIP_LLH_LEN ETHER_HEADER_SIZE + RTL_TAG_SIZE + VLAN_TAG_SIZE
#define UIP_LLH_LEN ETHER_HEADER_SIZE + RTL_FRAME_DESC_SIZE
#endif /* UIP_CONF_LLH_LEN */
/** @} */