Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
c01237c6
Commit
c01237c6
authored
Nov 27, 2001
by
Andreas Gustafsson
Browse files
1140. [bug] rndc-confgen did not accept IPv6 addresses as arguments
to the -s option. [RT
#2138
]
parent
c5280616
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
c01237c6
1140. [bug] rndc-confgen did not accept IPv6 addresses as arguments
to the -s option. [RT #2138]
1139. [func] It is now possible to flush a given name from the
cache(s) via 'rndc flushname name [view]'. [RT #2051]
...
...
bin/rndc/rndc-confgen.c
View file @
c01237c6
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: rndc-confgen.c,v 1.1
1
2001/
09/06 23:14:37
gson Exp $ */
/* $Id: rndc-confgen.c,v 1.1
2
2001/
11/27 20:59:52
gson Exp $ */
#include
<config.h>
...
...
@@ -139,7 +139,8 @@ main(int argc, char **argv) {
int
keysize
;
int
entropy_flags
=
0
;
int
open_keyboard
=
ISC_ENTROPY_KEYBOARDMAYBE
;
struct
in_addr
addr
;
struct
in_addr
addr4_dummy
;
struct
in6_addr
addr6_dummy
;
char
*
chrootdir
=
NULL
;
char
*
user
=
NULL
;
isc_boolean_t
keyonly
=
ISC_FALSE
;
...
...
@@ -197,9 +198,9 @@ main(int argc, char **argv) {
break
;
case
's'
:
serveraddr
=
isc_commandline_argument
;
if
(
inet_aton
(
serveraddr
,
&
addr
)
==
0
)
if
(
inet_pton
(
AF_INET
,
serveraddr
,
&
addr4_dummy
)
!=
1
&&
inet_pton
(
AF_INET6
,
serveraddr
,
&
addr6_dummy
)
!=
1
)
fatal
(
"-s should be an IPv4 or IPv6 address"
);
break
;
case
't'
:
chrootdir
=
isc_commandline_argument
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment