<net/if_ether.h>

Change-Id: I7425aae72ab43e3fcec8373f7c589273d36f7fcb
This commit is contained in:
Ben Gras
2013-12-10 19:34:19 +01:00
committed by Lionel Sambuc
parent 1ef83ee923
commit 6cf86998df
6 changed files with 242 additions and 24 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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

View File

@@ -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>