diff --git a/src/rfc3315.c b/src/rfc3315.c index f3929f2..9297d52 100644 --- a/src/rfc3315.c +++ b/src/rfc3315.c @@ -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);