DEV_ATTR_MACADDR,
DEV_ATTR_TXQUEUELEN,
DEV_ATTR_ENABLED,
+ DEV_ATTR_IPV6,
+ DEV_ATTR_PROMISC,
__DEV_ATTR_MAX,
};
DEV_OPT_MTU = (1 << 0),
DEV_OPT_MACADDR = (1 << 1),
DEV_OPT_TXQUEUELEN = (1 << 2),
+ DEV_OPT_IPV6 = (1 << 3),
+ DEV_OPT_PROMISC = (1 << 4),
};
/* events broadcasted to all users of a device */
unsigned int mtu;
unsigned int txqueuelen;
uint8_t macaddr[6];
+ bool ipv6;
+ bool promisc;
};
/*
bool current_config;
bool default_config;
+ bool wireless;
/* set interface up or down */
device_state_cb set_state;
extern const struct device_type bridge_device_type;
extern const struct device_type tunnel_device_type;
extern const struct device_type macvlan_device_type;
+extern const struct device_type vlandev_device_type;
void device_lock(void);
void device_unlock(void);