diff options
author | Chris Fraire <cfraire@me.com> | 2016-11-18 11:29:24 -0700 |
---|---|---|
committer | Gordon Ross <gwr@nexenta.com> | 2017-09-12 05:42:21 -0700 |
commit | b31320a79e2054c6739b5229259dbf98f3afc547 (patch) | |
tree | 8f7d0091db2c1e1d5df8bb8cebf12b81e124e937 /usr/src/cmd/cmd-inet/sbin/dhcpagent/util.h | |
parent | dc97a43d4a70c8773a619f11b95b07a787f6f5b7 (diff) | |
download | illumos-gate-b31320a79e2054c6739b5229259dbf98f3afc547.tar.gz |
7388 Support -h <hostname> for ipadm DHCP
8517 Add ipadm and nwam options to allow designating a DHCP address as the primary interface
8518 Allow using system-generated IAID/DUID for all DHCPv4
8519 Add ns_name_pton2 to libresolv2 mapfile
Reviewed by: Dan McDonald <danmcd@joyent.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Peter Tribble <peter.tribble@gmail.com>
Approved by: Gordon Ross <gwr@nexenta.com>
Diffstat (limited to 'usr/src/cmd/cmd-inet/sbin/dhcpagent/util.h')
-rw-r--r-- | usr/src/cmd/cmd-inet/sbin/dhcpagent/util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/src/cmd/cmd-inet/sbin/dhcpagent/util.h b/usr/src/cmd/cmd-inet/sbin/dhcpagent/util.h index 587b9a9a31..906d3599f0 100644 --- a/usr/src/cmd/cmd-inet/sbin/dhcpagent/util.h +++ b/usr/src/cmd/cmd-inet/sbin/dhcpagent/util.h @@ -20,6 +20,7 @@ */ /* * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016-2017, Chris Fraire <cfraire@me.com>. */ #ifndef UTIL_H @@ -33,6 +34,7 @@ #include <dhcpagent_ipc.h> #include "common.h" +#include "packet.h" /* * general utility functions which have no better home. see util.c @@ -75,6 +77,9 @@ 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 *); +boolean_t dhcp_add_hostname_opt(dhcp_pkt_t *, dhcp_smach_t *); +boolean_t dhcp_add_fqdn_opt(dhcp_pkt_t *, dhcp_smach_t *); +void save_domainname(dhcp_smach_t *, PKT_LIST *); #ifdef __cplusplus } |