]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Enlarge the buffer size used by the Omshell code and some of the
authorShawn Routhier <sar@isc.org>
Wed, 1 Jun 2011 23:30:53 +0000 (23:30 +0000)
committerShawn Routhier <sar@isc.org>
Wed, 1 Jun 2011 23:30:53 +0000 (23:30 +0000)
print routines to allow for greater than 60 characters or, when
printing as hex strings, 20 characters.  [ISC-Bugs #22743]

RELNOTES
common/print.c
dhcpctl/omshell.c
server/dhcpd.conf.5

index 12b5a1535757a094517e9da7306fb72350d00c4e..f249329741bd1828d4ea5252b73a109ca122062b 100644 (file)
--- a/RELNOTES
+++ b/RELNOTES
@@ -151,6 +151,10 @@ work on other platforms. Please report any problems and suggested fixes to
   run from the same platform as the server, would appear to fail to
   connect.  This is a companion to #21839.  [ISC-Bugs #23592]
 
+- Enlarge the buffer size used by the Omshell code and some of the
+  print routines to allow for greater than 60 characters or, when
+  printing as hex strings, 20 characters.  [ISC-Bugs #22743]
+
                        Changes since 4.2.1rc1
 
 - None
index bb59ba3b879f3fdf42cfc9974aafce16c0c1ae1e..fb2ca0fba0c2871f29598fca28e99401ce9c5d8f 100644 (file)
@@ -435,7 +435,7 @@ void print_hex_or_string (len, data, limit, buf)
  * limit - length of buf
  * buf_num - the output buffer to use
  */
-#define HBLEN 60
+#define HBLEN 1024
 char *print_hex(len, data, limit, buf_num)
        unsigned len;
        const u_int8_t *data;
index ca918ce4e152e01c424f19a6e05203f3056b52e7..bb489d8456dc5cd65ca4ccb9222d534ed09efc95 100644 (file)
@@ -3,7 +3,7 @@
    Examine and modify omapi objects. */
 
 /*
- * Copyright (c) 2009-2010 by Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (c) 2009-2011 by Internet Systems Consortium, Inc. ("ISC")
  * Copyright (c) 2004-2007 by Internet Systems Consortium, Inc. ("ISC")
  * Copyright (c) 2001-2003 by Internet Software Consortium
  *
@@ -99,7 +99,7 @@ main(int argc, char **argv) {
        char buf[1024];
        char s1[1024];
        int connected = 0;
-       char hex_buf[61];
+       char hex_buf[1025];
 
        for (i = 1; i < argc; i++) {
                usage(argv[0]);
index e642405bcaf3ae47a87b980924a61e6612f032a9..d94b878e064d795984fd18894bfc89c861144987 100644 (file)
@@ -27,7 +27,7 @@
 .\" Support and other services are available for ISC products - see
 .\" https://www.isc.org for more information or to learn more about ISC.
 .\"
-.\" $Id: dhcpd.conf.5,v 1.106.18.5 2011/05/20 14:21:11 tomasz Exp $
+.\" $Id: dhcpd.conf.5,v 1.106.18.6 2011/06/01 23:30:53 sar Exp $
 .\"
 .TH dhcpd.conf 5
 .SH NAME
@@ -1277,7 +1277,7 @@ chooses a new name.
 The interim DNS update scheme is called interim for two reasons.
 First, it does not quite follow the RFCs.   The RFCs call for a
 new DHCID RRtype while he interim DNS update scheme uses a TXT record.
-The ddns-resolution draft cllaed for the DHCP server to put a DHCID RR
+The ddns-resolution draft called for the DHCP server to put a DHCID RR
 on the PTR record, but the \fIinterim\fR update method does not do this.
 In the final RFC this requirement was relaxed such that a server may
 add a DHCID RR to the PTR record.