You need to sign in or sign up before continuing.
Commit 2a82db4c authored by Simon Kelley's avatar Simon Kelley

Supply zero preference in advertise and reply messages

parent dd88c17f
...@@ -580,7 +580,7 @@ char *option_string(int prot, unsigned int opt, unsigned char *val, int opt_len, ...@@ -580,7 +580,7 @@ char *option_string(int prot, unsigned int opt, unsigned char *val, int opt_len,
break; break;
} }
if (buf && (!ot[o].name || nodecode)) if (opt_len != 0 && buf && (!ot[o].name || nodecode))
{ {
int trunc = 0; int trunc = 0;
if (opt_len > 13) if (opt_len > 13)
......
...@@ -764,6 +764,10 @@ static int dhcp6_no_relay(int msg_type, struct in6_addr *link_address, struct dh ...@@ -764,6 +764,10 @@ static int dhcp6_no_relay(int msg_type, struct in6_addr *link_address, struct dh
end_opt6(o); end_opt6(o);
o = new_opt6(OPTION6_PREFERENCE);
put_opt6_char(0);
end_opt6(o);
break; break;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment