summaryrefslogtreecommitdiffstats
path: root/eigrpd/eigrp_macros.h
diff options
context:
space:
mode:
authorPiotr Jurkiewicz <piotr.jerzy.jurkiewicz@gmail.com>2018-05-03 22:07:54 +0200
committerPiotr Jurkiewicz <piotr.jerzy.jurkiewicz@gmail.com>2018-05-04 02:58:31 +0200
commit9378632f04b72c73e19a22618712ef6eeec6abf7 (patch)
treef92aa88e814980b4e9fa32c1fdc833373718939d /eigrpd/eigrp_macros.h
parenteigrpd: Correctly calculate EIGRP packet MTU (diff)
downloadfrr-9378632f04b72c73e19a22618712ef6eeec6abf7.tar.xz
frr-9378632f04b72c73e19a22618712ef6eeec6abf7.zip
eigrpd: Use EIGRP_PACKET_MTU(mtu) macro
Signed-off-by: Piotr Jurkiewicz <piotr.jerzy.jurkiewicz@gmail.com>
Diffstat (limited to 'eigrpd/eigrp_macros.h')
-rw-r--r--eigrpd/eigrp_macros.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/eigrpd/eigrp_macros.h b/eigrpd/eigrp_macros.h
index eea7a2642..b30e19a86 100644
--- a/eigrpd/eigrp_macros.h
+++ b/eigrpd/eigrp_macros.h
@@ -35,6 +35,8 @@
//--------------------------------------------------------------------------
+#define EIGRP_PACKET_MTU(mtu) ((mtu) - (sizeof(struct ip)))
+
/* Topology Macros */