diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2017-02-10 17:03:49 +0100 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2017-02-10 17:13:41 +0100 |
commit | 68ee0b59040625d2ab5830b1c1cc8eca2da0dcf1 (patch) | |
tree | 29422737a037cc2f99b67b86eccd50098484fb4b /src/odhcpd.h | |
parent | fa57225cb62b43adffc37a50c3dbd3fa7d225b0b (diff) |
treewide: define and use macro IN6_IS_ADDR_ULA
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'src/odhcpd.h')
-rw-r--r-- | src/odhcpd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/odhcpd.h b/src/odhcpd.h index fb78ec0..ceef0bf 100644 --- a/src/odhcpd.h +++ b/src/odhcpd.h @@ -57,6 +57,7 @@ #define ALL_IPV6_ROUTERS {{{0xff, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02}}} +#define IN6_IS_ADDR_ULA(a) (((a)->s6_addr32[0] & htonl(0xfe000000)) == htonl(0xfc000000)) struct interface; struct nl_sock; |