From 9f7f6d3c6bfd86b40fb8a4abfd7eb35650399300 Mon Sep 17 00:00:00 2001 From: Reuben Dowle Date: Tue, 9 Mar 2021 14:00:45 +1300 Subject: [PATCH] nhrpd: Use ethertype defines instead of hard-coded values Signed-off-by: Reuben Dowle --- nhrpd/nhrp_multicast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100755 => 100644 nhrpd/nhrp_multicast.c diff --git a/nhrpd/nhrp_multicast.c b/nhrpd/nhrp_multicast.c old mode 100755 new mode 100644 index 6fb54cd709..42e3baaeeb --- a/nhrpd/nhrp_multicast.c +++ b/nhrpd/nhrp_multicast.c @@ -48,7 +48,7 @@ static void nhrp_multicast_send(struct nhrp_peer *p, struct zbuf *zb) addrlen = sockunion_get_addrlen(&p->vc->remote.nbma); ret = os_sendmsg(zb->head, zbuf_used(zb), p->ifp->ifindex, sockunion_get_addr(&p->vc->remote.nbma), addrlen, - addrlen == 4 ? 0x0800 : 0x86DD); + addrlen == 4 ? ETH_P_IP : ETH_P_IPV6); debugf(NHRP_DEBUG_COMMON, "Multicast Packet: %s -> %s, ret = %d, size = %zu, addrlen = %zu", -- 2.39.5