summaryrefslogtreecommitdiffstats
path: root/eigrpd/eigrp_reply.c
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_reply.c
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_reply.c')
-rw-r--r--eigrpd/eigrp_reply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eigrpd/eigrp_reply.c b/eigrpd/eigrp_reply.c
index de4a23b58..b7490cd49 100644
--- a/eigrpd/eigrp_reply.c
+++ b/eigrpd/eigrp_reply.c
@@ -85,7 +85,7 @@ void eigrp_send_reply(struct eigrp_neighbor *nbr, struct eigrp_prefix_entry *pe)
* End of filtering
*/
- ep = eigrp_packet_new(ei->ifp->mtu - sizeof(struct ip), nbr);
+ ep = eigrp_packet_new(EIGRP_PACKET_MTU(ei->ifp->mtu), nbr);
/* Prepare EIGRP INIT UPDATE header */
eigrp_packet_header_init(EIGRP_OPC_REPLY, eigrp, ep->s, 0,