mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-11-02 13:30:32 +00:00
Handle DHCP FQDN option with all flags zero and --dhcp-client-update
This commit is contained in:
1 parent
bc54ae392b
commit
2e34ac1403
2 files changed
+9
-2
No files matched your search
+3
-2
@@ -510,7 +510,8 @@ size_t dhcp_reply(struct dhcp_context *context, char *iface_name, int int_index,
|
||||
char *pq = daemon->dhcp_buff;
|
||||
unsigned char *pp, *op = option_ptr(opt, 0);
|
||||
|
||||
fqdn_flags = *op;
|
||||
/* Set an MBZ bit to indicate receipt of FQDN option - cleared later */
|
||||
fqdn_flags = *op | 0x10;
|
||||
len -= 3;
|
||||
op += 3;
|
||||
pp = op;
|
||||
@@ -2261,7 +2262,7 @@ static void do_options(struct dhcp_context *context,
|
||||
|
||||
if ((p = free_space(mess, end, OPTION_CLIENT_FQDN, len)))
|
||||
{
|
||||
*(p++) = fqdn_flags;
|
||||
*(p++) = fqdn_flags & 0x0f; /* MBZ bits to zero */
|
||||
*(p++) = 255;
|
||||
*(p++) = 255;
|
||||
|
||||
|
||||
Reference in new issue
Block a user