/*++ /* NAME /* inet_prefix_top 3 /* SUMMARY /* convert net/mask to printable string /* SYNOPSIS /* #include <inet_prefix_top.h> /* /* char *inet_prefix_top( /* int family, /* const void *src, /* int prefix_len) /* DESCRIPTION /* inet_prefix_top() prints the network portion of the specified /* IPv4 or IPv6 address, null bits for the host portion, and /* the prefix length if it is shorter than the address. /* The result should be passed to myfree(). The code can /* handle addresses of any length, and bytes of any width. /* /* Arguments: /* .IP af /* The address family, as with inet_ntop(). /* .IP src /* Pointer to storage for an IPv4 or IPv6 address, as with /* inet_ntop(). /* .IP prefix_len /* The number of most-significant bits in \fBsrc\fR that should /* not be cleared. /* DIAGNOSTICS /* Panic: unexpected protocol family, bad prefix length. Fatal /* errors: address conversion error. /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this software. /* AUTHOR(S) /* Wietse Venema
/*--*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.