mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Set tag "DHCPv6" for v6 transactions.
This commit is contained in:
@@ -180,7 +180,7 @@ static int dhcp6_no_relay(int msg_type, struct in6_addr *link_address, struct dh
|
||||
char *client_hostname= NULL, *hostname = NULL;
|
||||
char *domain = NULL, *send_domain = NULL;
|
||||
struct dhcp_config *config = NULL;
|
||||
struct dhcp_netid known_id, iface_id;
|
||||
struct dhcp_netid known_id, iface_id, v6_id;
|
||||
int done_dns = 0, hostname_auth = 0, do_encap = 0;
|
||||
unsigned char *outmsgtypep;
|
||||
struct dhcp_opt *opt_cfg;
|
||||
@@ -194,6 +194,11 @@ static int dhcp6_no_relay(int msg_type, struct in6_addr *link_address, struct dh
|
||||
iface_id.next = tags;
|
||||
tags = &iface_id;
|
||||
|
||||
/* set tag "DHCPv6" */
|
||||
v6_id.net = "DHCPv6";
|
||||
v6_id.next = tags;
|
||||
tags = &v6_id;
|
||||
|
||||
/* copy over transaction-id, and save pointer to message type */
|
||||
outmsgtypep = put_opt6(inbuff, 4);
|
||||
start_opts = save_counter(-1);
|
||||
|
||||
Reference in New Issue
Block a user