From: Roy Marples Date: Tue, 2 Feb 2016 23:59:10 +0000 (+0000) Subject: Move ROUNDUP8 to common.h as it's not IPv6 specific. X-Git-Tag: v6.10.2~78 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd1b8510fcdd8dbeef6a36c4829db69d0c50e057;p=thirdparty%2Fdhcpcd.git Move ROUNDUP8 to common.h as it's not IPv6 specific. --- diff --git a/common.h b/common.h index bb6f5a7e..6431cdee 100644 --- a/common.h +++ b/common.h @@ -51,6 +51,8 @@ #define TOSTRING(a) STRINGIFY(a) #define UNUSED(a) (void)(a) +#define ROUNDUP8(a) (1 + (((a) - 1) | 7)) + #define USEC_PER_SEC 1000000L #define USEC_PER_NSEC 1000L #define NSEC_PER_SEC 1000000000L diff --git a/ipv6.h b/ipv6.h index d96fa54e..77d67763 100644 --- a/ipv6.h +++ b/ipv6.h @@ -45,9 +45,6 @@ #define ALLROUTERS "ff02::2" -#define ROUNDUP8(a) (1 + (((a) - 1) | 7)) -#define ROUNDUP16(a) (1 + (((a) - 1) | 16)) - #define EUI64_GBIT 0x01 #define EUI64_UBIT 0x02 #define EUI64_TO_IFID(in6) do {(in6)->s6_addr[8] ^= EUI64_UBIT; } while (0)