X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fodhcpd.git;a=blobdiff_plain;f=src%2Frouter.h;fp=src%2Frouter.h;h=8d74967ab90b24d1c3bba2a09f8925566adbd8bc;hp=1e8649cfc114cba59365e6283f5cbec604e7da4b;hb=f5877367522aad0b27d138e4a56d01be3bd33f2d;hpb=a94f6e265975f52bfd85f33d6ce077ceee6a323a diff --git a/src/router.h b/src/router.h index 1e8649c..8d74967 100644 --- a/src/router.h +++ b/src/router.h @@ -20,15 +20,25 @@ struct icmpv6_opt { uint8_t type; uint8_t len; - uint8_t data[6]; }; +struct nd_opt_slla { + uint8_t type; + uint8_t len; + uint8_t addr[6]; +}; + +struct nd_opt_recursive_dns { + uint8_t type; + uint8_t len; + uint8_t pad; + uint8_t pad2; + uint32_t lifetime; +}; #define icmpv6_for_each_option(opt, start, end)\ for (opt = (struct icmpv6_opt*)(start);\ - (void*)(opt + 1) <= (void*)(end) && opt->len > 0 &&\ - (void*)(opt + opt->len) <= (void*)(end); opt += opt->len) - + (void*)(opt + (opt->len << 3)) <= (void*)(end); opt += (opt->len << 3)) #define MaxRtrAdvInterval 600 #define MinRtrAdvInterval (MaxRtrAdvInterval / 3)