mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Rename ip_eth_hdr to eth_hdr_s
This commit is contained in:
+3
-3
@@ -80,7 +80,7 @@
|
||||
|
||||
#define RASIZE 4 /* Size of ROUTER ALERT */
|
||||
|
||||
#define ETHBUF ((struct uip_eth_hdr *)&dev->d_buf[0])
|
||||
#define ETHBUF ((struct eth_hdr_s *)&dev->d_buf[0])
|
||||
#define ARPBUF ((struct arp_hdr_s *)&dev->d_buf[UIP_LLH_LEN])
|
||||
#define IPBUF ((struct arp_iphdr_s *)&dev->d_buf[UIP_LLH_LEN])
|
||||
|
||||
@@ -253,7 +253,7 @@ void arp_arpin(struct uip_driver_s *dev)
|
||||
|
||||
if (uip_ipaddr_cmp(ipaddr, dev->d_ipaddr))
|
||||
{
|
||||
struct uip_eth_hdr *peth = ETHBUF;
|
||||
struct eth_hdr_s *peth = ETHBUF;
|
||||
|
||||
/* First, we register the one who made the request in our ARP
|
||||
* table, since it is likely that we will do more communication
|
||||
@@ -322,7 +322,7 @@ void arp_out(struct uip_driver_s *dev)
|
||||
{
|
||||
const struct arp_entry *tabptr = NULL;
|
||||
struct arp_hdr_s *parp = ARPBUF;
|
||||
struct uip_eth_hdr *peth = ETHBUF;
|
||||
struct eth_hdr_s *peth = ETHBUF;
|
||||
struct arp_iphdr_s *pip = IPBUF;
|
||||
in_addr_t ipaddr;
|
||||
in_addr_t destipaddr;
|
||||
|
||||
+1
-1
@@ -207,7 +207,7 @@ void uip_pktfree(struct uip_pkt_conn *conn)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
struct uip_pkt_conn *uip_pktactive(struct uip_eth_hdr *buf)
|
||||
struct uip_pkt_conn *uip_pktactive(struct eth_hdr_s *buf)
|
||||
{
|
||||
#define uip_ethaddr_cmp(addr1, addr2) \
|
||||
((addr1[0] == addr2[0]) && (addr1[1] == addr2[1]) && \
|
||||
|
||||
+2
-2
@@ -58,7 +58,7 @@
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
#define PKTBUF ((struct uip_eth_hdr *)&dev->d_buf)
|
||||
#define PKTBUF ((struct eth_hdr_s *)&dev->d_buf)
|
||||
|
||||
/****************************************************************************
|
||||
* Public Variables
|
||||
@@ -98,7 +98,7 @@
|
||||
int uip_pktinput(struct uip_driver_s *dev)
|
||||
{
|
||||
struct uip_pkt_conn *conn;
|
||||
struct uip_eth_hdr *pbuf = (struct uip_eth_hdr *)dev->d_buf;
|
||||
struct eth_hdr_s *pbuf = (struct eth_hdr_s *)dev->d_buf;
|
||||
int ret = OK;
|
||||
|
||||
conn = uip_pktactive(pbuf);
|
||||
|
||||
+1
-1
@@ -110,7 +110,7 @@ uint16_t uip_callbackexecute(FAR struct uip_driver_s *dev, void *pvconn,
|
||||
void uip_pktinit(void);
|
||||
struct uip_pkt_conn *uip_pktalloc(void);
|
||||
void uip_pktfree(struct uip_pkt_conn *conn);
|
||||
struct uip_pkt_conn *uip_pktactive(struct uip_eth_hdr *buf);
|
||||
struct uip_pkt_conn *uip_pktactive(struct eth_hdr_s *buf);
|
||||
struct uip_pkt_conn *uip_nextpktconn(struct uip_pkt_conn *conn);
|
||||
|
||||
/* Defined in uip_pktcallback.c *********************************************/
|
||||
|
||||
Reference in New Issue
Block a user