diff options
| author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-07-01 17:39:04 +0300 |
|---|---|---|
| committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-07-01 17:41:09 +0300 |
| commit | f4d81e5507e208b65d8d1fb9c2f2812eedcb7405 (patch) | |
| tree | 30a8796ded6a3d2b13fcd049d43a28e496d18763 /lib/prefix.h | |
| parent | 3036004116c8d9e9f9504e1b974236d3061f189f (diff) | |
*: Replace IPV6_MAX_PREFIXLEN to IPV6_MAX_BITLEN
Just drop IPV6_MAX_PREFIXLEN at all, no need keeping both.
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'lib/prefix.h')
| -rw-r--r-- | lib/prefix.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/prefix.h b/lib/prefix.h index c47e701dfd..890dcd7efa 100644 --- a/lib/prefix.h +++ b/lib/prefix.h @@ -398,7 +398,6 @@ static inline void ipv4_addr_copy(struct in_addr *dst, /* Max bit/byte length of IPv6 address. */ #define IPV6_MAX_BYTELEN 16 #define IPV6_MAX_BITLEN 128 -#define IPV6_MAX_PREFIXLEN 128 #define IPV6_ADDR_CMP(D,S) memcmp ((D), (S), IPV6_MAX_BYTELEN) #define IPV6_ADDR_SAME(D,S) (memcmp ((D), (S), IPV6_MAX_BYTELEN) == 0) #define IPV6_ADDR_COPY(D,S) memcpy ((D), (S), IPV6_MAX_BYTELEN) |
