Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net Remove ETHER_LOOKUP_MULTI()



details:   https://anonhg.NetBSD.org/src/rev/1e49fa1bcaa2
branches:  trunk
changeset: 323404:1e49fa1bcaa2
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Thu Jun 14 08:00:24 2018 +0000

description:
Remove ETHER_LOOKUP_MULTI()

The macro has been replaced with a function.
ok ozaki-r@

diffstat:

 sys/net/if_ether.h |  8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diffs (22 lines):

diff -r 5391c440b082 -r 1e49fa1bcaa2 sys/net/if_ether.h
--- a/sys/net/if_ether.h        Thu Jun 14 07:54:57 2018 +0000
+++ b/sys/net/if_ether.h        Thu Jun 14 08:00:24 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ether.h,v 1.74 2018/06/14 07:44:31 yamaguchi Exp $  */
+/*     $NetBSD: if_ether.h,v 1.75 2018/06/14 08:00:24 yamaguchi Exp $  */
 
 /*
  * Copyright (c) 1982, 1986, 1993
@@ -268,12 +268,6 @@
 
        return enm;
 }
-#define ETHER_LOOKUP_MULTI(addrlo, addrhi, ec, enm)                    \
-       /* uint8_t addrlo[ETHER_ADDR_LEN]; */                           \
-       /* uint8_t addrhi[ETHER_ADDR_LEN]; */                           \
-       /* struct ethercom *ec; */                                      \
-       /* struct ether_multi *enm; */                                  \
-       (enm) = ether_lookup_multi((addrlo), (addrhi), (ec))
 
 /*
  * step through all of the ether_multi records, one at a time.



Home | Main Index | Thread Index | Old Index