inet_aton.c File Reference

#include <config.h>
#include <ctype.h>
#include <stddef.h>
#include <isc/types.h>
#include <isc/net.h>

Go to the source code of this file.

Functions

int isc_net_aton (const char *cp, struct in_addr *addr)
 Check whether "cp" is a valid ascii representation of an Internet address and convert to a binary address. Returns 1 if the address is valid, 0 if not. This replaces inet_addr, the return value from which cannot distinguish between failure and a local broadcast address.


Detailed Description

Definition in file inet_aton.c.


Function Documentation

int isc_net_aton ( const char *  cp,
struct in_addr *  addr 
)

Check whether "cp" is a valid ascii representation of an Internet address and convert to a binary address. Returns 1 if the address is valid, 0 if not. This replaces inet_addr, the return value from which cannot distinguish between failure and a local broadcast address.

Definition at line 89 of file inet_aton.c.


Generated on Tue Apr 28 17:41:18 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha