/*++ /* NAME /* match_ops 3 /* SUMMARY /* simple string or host pattern matching /* SYNOPSIS /* #include <match_list.h> /* /* int match_string(list, string, pattern) /* MATCH_LIST *list; /* const char *string; /* const char *pattern; /* /* int match_hostname(list, name, pattern) /* MATCH_LIST *list; /* const char *name; /* const char *pattern; /* /* int match_hostaddr(list, addr, pattern) /* MATCH_LIST *list; /* const char *addr; /* const char *pattern; /* DESCRIPTION /* This module implements simple string and host name or address /* matching. The matching process is case insensitive. If a pattern /* has the form type:name, table lookup is used instead of string /* or address comparison. /* /* match_string() matches the string against the pattern, requiring /* an exact (case-insensitive) match. The flags argument is not used. /* /* match_hostname() matches the host name when the hostname matches /* the pattern exactly, or when the pattern matches a parent domain /* of the named host. The flags argument specifies the bit-wise OR /* of zero or more of the following: /* .IP MATCH_FLAG_PARENT /* The hostname pattern foo.com matches itself and any name below /* the domain foo.com. If this flag is cleared, foo.com matches itself /* only, and .foo.com matches any name below the domain foo.com. /* .IP MATCH_FLAG_RETURN /* Log a warning, return "not found", and set list->error to /* a non-zero dictionary error code, instead of raising a fatal /* run-time error. /* .RE /* Specify MATCH_FLAG_NONE to request none of the above. /* /* match_hostaddr() matches a host address when the pattern is /* identical to the host address, or when the pattern is a net/mask /* that contains the address. The mask specifies the number of /* bits in the network part of the pattern. The flags argument is /* not used. /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this software. /* AUTHOR(S) /* Wietse Venema /* IBM T.J. Watson Research /* P.O. Box 704 /* Yorktown Heights, NY 10598, USA /* /* Wietse Venema /* Google, Inc. /* 111 8th Avenue /* 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.