From: Reuben Dowle Date: Tue, 9 Mar 2021 01:00:45 +0000 (+1300) Subject: nhrpd: Use ethertype defines instead of hard-coded values X-Git-Tag: base_8.0~145^2~8 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=9f7f6d3c6bfd86b40fb8a4abfd7eb35650399300;p=matthieu%2Ffrr.git nhrpd: Use ethertype defines instead of hard-coded values Signed-off-by: Reuben Dowle --- 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",