Browse Source

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.
Timo Teräs 2 years ago
parent
commit
44b486f525
1 changed files with 1 additions and 1 deletions
  1. 1 1
      nhrpd/nhrp_nhs.c

+ 1 - 1
nhrpd/nhrp_nhs.c

@@ -163,7 +163,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);