]> git.puffer.fish Git - mirror/frr.git/commitdiff
nhrpd: Set hop count to 1 in traffic indication 8234/head
authorGaurav Goyal <gaurav.goyal@4rf.com>
Fri, 5 Feb 2021 05:21:32 +0000 (18:21 +1300)
committerReuben Dowle <reuben.dowle@4rf.com>
Sun, 14 Mar 2021 21:04:43 +0000 (10:04 +1300)
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 <reuben.dowle@4rf.com>
nhrpd/nhrp_peer.c

index 622cb4ebb6c082a3b6b23f5b3a11036a4cd34fc4..5e9929adeb78ca154f12146f5e1d5b9dec89e502 100644 (file)
@@ -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));