From 19c64c524614ea7fdbcedcc50d6980f096ccadb9 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Mon, 13 Apr 2015 14:48:52 +0200 Subject: Improve handling of DNS search domains Signed-off-by: Steven Barth --- src/odhcp6c.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/odhcp6c.h') diff --git a/src/odhcp6c.h b/src/odhcp6c.h index 1042136..fff9360 100644 --- a/src/odhcp6c.h +++ b/src/odhcp6c.h @@ -255,6 +255,7 @@ enum odhcp6c_state { STATE_RA_ROUTE, STATE_RA_PREFIX, STATE_RA_DNS, + STATE_RA_SEARCH, STATE_AFTR_NAME, STATE_VENDORCLASS, STATE_USERCLASS, @@ -289,7 +290,8 @@ enum odhcp6c_ia_mode { struct odhcp6c_entry { struct in6_addr router; - uint16_t length; + uint8_t auxlen; + uint8_t length; int16_t priority; struct in6_addr target; uint32_t valid; @@ -297,6 +299,7 @@ struct odhcp6c_entry { uint32_t t1; uint32_t t2; uint32_t iaid; + uint8_t auxtarget[]; }; struct odhcp6c_request_prefix { -- cgit v1.2.1