summaryrefslogtreecommitdiffstats
path: root/nhrpd
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-08-17 15:55:43 +0200
committerTimo Teräs <timo.teras@iki.fi>2017-08-17 15:57:09 +0200
commitef9329ac02539642b04e2c0baf6d401525ce5621 (patch)
tree21427c17ea3101c03eb64d1f81d7f127fd0b9aab /nhrpd
parentMerge pull request #994 from dwalton76/ospfd-show-neighbor (diff)
downloadfrr-ef9329ac02539642b04e2c0baf6d401525ce5621.tar.xz
frr-ef9329ac02539642b04e2c0baf6d401525ce5621.zip
nhrpd: use hop count 1 for registration requests
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>
Diffstat (limited to 'nhrpd')
-rw-r--r--nhrpd/nhrp_nhs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nhrpd/nhrp_nhs.c b/nhrpd/nhrp_nhs.c
index 76c591fd7..0bada3350 100644
--- a/nhrpd/nhrp_nhs.c
+++ b/nhrpd/nhrp_nhs.c
@@ -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);