.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd August 6, 2008
+.Dd August 7, 2008
.Dt DHCPCD 8 SMM
.Sh NAME
.Nm dhcpcd
option must be a FQDN.
.Nm
itself never does any DNS updates.
+.Nm
+encodes the FQDN hostname as specified in
+.Li RFC1035 .
.It Fl I , -clientid Ar clientid
Change the default clientid sent from the interface hardware address.
If the string is of the format 01:02:03 then it is encoded as hex.
case 'h':
if (oarg)
s = parse_string(options->hostname + 1,
- MAXHOSTNAMELEN, oarg);
+ HOSTNAME_MAX_LEN, oarg);
else
s = 0;
if (s == -1) {
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd June 30, 2008
+.Dd August 7, 2008
.Dt DHCPCD.CONF 5 SMM
.Sh NAME
.Nm dhcpcd.conf
option must be a FQDN.
.Nm dhcpcd
itself never does any DNS updates.
+.Nm dhcpcd
+encodes the FQDN hostname as specified in
+.Li RFC1035 .
.It Ic interface Ar interface
Subsequent options are only parsed for this
.Ar interface .
#define DEFAULT_TIMEOUT 30
#define DEFAULT_LEASETIME 3600 /* 1 hour */
+#define HOSTNAME_MAX_LEN 254 /* Trailing NULL for FQDN */
#define CLASSID_MAX_LEN 48
#define CLIENTID_MAX_LEN 48
#define USERCLASS_MAX_LEN 255
char script[PATH_MAX];
char pidfile[PATH_MAX];
- char hostname[MAXHOSTNAMELEN];
+ char hostname[HOSTNAME_MAX_LEN + 1];
int fqdn;
uint8_t classid[CLASSID_MAX_LEN + 1];
char clientid[CLIENTID_MAX_LEN + 1];