mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-28 01:28:05 -04:00
use isc_inet_pton
This commit is contained in:
parent
28ed301319
commit
6acb28c304
2 changed files with 4 additions and 4 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: aaaa_28.c,v 1.1 1999/02/01 00:15:55 marka Exp $ */
|
||||
/* $Id: aaaa_28.c,v 1.2 1999/02/02 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, ®ion);
|
||||
if (region.length < 16)
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: aaaa_28.h,v 1.1 1999/02/01 00:15:55 marka Exp $ */
|
||||
/* $Id: aaaa_28.h,v 1.2 1999/02/02 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, ®ion);
|
||||
if (region.length < 16)
|
||||
|
|
|
|||
Loading…
Reference in a new issue