* since it is behind a NAT device
*/
debugf(NHRP_DEBUG_COMMON,
- "Processing NAT Extension for %pSU",
+ "shortcut res_resp: Processing NAT Extension for %pSU",
proto);
while (nhrp_cie_pull(&payload, pp->hdr,
cie_nbma, &cie_proto)) {
if (!sockunion_cmp(proto, &cie_proto)) {
debugf(NHRP_DEBUG_COMMON,
- "cie_nbma for proto %pSU is %pSU",
+ "\tcie_nbma for proto %pSU is %pSU",
proto, cie_nbma);
break;
}
* coming directly from NATTED Spoke and there is not
* NAT Extension present
*/
- debugf(NHRP_DEBUG_COMMON, "No NAT Extension for %pSU",
+ debugf(NHRP_DEBUG_COMMON, "shortcut res_rep: No NAT Extension for %pSU",
proto_addr);
if (!sockunion_same(&pp->src_nbma,
&pp->peer->vc->remote.nbma)
&& !nhrp_nhs_match_ip(&pp->peer->vc->remote.nbma,
nifp)) {
- debugf(NHRP_DEBUG_COMMON,
- "Remote Device is NATTED");
cie_nbma_nat = pp->peer->vc->remote.nbma;
debugf(NHRP_DEBUG_COMMON,
- "Device is natted using %pSU as cie_nbma",
+ "shortcut res_rep: NAT detected using %pSU as cie_nbma",
&cie_nbma_nat);
}
}
/* Update cache entry for the protocol to nbma binding */
if (sockunion_family(&nat_nbma) != AF_UNSPEC) {
debugf(NHRP_DEBUG_COMMON,
- "Remote Device is NATed (NAT extension) proto %pSU NBMA %pSU claimed-NBMA %pSU",
+ "Shortcut: NAT detected (NAT extension) proto %pSU NBMA %pSU claimed-NBMA %pSU",
proto, &nat_nbma, &cie_nbma);
nbma = &nat_nbma;
}
else if (!sockunion_same(&cie_nbma, &pp->peer->vc->remote.nbma)
&& !nhrp_nhs_match_ip(&pp->peer->vc->remote.nbma, nifp)) {
debugf(NHRP_DEBUG_COMMON,
- "Remote Device is NATed (no NAT Extension) proto %pSU NBMA %pSU claimed-NBMA %pSU",
+ "Shortcut: NAT detected (no NAT Extension) proto %pSU NBMA %pSU claimed-NBMA %pSU",
proto, &pp->peer->vc->remote.nbma, &cie_nbma);
nbma = &pp->peer->vc->remote.nbma;
nat_nbma = *nbma;