nd_opt_hdr
optlen = ((sizeof (struct nd_opt_hdr) + hwaddrlen + 7) / 8) * 8;
max_content_len = lo->nd_opt_lla_len * 8 - sizeof (struct nd_opt_hdr);
struct nd_opt_hdr *opt;
opt = (struct nd_opt_hdr *)&ra[1];
while (len >= sizeof (struct nd_opt_hdr)) {
opt = (struct nd_opt_hdr *)((char *)opt + optlen);
verify_opt_len(struct nd_opt_hdr *opt, int optlen,
opt = (struct nd_opt_hdr *)((char *)opt +
if (!verify_opt_len((struct nd_opt_hdr *)&rs[1],
if (!verify_opt_len((struct nd_opt_hdr *)&ra[1],
struct nd_opt_hdr *opt;
opt = (struct nd_opt_hdr *)&rs[1];
while (len >= sizeof (struct nd_opt_hdr)) {
opt = (struct nd_opt_hdr *)((char *)opt + optlen);
static boolean_t verify_opt_len(struct nd_opt_hdr *opt, int optlen,
struct nd_opt_hdr *opt;
opt = (struct nd_opt_hdr *)&ra[1];
while (len >= sizeof (struct nd_opt_hdr)) {
opt = (struct nd_opt_hdr *)((char *)opt + optlen);
opt = (struct nd_opt_hdr *)((char *)opt + optlen);
static void print_opt(struct nd_opt_hdr *opt, int len);
struct nd_opt_hdr *opt;
opt = (struct nd_opt_hdr *)&rs[1];
struct nd_opt_hdr *opt;
opt = (struct nd_opt_hdr *)&ra[1];
print_opt(struct nd_opt_hdr *opt, int len)
while (len >= sizeof (struct nd_opt_hdr)) {
struct nd_opt_hdr *opt;
opt = (struct nd_opt_hdr *)optc;
while (plen >= sizeof (struct nd_opt_hdr)) {
optlen = ((sizeof (struct nd_opt_hdr) +
opt = (struct nd_opt_hdr *)((char *)opt + 8 * opt->nd_opt_len);
opt = (struct nd_opt_hdr *)((char *)opt + 8 * opt->nd_opt_len);
struct nd_opt_hdr *opt;
opt = (struct nd_opt_hdr *)&ra[1];
while (len >= sizeof (struct nd_opt_hdr) &&
((uchar_t *)opt + sizeof (struct nd_opt_hdr)) <= end) {
if (optlen < sizeof (struct nd_opt_hdr) ||
opt = (struct nd_opt_hdr *)((char *)opt + optlen);