|
NAMEinet_cidr_ntop , inet_cidr_pton
—
network translation routines
SYNOPSIS#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
DESCRIPTIONThese routines are used for converting addresses to and from network and presentation forms with CIDR (Classless Inter-Domain Routing) representation, embedded net mask.130.155.16.1/20
af describes the type of address that is being passed in src. Currently only AF_INET is supported. src is an address in network byte order, its length is determined from af. bits specifies the number of bits in the netmask unless it is -1 in which case the CIDR representation is omitted. dst is a caller supplied buffer of at least size bytes.
af describes the type of address that is being passed in via src and determines the size of dst. src is an address in presentation format. bits returns the number of bits in the netmask or -1 if a CIDR representation was not supplied.
SEE ALSOintro(2)
Visit the GSP FreeBSD Man Page Interface. |