SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

BotDetect - Real-Time Bot Detection API
 
 

MAN page from Trustix bind-devel-8.2.6-3tr.i586.rpm

INET_CIDR

Section: C Library Functions (3)
Index
BSD mandoc
BSD 4 

NAME

inet_cidr_ntop inet_cidr_pton - network translation routines 

SYNOPSIS

Fd #include <sys/types.h>Fd #include <sys/socket.h>Fd #include <netinet/in.h>Fd #include <arpa/inet.h>Fn inet_cidr_ntop int af const void *src int bits char *dst size_t sizeFn inet_cidr_pton int af const char *src void *dst int *bits 

DESCRIPTION

These routines are used for converting addresses to and from network andpresentation forms with CIDR (Classless Inter-Domain Routing) representation,embedded net mask.

                130.155.16.1/20

Fn inet_cidr_ntopconverts an address from network to presentation format.

Ft afdescribes the type of address that is being passed inFt src .Currently only AF_INET is supported.

Ft srcis an address in network byte order, its length is determined fromFt af .

Ft bitsspecifies the number of bits in the netmask unless it is -1 in which casethe CIDR representation is omitted.

Ft dstis a caller supplied buffer of at leastFt sizebytes.

Fn inet_cidr_ntopreturns Ft dston success or NULL.Check errno for reason.

Fn inet_cidr_ptonconverts and address from presentation format, with optional CIDRreperesentation, to network format.The resulting address is zero filled if there were insufficint bits inFt src .

Ft afdescribes the type of address that is being passed in via Ft srcand determines the size of Ft dst .

Ft srcis an address in presentation format.

Ft bitsreturns the number of bits in the netmask or -1 if a CIDR representation wasnot supplied.

Fn inet_cidr_ptonreturns 0 on succces or -1 on error.Check errno for reason.ENOENT indicates an invalid netmask. 

SEE ALSO

intro(2)


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO

This document was created byman2html,using the manual pages.
 
ICM Bot detect detector