version 1.1.1.1, 2012/02/21 17:26:12
|
version 1.1.1.2, 2013/07/21 23:54:39
|
Line 103 struct interface
|
Line 103 struct interface
|
|
|
/* Hardware address. */ |
/* Hardware address. */ |
#ifdef HAVE_STRUCT_SOCKADDR_DL |
#ifdef HAVE_STRUCT_SOCKADDR_DL |
struct sockaddr_dl sdl; | union { |
| /* note that sdl_storage is never accessed, it only exists to make space. |
| * all actual uses refer to sdl - but use sizeof(sdl_storage)! this fits |
| * best with C aliasing rules. */ |
| struct sockaddr_dl sdl; |
| struct sockaddr_storage sdl_storage; |
| }; |
#else |
#else |
unsigned short hw_type; |
unsigned short hw_type; |
u_char hw_addr[INTERFACE_HWADDR_MAX]; |
u_char hw_addr[INTERFACE_HWADDR_MAX]; |