/*++ /* NAME /* normalize_v4mapped_addr 3 /* SUMMARY /* normalize v4mapped IPv6 address /* SYNOPSIS /* #include <stringops.h> /* /* int normalize_v4mapped_sockaddr( /* struct sockaddr *sa, /* SOCKADDR_SIZE *sa_len) /* /* int normalize_v4mapped_hostaddr( /* MAI_HOSTADDR_STR *addr) /* DESCRIPTION /* The functions in this module convert IPV6 addresses containing a /* mapped IPv4 address to the IPv4 form, but only if IPv4 support /* is enabled. /* /* normalize_v4mapped_sockaddr converts a V4mapped IPv6 sockaddr /* structure (struct sockaddr_in6) to the IPv4 form (struct /* sockaddr_in) and reduces *sa_len to (sizeof(struct sockaddr_in)). /* /* normalize_v4mapped_hostaddr converts a V4mapped IPv6 printable /* address (:ffff:d.d.d.d) to the IPv4 form (d.d.d.d). /* /* Both functions return 0 (false) when no input was converted, /* and return 1 (true) when input was converted. /* BUGS /* normalize_v4mapped_hostaddr() converts only canonical address /* forms, not all equivalent forms. /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this software. /* AUTHOR(S) /* Wietse Venema /* porcupine.org /* New York, NY 10011, USA
/*--*/
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.