u_char -> u_int8_t in the IPv6 goo.

This commit is contained in:
thorpej 1999-08-10 18:16:07 +00:00
parent 1e7a66ebab
commit ce3252697d

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ether.h,v 1.11 1999/08/05 02:07:38 thorpej Exp $ */
/* $NetBSD: if_ether.h,v 1.12 1999/08/10 18:16:07 thorpej Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@ -103,14 +103,14 @@ struct ether_header {
*/
#define ETHER_MAP_IPV6_MULTICAST(ip6addr, enaddr) \
/* struct in6_addr *ip6addr; */ \
/* u_char enaddr[ETHER_ADDR_LEN]; */ \
/* u_int8_t enaddr[ETHER_ADDR_LEN]; */ \
{ \
(enaddr)[0] = 0x33; \
(enaddr)[1] = 0x33; \
(enaddr)[2] = ((u_char *)ip6addr)[12]; \
(enaddr)[3] = ((u_char *)ip6addr)[13]; \
(enaddr)[4] = ((u_char *)ip6addr)[14]; \
(enaddr)[5] = ((u_char *)ip6addr)[15]; \
(enaddr)[2] = ((u_int8_t *)ip6addr)[12]; \
(enaddr)[3] = ((u_int8_t *)ip6addr)[13]; \
(enaddr)[4] = ((u_int8_t *)ip6addr)[14]; \
(enaddr)[5] = ((u_int8_t *)ip6addr)[15]; \
}
#endif