mirror of
https://github.com/apache/nuttx.git
synced 2026-09-20 12:58:29 +08:00
Rename ip_eth_hdr to eth_hdr_s
This commit is contained in:
@@ -77,7 +77,7 @@
|
||||
* some compilers refuse to pack 6 byte structures.
|
||||
*/
|
||||
|
||||
struct uip_eth_hdr
|
||||
struct eth_hdr_s
|
||||
{
|
||||
uint8_t dest[6]; /* Ethernet destination address (6 bytes) */
|
||||
uint8_t src[6]; /* Ethernet source address (6 bytes) */
|
||||
@@ -99,7 +99,8 @@ struct arp_entry
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define EXTERN extern "C"
|
||||
extern "C" {
|
||||
extern "C"
|
||||
{
|
||||
#else
|
||||
#define EXTERN extern
|
||||
#endif
|
||||
|
||||
@@ -236,7 +236,7 @@ struct uip_driver_s
|
||||
* Ethernet, you will need to call the uIP ARP code before calling
|
||||
* this function:
|
||||
*
|
||||
* #define BUF ((struct uip_eth_hdr *)&dev->d_buf[0])
|
||||
* #define BUF ((struct eth_hdr_s *)&dev->d_buf[0])
|
||||
* dev->d_len = ethernet_devicedrver_poll();
|
||||
* if (dev->d_len > 0)
|
||||
* {
|
||||
|
||||
Reference in New Issue
Block a user