projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
netifd: Add interface config support to enable/disable IPv6 in the kernel per device
[project/netifd.git]
/
device.h
diff --git
a/device.h
b/device.h
index
e71027e
..
6fceaa1
100644
(file)
--- a/
device.h
+++ b/
device.h
@@
-31,6
+31,7
@@
enum {
DEV_ATTR_MACADDR,
DEV_ATTR_TXQUEUELEN,
DEV_ATTR_ENABLED,
DEV_ATTR_MACADDR,
DEV_ATTR_TXQUEUELEN,
DEV_ATTR_ENABLED,
+ DEV_ATTR_IPV6,
__DEV_ATTR_MAX,
};
__DEV_ATTR_MAX,
};
@@
-60,6
+61,7
@@
enum {
DEV_OPT_MTU = (1 << 0),
DEV_OPT_MACADDR = (1 << 1),
DEV_OPT_TXQUEUELEN = (1 << 2),
DEV_OPT_MTU = (1 << 0),
DEV_OPT_MACADDR = (1 << 1),
DEV_OPT_TXQUEUELEN = (1 << 2),
+ DEV_OPT_IPV6 = (1 << 3),
};
/* events broadcasted to all users of a device */
};
/* events broadcasted to all users of a device */
@@
-105,6
+107,7
@@
struct device_settings {
unsigned int mtu;
unsigned int txqueuelen;
uint8_t macaddr[6];
unsigned int mtu;
unsigned int txqueuelen;
uint8_t macaddr[6];
+ bool ipv6;
};
/*
};
/*