summaryrefslogtreecommitdiffstats
path: root/lib/zclient.h
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2015-11-02 16:50:07 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2015-12-08 14:12:10 -0500
commitb11f3b54c842117e22e2f5cf1561ea34eee8dfcc (patch)
treec31f9893baa2a05db24ea72d1370fb6b11f59c20 /lib/zclient.h
parent7eb6136b2732d4782360f9f376336c6d4f667ff0 (diff)
downloadquagga-b11f3b54c842117e22e2f5cf1561ea34eee8dfcc.tar.bz2
quagga-b11f3b54c842117e22e2f5cf1561ea34eee8dfcc.tar.xz
zebra: implement per-route mtu handling
This commits allow overriding MTU using netlink attributes on per-route basis. This is useful for routing protocols that can advertice prefix specific MTUs between routers (e.g. NHRP). Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Diffstat (limited to 'lib/zclient.h')
-rw-r--r--lib/zclient.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/zclient.h b/lib/zclient.h
index aa935c12..a14f5993 100644
--- a/lib/zclient.h
+++ b/lib/zclient.h
@@ -96,6 +96,7 @@ struct zclient
#define ZAPI_MESSAGE_IFINDEX 0x02
#define ZAPI_MESSAGE_DISTANCE 0x04
#define ZAPI_MESSAGE_METRIC 0x08
+#define ZAPI_MESSAGE_MTU 0x10
/* Zserv protocol message header */
struct zserv_header
@@ -131,6 +132,8 @@ struct zapi_ipv4
u_int32_t metric;
+ u_int32_t mtu;
+
vrf_id_t vrf_id;
};
@@ -204,6 +207,8 @@ struct zapi_ipv6
u_int32_t metric;
+ u_int32_t mtu;
+
vrf_id_t vrf_id;
};