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
6acb28c3
Commit
6acb28c3
authored
Feb 02, 1999
by
Bob Halley
Browse files
use isc_inet_pton
parent
28ed3013
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/dns/rdata/in_1/aaaa_28.c
View file @
6acb28c3
...
...
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: aaaa_28.c,v 1.
1
1999/02/0
1
00:
15:55 marka
Exp $ */
/* $Id: aaaa_28.c,v 1.
2
1999/02/0
2
00:
38:50 halley
Exp $ */
/* RFC 1886 */
...
...
@@ -48,7 +48,7 @@ fromtext_in_aaaa(dns_rdataclass_t class, dns_rdatatype_t type,
RETERR
(
gettoken
(
lexer
,
&
token
,
isc_tokentype_string
,
ISC_FALSE
));
if
(
inet_pton
(
AF_INET6
,
token
.
value
.
as_pointer
,
&
addr
)
!=
1
)
if
(
isc_
inet_pton
(
AF_INET6
,
token
.
value
.
as_pointer
,
&
addr
)
!=
1
)
return
(
DNS_R_UNEXPECTED
);
isc_buffer_available
(
target
,
&
region
);
if
(
region
.
length
<
16
)
...
...
lib/dns/rdata/in_1/aaaa_28.h
View file @
6acb28c3
...
...
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: aaaa_28.h,v 1.
1
1999/02/0
1
00:
15:55 marka
Exp $ */
/* $Id: aaaa_28.h,v 1.
2
1999/02/0
2
00:
38:50 halley
Exp $ */
/* RFC 1886 */
...
...
@@ -48,7 +48,7 @@ fromtext_in_aaaa(dns_rdataclass_t class, dns_rdatatype_t type,
RETERR
(
gettoken
(
lexer
,
&
token
,
isc_tokentype_string
,
ISC_FALSE
));
if
(
inet_pton
(
AF_INET6
,
token
.
value
.
as_pointer
,
&
addr
)
!=
1
)
if
(
isc_
inet_pton
(
AF_INET6
,
token
.
value
.
as_pointer
,
&
addr
)
!=
1
)
return
(
DNS_R_UNEXPECTED
);
isc_buffer_available
(
target
,
&
region
);
if
(
region
.
length
<
16
)
...
...
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