summaryrefslogtreecommitdiffhomepage
path: root/src/odhcpd.h
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2017-02-10 17:03:49 +0100
committerHans Dedecker <dedeckeh@gmail.com>2017-02-10 17:13:41 +0100
commit68ee0b59040625d2ab5830b1c1cc8eca2da0dcf1 (patch)
tree29422737a037cc2f99b67b86eccd50098484fb4b /src/odhcpd.h
parentfa57225cb62b43adffc37a50c3dbd3fa7d225b0b (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.h1
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;