diff options
| author | Roy Marples <roy@marples.name> | 2007-02-12 16:12:50 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2007-02-12 16:12:50 +0000 |
| commit | 092592331f8838823edeab9fb364b553cea608c2 (patch) | |
| tree | c917357b23839f2986a13ecc3081db96a47d17c4 /interface.h | |
| parent | 37aeb387c5dec2138b1f0e3261b19eef12b82ebc (diff) | |
| download | dhcpcd-092592331f8838823edeab9fb364b553cea608c2.tar.xz | |
Add DHCP over FireWire 1394 (RFC 2855) and InfiniBand (RFC 4390) support.
Diffstat (limited to 'interface.h')
| -rw-r--r-- | interface.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/interface.h b/interface.h index 131b42ef..d174dc8d 100644 --- a/interface.h +++ b/interface.h @@ -31,6 +31,14 @@ #include <limits.h> #include <stdbool.h> +#define EUI64_ADDR_LEN 8 +#define INFINIBAND_ADDR_LEN 20 + +/* The BSD's don't define this yet */ +#ifndef ARPHRD_INFINIBAND +# define ARPHRD_INFINIBAND 27 +#endif + typedef struct route_t { struct in_addr destination; @@ -48,8 +56,9 @@ typedef struct address_t typedef struct interface_t { char name[IF_NAMESIZE]; - struct ether_addr ethernet_address; sa_family_t family; + unsigned char hwaddr[20]; + int hwlen; bool arpable; int fd; @@ -82,4 +91,7 @@ int change_route (const char *ifname, struct in_addr destination, struct in_addr netmask, struct in_addr gateway, int metric); int del_route (const char *ifname, struct in_addr destination, struct in_addr netmask, struct in_addr gateway, int metric); + +char *hwaddr_ntoa (const unsigned char *hwaddr, int hwlen); + #endif |
