From 0ab8d7cfae74191d2831457b55a5c48a4588775d Mon Sep 17 00:00:00 2001 From: Chris Cappuccio Date: Mon, 10 Jun 2002 22:48:10 +0000 Subject: Split common code which converts a multicast address to an ethernet address from ether_addmulti() and ether_delmulti() into ether_multiaddr(), a'la netbsd. Also clean up some magic numbers. itojun likes it --- sys/netinet/if_ether.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/netinet/if_ether.h') diff --git a/sys/netinet/if_ether.h b/sys/netinet/if_ether.h index 6f6be629b31..db5db0ee079 100644 --- a/sys/netinet/if_ether.h +++ b/sys/netinet/if_ether.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ether.h,v 1.22 2002/06/09 16:26:10 itojun Exp $ */ +/* $OpenBSD: if_ether.h,v 1.23 2002/06/10 22:48:09 chris Exp $ */ /* $NetBSD: if_ether.h,v 1.22 1996/05/11 13:00:00 mycroft Exp $ */ /* @@ -205,6 +205,7 @@ void arp_rtrequest(int, struct rtentry *, struct rt_addrinfo *); int ether_addmulti(struct ifreq *, struct arpcom *); int ether_delmulti(struct ifreq *, struct arpcom *); +int ether_multiaddr(struct sockaddr *, u_int8_t[], u_int8_t[]); #endif /* _KERNEL */ /* -- cgit v1.2.3