Print this page
7388 Support DHCP Client FQDN. Allow IAID/DUID for all v4.

@@ -18,10 +18,11 @@
  *
  * CDDL HEADER END
  */
 /*
  * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2016, Chris Fraire <cfraire@me.com>.
  */
 
 #ifndef UTIL_H
 #define UTIL_H
 

@@ -31,10 +32,11 @@
 #include <netinet/dhcp6.h>
 #include <libinetutil.h>
 #include <dhcpagent_ipc.h>
 
 #include "common.h"
+#include "packet.h"
 
 /*
  * general utility functions which have no better home.  see util.c
  * for documentation on how to use the exported functions.
  */

@@ -73,10 +75,12 @@
 boolean_t       bind_sock_v6(int, in_port_t, const in6_addr_t *);
 const char      *iffile_to_hostname(const char *);
 int             dhcpv6_status_code(const dhcpv6_option_t *, uint_t,
     const char **, const char **, uint_t *);
 void            write_lease_to_hostconf(dhcp_smach_t *);
+int                     dhcp_add_hostname_opt(dhcp_pkt_t *, dhcp_smach_t *);
+int                     dhcp_add_fqdn_opt(dhcp_pkt_t *, dhcp_smach_t *);
 
 #ifdef  __cplusplus
 }
 #endif