summaryrefslogtreecommitdiff
path: root/libndp/ndp_private.h
diff options
context:
space:
mode:
authorJiri Pirko <jiri@resnulli.us>2013-04-12 18:15:39 +0200
committerJiri Pirko <jiri@resnulli.us>2013-04-17 17:17:48 +0200
commit70540ef693a54785ff7696ff938943a4b272ec3f (patch)
tree51d3eff040fa531f7c7d53ebb8243f1b1c093a8e /libndp/ndp_private.h
parent266a76d719ed860972563b28645280a14eb53dcf (diff)
downloadlibndp-70540ef693a54785ff7696ff938943a4b272ec3f.tar.gz
add support for DNS Search List (rfc6106)
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Diffstat (limited to 'libndp/ndp_private.h')
-rw-r--r--libndp/ndp_private.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libndp/ndp_private.h b/libndp/ndp_private.h
index 7424e8c..49ecad0 100644
--- a/libndp/ndp_private.h
+++ b/libndp/ndp_private.h
@@ -84,6 +84,7 @@ ndp_log_null(struct ndp *ndp, const char *format, ...) {}
#define __ND_OPT_ROUTE_INFO 24 /* rfc4191 */
#define __ND_OPT_RDNSS 25 /* rfc6106 */
+#define __ND_OPT_DNSSL 31 /* rfc6106 */
struct __nd_opt_route_info { /* route information */
uint8_t nd_opt_ri_type;
@@ -102,4 +103,13 @@ struct __nd_opt_rdnss { /* Recursive DNS Server */
char nd_opt_rdnss_addresses[0];
};
+struct __nd_opt_dnssl { /* DNS Search List */
+ uint8_t nd_opt_dnssl_type;
+ uint8_t nd_opt_dnssl_len;
+ uint16_t nd_opt_dnssl_reserved;
+ uint32_t nd_opt_dnssl_lifetime;
+ char nd_opt_dnssl_domains[0];
+};
+
+
#endif /* _NDP_PRIVATE_H_ */