From 6f8817b4cf3bd5f5ddb1fa841c6d402ae90e0c4f Mon Sep 17 00:00:00 2001 From: Gaurav Goyal Date: Fri, 5 Feb 2021 18:21:32 +1300 Subject: [PATCH] nhrpd: Set hop count to 1 in traffic indication If hop count is 0, this causes Cisco routers to reject the traffic indication as invalid. This appears to be a Cisco bug, and has been observed in processing of registration packets in the past. That problem was covered in issue #951 Signed-off-by: Reuben Dowle --- nhrpd/nhrp_peer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nhrpd/nhrp_peer.c b/nhrpd/nhrp_peer.c index 622cb4ebb6..5e9929adeb 100644 --- a/nhrpd/nhrp_peer.c +++ b/nhrpd/nhrp_peer.c @@ -679,7 +679,7 @@ void nhrp_peer_send_indication(struct interface *ifp, uint16_t protocol_type, zb = zbuf_alloc(1500); hdr = nhrp_packet_push(zb, NHRP_PACKET_TRAFFIC_INDICATION, &nifp->nbma, &if_ad->addr, &dst); - hdr->hop_count = 0; + hdr->hop_count = 1; /* Payload is the packet causing indication */ zbuf_copy(zb, pkt, zbuf_used(pkt)); -- 2.39.5