From e8089de12305880942a4fabcf726dcd8ddda5647 Mon Sep 17 00:00:00 2001 From: Amol Lad Date: Thu, 25 Feb 2021 12:04:11 +0530 Subject: nhrpd: Set prefix length in NAT extension in resolution-reply Signed-off-by: Reuben Dowle --- nhrpd/nhrp_peer.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nhrpd') diff --git a/nhrpd/nhrp_peer.c b/nhrpd/nhrp_peer.c index 74e502b21..a4c93bd2a 100644 --- a/nhrpd/nhrp_peer.c +++ b/nhrpd/nhrp_peer.c @@ -622,6 +622,10 @@ static void nhrp_handle_resolution_req(struct nhrp_packet_parser *pp) &pp->if_ad->addr); if (!cie) goto err; + cie->prefix_length = + 8 * sockunion_get_addrlen( + &pp->if_ad->addr); + cie->mtu = htons(pp->if_ad->mtu); nhrp_ext_complete(zb, ext); } -- cgit v1.2.3