<net/if_ether.h>
Change-Id: I7425aae72ab43e3fcec8373f7c589273d36f7fcb
This commit is contained in:
@@ -5,6 +5,8 @@ server/ip/gen/eth_hdr.h
|
||||
#ifndef __SERVER__IP__GEN__ETH_HDR_H__
|
||||
#define __SERVER__IP__GEN__ETH_HDR_H__
|
||||
|
||||
#include <net/if_ether.h>
|
||||
|
||||
typedef struct eth_hdr
|
||||
{
|
||||
ether_addr_t eh_dst;
|
||||
|
||||
@@ -5,6 +5,8 @@ server/gen/ip/eth_io.h
|
||||
#ifndef __SERVER__IP__GEN__ETH_IO_H__
|
||||
#define __SERVER__IP__GEN__ETH_IO_H__
|
||||
|
||||
#include <net/if_ether.h>
|
||||
|
||||
typedef struct nwio_ethopt
|
||||
{
|
||||
u32_t nweo_flags;
|
||||
|
||||
@@ -11,11 +11,6 @@ server/ip/gen/ether.h
|
||||
#define ETH_HDR_SIZE 14
|
||||
#define ETH_CRC_SIZE 4
|
||||
|
||||
typedef struct ether_addr
|
||||
{
|
||||
u8_t ea_addr[6];
|
||||
} ether_addr_t;
|
||||
|
||||
typedef u16_t ether_type_t;
|
||||
|
||||
#define ETH_ARP_PROTO 0x806
|
||||
|
||||
@@ -1,18 +1 @@
|
||||
/*
|
||||
server/ip/gen/if_ether.h
|
||||
*/
|
||||
|
||||
#ifndef __SERVER__IP__GEN__IF_ETHER_H__
|
||||
#define __SERVER__IP__GEN__IF_ETHER_H__
|
||||
|
||||
struct ether_addr;
|
||||
|
||||
#define _PATH_ETHERS "/etc/ethers"
|
||||
|
||||
char *ether_ntoa( struct ether_addr *e );
|
||||
struct ether_addr *ether_aton( const char *s );
|
||||
int ether_ntohost( char *hostname, struct ether_addr *e );
|
||||
int ether_hostton( char *hostname, struct ether_addr *e );
|
||||
int ether_line( char *l, struct ether_addr *e, char *hostname );
|
||||
|
||||
#endif /* __SERVER__IP__GEN__IF_ETHER_H__ */
|
||||
#include <net/if_ether.h>
|
||||
|
||||
Reference in New Issue
Block a user