diff options
| author | Roy Marples <roy@marples.name> | 2007-07-25 21:01:10 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2007-07-25 21:01:10 +0000 |
| commit | 68590c550d1ef7bc3574bda65c57b7ddbb2edcfc (patch) | |
| tree | d193290b6ef516c0d43f514cfa0a54717526d774 /interface.h | |
| parent | 8ace6ad70b33c9a1098fc68771420e6123f71655 (diff) | |
| download | dhcpcd-68590c550d1ef7bc3574bda65c57b7ddbb2edcfc.tar.xz | |
Remove getifaddrs code and instead just use ioctls.
Diffstat (limited to 'interface.h')
| -rw-r--r-- | interface.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/interface.h b/interface.h index dd079881..eae71dd5 100644 --- a/interface.h +++ b/interface.h @@ -33,8 +33,8 @@ #include "config.h" #ifdef ENABLE_DUID -#ifndef DUID_LENGTH_MAX -#define DUID_LENGTH_MAX 128 + 2 +#ifndef DUID_LEN +# define DUID_LEN 128 + 2 #endif #endif @@ -51,6 +51,8 @@ # define ARPHRD_INFINIBAND 27 #endif +#define HWADDR_LEN 20 + typedef struct route_t { struct in_addr destination; @@ -69,7 +71,7 @@ typedef struct interface_t { char name[IF_NAMESIZE]; sa_family_t family; - unsigned char hwaddr[20]; + unsigned char hwaddr[HWADDR_LEN]; int hwlen; bool arpable; unsigned short mtu; @@ -91,7 +93,7 @@ typedef struct interface_t long start_uptime; #ifdef ENABLE_DUID - unsigned char duid[DUID_LENGTH_MAX]; + unsigned char duid[DUID_LEN]; int duid_length; #endif } interface_t; |
