summaryrefslogtreecommitdiffhomepage
path: root/device.h
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2015-06-24 13:02:37 +0200
committerSteven Barth <steven@midlink.org>2015-06-24 13:02:37 +0200
commit5b29ffda0099c3bcb8d17a728e1e89dc21a2e68d (patch)
treeddfdd742a3623aae056f7d69f9d59b5c94376965 /device.h
parent5cf30b59baa03db2448570c78e7e92873555d2ec (diff)
Add mtu6 option to override IPv6 MTU
Signed-off-by: Steven Barth <steven@midlink.org>
Diffstat (limited to 'device.h')
-rw-r--r--device.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/device.h b/device.h
index 3001f10..4d84d80 100644
--- a/device.h
+++ b/device.h
@@ -28,6 +28,7 @@ typedef int (*device_state_cb)(struct device *, bool up);
enum {
DEV_ATTR_TYPE,
DEV_ATTR_MTU,
+ DEV_ATTR_MTU6,
DEV_ATTR_MACADDR,
DEV_ATTR_TXQUEUELEN,
DEV_ATTR_ENABLED,
@@ -80,6 +81,7 @@ enum {
DEV_OPT_NEIGHREACHABLETIME = (1 << 9),
DEV_OPT_RPS = (1 << 10),
DEV_OPT_XPS = (1 << 11),
+ DEV_OPT_MTU6 = (1 << 12),
};
/* events broadcasted to all users of a device */
@@ -123,6 +125,7 @@ struct device_user {
struct device_settings {
unsigned int flags;
unsigned int mtu;
+ unsigned int mtu6;
unsigned int txqueuelen;
uint8_t macaddr[6];
bool ipv6;