]> git.puffer.fish Git - matthieu/frr.git/commitdiff
nhrpd: use hop count 1 for registration requests
authorTimo Teräs <timo.teras@iki.fi>
Thu, 17 Aug 2017 13:55:43 +0000 (16:55 +0300)
committerTimo Teräs <timo.teras@iki.fi>
Thu, 17 Aug 2017 13:57:09 +0000 (16:57 +0300)
Cisco has a bug that it rejects packets with zero hop count.
Use one to avoid potential forwarding of registration requests.

Fixes #951

Signed-off-by: Timo Teräs <timo.teras@iki.fi>
nhrpd/nhrp_nhs.c

index 76c591fd7997a0c11152acbbfe5f4b5f69ad00c8..0bada33502b073b4d0e66cc21c9428feb26cf608 100644 (file)
@@ -171,7 +171,7 @@ static int nhrp_reg_send_req(struct thread *t)
 
        zb = zbuf_alloc(1400);
        hdr = nhrp_packet_push(zb, NHRP_PACKET_REGISTRATION_REQUEST, &nifp->nbma, &if_ad->addr, dst_proto);
-       hdr->hop_count = 0;
+       hdr->hop_count = 1;
        if (!(if_ad->flags & NHRP_IFF_REG_NO_UNIQUE))
                hdr->flags |= htons(NHRP_FLAG_REGISTRATION_UNIQUE);