Postfix3.3.1
マクロ定義 | 関数
match_ops.c ファイル
#include <sys_defs.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string.h>
#include <stdlib.h>
#include <msg.h>
#include <mymalloc.h>
#include <split_at.h>
#include <dict.h>
#include <match_list.h>
#include <stringops.h>
#include <cidr_match.h>

[ソースコード]

マクロ定義

#define MATCH_DICTIONARY(pattern)   ((pattern)[0] != '[' && strchr((pattern), ':') != 0)
 
#define V4_ADDR_STRING_CHARS   "01234567890."
 
#define V6_ADDR_STRING_CHARS   V4_ADDR_STRING_CHARS "abcdefABCDEF:"
 

関数

int match_string (MATCH_LIST *list, const char *string, const char *pattern)
 
int match_hostname (MATCH_LIST *list, const char *name, const char *pattern)
 
int match_hostaddr (MATCH_LIST *list, const char *addr, const char *pattern)
 

マクロ定義詳解

#define MATCH_DICTIONARY (   pattern)    ((pattern)[0] != '[' && strchr((pattern), ':') != 0)

match_ops.c86 行目に定義があります。

#define V4_ADDR_STRING_CHARS   "01234567890."
#define V6_ADDR_STRING_CHARS   V4_ADDR_STRING_CHARS "abcdefABCDEF:"

関数詳解

int match_hostaddr ( MATCH_LIST list,
const char *  addr,
const char *  pattern 
)

match_ops.c221 行目に定義があります。

int match_hostname ( MATCH_LIST list,
const char *  name,
const char *  pattern 
)

match_ops.c151 行目に定義があります。

int match_string ( MATCH_LIST list,
const char *  string,
const char *  pattern 
)

match_ops.c113 行目に定義があります。