mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-10-17 10:59:36 +00:00
Supply zero preference in advertise and reply messages
This commit is contained in:
1 parent
dd88c17f15
commit
2a82db4caf
2 files changed
+6
-2
No files matched your search
+1
-1
@@ -580,7 +580,7 @@ char *option_string(int prot, unsigned int opt, unsigned char *val, int opt_len,
|
||||
break;
|
||||
}
|
||||
|
||||
if (buf && (!ot[o].name || nodecode))
|
||||
if (opt_len != 0 && buf && (!ot[o].name || nodecode))
|
||||
{
|
||||
int trunc = 0;
|
||||
if (opt_len > 13)
|
||||
|
||||
+5
-1
@@ -763,7 +763,11 @@ static int dhcp6_no_relay(int msg_type, struct in6_addr *link_address, struct dh
|
||||
}
|
||||
|
||||
end_opt6(o);
|
||||
|
||||
|
||||
o = new_opt6(OPTION6_PREFERENCE);
|
||||
put_opt6_char(0);
|
||||
end_opt6(o);
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user