Set tag "DHCPv6" for v6 transactions.

This commit is contained in:
Simon Kelley
2012-09-20 21:24:06 +01:00
parent 42698cb7ab
commit 0d28af84d0

View File

@@ -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 *client_hostname= NULL, *hostname = NULL;
char *domain = NULL, *send_domain = NULL; char *domain = NULL, *send_domain = NULL;
struct dhcp_config *config = 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; int done_dns = 0, hostname_auth = 0, do_encap = 0;
unsigned char *outmsgtypep; unsigned char *outmsgtypep;
struct dhcp_opt *opt_cfg; 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; iface_id.next = tags;
tags = &iface_id; 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 */ /* copy over transaction-id, and save pointer to message type */
outmsgtypep = put_opt6(inbuff, 4); outmsgtypep = put_opt6(inbuff, 4);
start_opts = save_counter(-1); start_opts = save_counter(-1);