Postfix3.3.1
マクロ定義 | 関数
ip_match.c ファイル
#include <sys_defs.h>
#include <sys/socket.h>
#include <ctype.h>
#include <string.h>
#include <msg.h>
#include <mymalloc.h>
#include <vstring.h>
#include <ip_match.h>

[ソースコード]

マクロ定義

#define IP_MATCH_CODE_OPEN   '[' /* in-band */
 
#define IP_MATCH_CODE_CLOSE   ']' /* in-band */
 
#define IP_MATCH_CODE_OVAL   'N' /* in-band */
 
#define IP_MATCH_CODE_RANGE   'R' /* in-band */
 
#define IP_MATCH_CODE_EOF   '\0' /* in-band */
 
#define IP_MATCH_CODE_ERR   256 /* out-of-band */
 
#define STR   vstring_str
 
#define LEN   VSTRING_LEN
 
#define IP_MATCH_RETURN_TOK(next, type)   do { *pstart = (char *) (next); return (type); } while (0)
 
#define IP_MATCH_RETURN_TOK_VAL(next, type, oval)
 
#define FIND_TERMINATOR(start, cp)
 

関数

char * ip_match_save (const VSTRING *byte_codes)
 
char * ip_match_dump (VSTRING *printable, const char *byte_codes)
 
int ip_match_execute (const char *byte_codes, const char *addr_bytes)
 
char * ip_match_parse (VSTRING *byte_codes, char *pattern)
 

マクロ定義詳解

#define FIND_TERMINATOR (   start,
  cp 
)
値:
do { \
int _level = 0; \
for (cp = (start) ; *cp; cp++) { \
if (*cp == '[') _level++; \
if (*cp != ']') continue; \
if (--_level == 0) break; \
} \
} while (0)
int int
Definition: smtpd_proxy.h:21
#define IP_MATCH_CODE_CLOSE   ']' /* in-band */

ip_match.c128 行目に定義があります。

#define IP_MATCH_CODE_EOF   '\0' /* in-band */

ip_match.c131 行目に定義があります。

#define IP_MATCH_CODE_ERR   256 /* out-of-band */

ip_match.c132 行目に定義があります。

#define IP_MATCH_CODE_OPEN   '[' /* in-band */

ip_match.c127 行目に定義があります。

#define IP_MATCH_CODE_OVAL   'N' /* in-band */

ip_match.c129 行目に定義があります。

#define IP_MATCH_CODE_RANGE   'R' /* in-band */

ip_match.c130 行目に定義があります。

#define IP_MATCH_RETURN_TOK (   next,
  type 
)    do { *pstart = (char *) (next); return (type); } while (0)
#define IP_MATCH_RETURN_TOK_VAL (   next,
  type,
  oval 
)
値:
do { \
*poval = (oval); IP_MATCH_RETURN_TOK((next), type); \
} while (0)
#define IP_MATCH_RETURN_TOK(next, type)
#define LEN   VSTRING_LEN

ip_match.c138 行目に定義があります。

#define STR   vstring_str

ip_match.c137 行目に定義があります。

関数詳解

char* ip_match_dump ( VSTRING printable,
const char *  byte_codes 
)

ip_match.c152 行目に定義があります。

int ip_match_execute ( const char *  byte_codes,
const char *  addr_bytes 
)

ip_match.c272 行目に定義があります。

char* ip_match_parse ( VSTRING byte_codes,
char *  pattern 
)

ip_match.c434 行目に定義があります。

char* ip_match_save ( const VSTRING byte_codes)

ip_match.c142 行目に定義があります。