]> git.puffer.fish Git - matthieu/frr.git/commitdiff
nhrpd: Use ethertype defines instead of hard-coded values
authorReuben Dowle <reuben.dowle@4rf.com>
Tue, 9 Mar 2021 01:00:45 +0000 (14:00 +1300)
committerReuben Dowle <reuben.dowle@4rf.com>
Mon, 5 Apr 2021 21:23:42 +0000 (09:23 +1200)
Signed-off-by: Reuben Dowle <reuben.dowle@4rf.com>
nhrpd/nhrp_multicast.c [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 6fb54cd..42e3baa
@@ -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",