Rename ip_eth_hdr to eth_hdr_s

This commit is contained in:
Gregory Nutt
2014-06-25 09:57:52 -06:00
parent f57024406a
commit 621097b6c8
26 changed files with 31 additions and 30 deletions
+3 -2
View File
@@ -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
+1 -1
View File
@@ -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)
* {