version 1.21, 2012/07/22 20:39:45
|
version 1.21.2.1, 2012/07/25 15:11:27
|
Line 308 typedef struct {
|
Line 308 typedef struct {
|
AIT_LEN(__val) = 0; \ |
AIT_LEN(__val) = 0; \ |
AIT_KEY(__val) = 0; \ |
AIT_KEY(__val) = 0; \ |
} while (0) |
} while (0) |
|
#define AIT_ZERO_VAL(_vl) do { ait_val_t *__val = (_vl); assert(__val); \ |
|
switch (AIT_TYPE(__val)) { \ |
|
case buffer: \ |
|
case string: \ |
|
memset(__val->val.buffer, 0, \ |
|
AIT_LEN(__val)); \ |
|
break; \ |
|
case data: \ |
|
memset(__val->val_data, 0, \ |
|
AIT_LEN(__val)); \ |
|
break; \ |
|
default: \ |
|
__val->val.net = 0LL; \ |
|
break; \ |
|
} \ |
|
AIT_KEY(__val) = 0; \ |
|
} while (0) |
|
|
struct io_ether_addr { |
struct io_ether_addr { |
u_int8_t ether_addr_octet[6]; |
u_int8_t ether_addr_octet[6]; |