From: Amol Lad Date: Thu, 25 Feb 2021 06:34:11 +0000 (+0530) Subject: nhrpd: Set prefix length in NAT extension in resolution-reply X-Git-Tag: base_8.0~183^2~7 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=e8089de12305880942a4fabcf726dcd8ddda5647;p=matthieu%2Ffrr.git nhrpd: Set prefix length in NAT extension in resolution-reply Signed-off-by: Reuben Dowle --- diff --git a/nhrpd/nhrp_peer.c b/nhrpd/nhrp_peer.c index 74e502b214..a4c93bd2ae 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); }