ext = nhrp_ext_push(zb, hdr, NHRP_EXTENSION_NAT_ADDRESS);
cie = nhrp_cie_push(zb, NHRP_CODE_SUCCESS, &nifp->nbma, &if_ad->addr);
cie->prefix_length = 8 * sockunion_get_addrlen(&if_ad->addr);
+ cie->mtu = htons(if_ad->mtu);
nhrp_ext_complete(zb, ext);
nhrp_packet_complete(zb, hdr);
&nifp->nat_nbma, &pp->if_ad->addr);
if (!cie)
goto err;
+ cie->mtu = htons(pp->if_ad->mtu);
nhrp_ext_complete(zb, ext);
break;
default:
goto err;
zbuf_copy(zb, &payload, zbuf_used(&payload));
if (natted) {
- nhrp_cie_push(zb, NHRP_CODE_SUCCESS,
+ cie = nhrp_cie_push(zb, NHRP_CODE_SUCCESS,
&p->peer->vc->remote.nbma,
&p->src_proto);
+ cie->mtu = htons(p->if_ad->mtu);
}
nhrp_ext_complete(zb, ext);
break;
&nifp->nbma, &if_ad->addr);
if (!cie)
goto err;
+ cie->mtu = htons(if_ad->mtu);
cie->holding_time = htons(if_ad->holdtime);
}
break;
cie = nhrp_cie_push(zb, NHRP_CODE_SUCCESS,
&nifp->nat_nbma, &if_ad->addr);
cie->prefix_length = 8 * sockunion_get_addrlen(&if_ad->addr);
+ cie->mtu = htons(if_ad->mtu);
nhrp_ext_complete(zb, ext);
}