scanner.c

来自「Ubuntu packages of security software。 相」· C语言 代码 · 共 1,325 行 · 第 1/5 页

C
1,325
字号
#define YY_CURRENT_BUFFER ( (yy_buffer_stack) \                          ? (yy_buffer_stack)[(yy_buffer_stack_top)] \                          : NULL)/* Same as previous macro, but useful when we know that the buffer stack is not * NULL or when we need an lvalue. For internal use only. */#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]/* yy_hold_char holds the character lost when pcap_text is formed. */static char yy_hold_char;static int yy_n_chars;		/* number of characters read into yy_ch_buf */int pcap_leng;/* Points to current character in buffer. */static char *yy_c_buf_p = (char *) 0;static int yy_init = 0;		/* whether we need to initialize */static int yy_start = 0;	/* start state number *//* Flag which is used to allow pcap_wrap()'s to do buffer switches * instead of setting up a fresh pcap_in.  A bit of a hack ... */static int yy_did_buffer_switch_on_eof;void pcap_restart (FILE *input_file  );void pcap__switch_to_buffer (YY_BUFFER_STATE new_buffer  );YY_BUFFER_STATE pcap__create_buffer (FILE *file,int size  );void pcap__delete_buffer (YY_BUFFER_STATE b  );void pcap__flush_buffer (YY_BUFFER_STATE b  );void pcap_push_buffer_state (YY_BUFFER_STATE new_buffer  );void pcap_pop_buffer_state (void );static void pcap_ensure_buffer_stack (void );static void pcap__load_buffer_state (void );static void pcap__init_buffer (YY_BUFFER_STATE b,FILE *file  );#define YY_FLUSH_BUFFER pcap__flush_buffer(YY_CURRENT_BUFFER )YY_BUFFER_STATE pcap__scan_buffer (char *base,yy_size_t size  );YY_BUFFER_STATE pcap__scan_string (yyconst char *yy_str  );YY_BUFFER_STATE pcap__scan_bytes (yyconst char *bytes,int len  );void *pcap_alloc (yy_size_t  );void *pcap_realloc (void *,yy_size_t  );void pcap_free (void *  );#define yy_new_buffer pcap__create_buffer#define yy_set_interactive(is_interactive) \	{ \	if ( ! YY_CURRENT_BUFFER ){ \        pcap_ensure_buffer_stack (); \		YY_CURRENT_BUFFER_LVALUE =    \            pcap__create_buffer(pcap_in,YY_BUF_SIZE ); \	} \	YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \	}#define yy_set_bol(at_bol) \	{ \	if ( ! YY_CURRENT_BUFFER ){\        pcap_ensure_buffer_stack (); \		YY_CURRENT_BUFFER_LVALUE =    \            pcap__create_buffer(pcap_in,YY_BUF_SIZE ); \	} \	YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \	}#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)/* Begin user sect3 */typedef unsigned char YY_CHAR;FILE *pcap_in = (FILE *) 0, *pcap_out = (FILE *) 0;typedef int yy_state_type;extern int pcap_lineno;int pcap_lineno = 1;extern char *pcap_text;#define yytext_ptr pcap_textstatic yy_state_type yy_get_previous_state (void );static yy_state_type yy_try_NUL_trans (yy_state_type current_state  );static int yy_get_next_buffer (void );static void yy_fatal_error (yyconst char msg[]  );/* Done after the current pattern has been matched and before the * corresponding action - sets up pcap_text. */#define YY_DO_BEFORE_ACTION \	(yytext_ptr) = yy_bp; \	pcap_leng = (size_t) (yy_cp - yy_bp); \	(yy_hold_char) = *yy_cp; \	*yy_cp = '\0'; \	(yy_c_buf_p) = yy_cp;#define YY_NUM_RULES 137#define YY_END_OF_BUFFER 138/* This struct is not used in this scanner,   but its presence is necessary. */struct yy_trans_info	{	flex_int32_t yy_verify;	flex_int32_t yy_nxt;	};static yyconst flex_int16_t yy_accept[1330] =    {   0,        0,    0,  138,  135,   95,   95,   95,   96,  135,   96,       96,   96,  136,  104,  104,   96,   96,   96,   96,  133,      133,  135,  133,  133,  133,  133,  133,  133,  133,  133,      133,  133,  133,  133,  133,  133,  133,  133,  133,  133,      133,  133,   96,  135,   99,  103,   57,    0,  133,  104,        0,  133,  133,  133,  107,  101,   98,  100,   97,  102,      134,  134,  133,  133,   19,  133,  133,  133,  133,  133,      133,  133,  133,  133,  133,  133,  133,  133,  133,  133,      133,  133,  133,  133,  133,  133,  133,  133,  133,  133,        7,  133,   33,   34,  133,  133,  133,  133,  133,  133,      133,  133,  133,  133,  133,  133,  133,  133,   81,  133,       58,  133,  133,  133,  133,  133,  133,  133,  133,  133,      133,  133,   75,  133,  133,  133,  133,  133,  133,  133,        4,  133,  133,  133,  133,  133,  133,   58,  103,  105,      105,  104,  133,    0,  107,  104,  107,  107,  107,  133,      133,   57,    5,  133,   70,  133,  133,  133,  133,  133,      133,   93,    1,    0,  133,   20,  133,  133,  133,  133,      133,  133,  133,  133,  133,  133,   35,  133,  133,   17,       42,    0,  133,   28,  133,   24,   60,  133,  133,   68,       36,  133,   89,  133,  133,  133,  133,   90,  133,   45,       59,   71,   92,  133,   14,  133,    3,  133,  133,  133,      133,  133,   83,  133,  133,   25,  133,   91,  133,   94,       37,    2,  133,   41,  133,    9,   10,   78,  133,   77,      133,  133,  133,  133,  104,    0,  133,    0,  108,  107,      107,    0,  107,    0,  107,    0,  107,    0,   22,  133,      133,  133,   54,   40,  133,   38,  133,  133,   29,  133,       87,  133,  133,   44,   11,  133,   12,   13,  133,  133,      133,   31,   67,  133,   52,    3,   88,   46,  133,  133,      133,   64,  133,  133,  133,  133,   47,  133,  133,   39,      133,    6,  133,   82,  133,    8,   84,  133,    0,  133,       63,   15,  105,  105,  105,  104,    0,  107,    0,    0,      107,    0,  107,  108,  107,    0,    0,    0,    0,  107,      107,  107,  107,  107,    0,  133,   21,  133,  133,  133,       30,  133,  133,    0,   18,  133,  133,  133,   76,  133,       32,  133,   69,   27,   26,  133,  133,   72,  133,  133,      133,   49,   16,  133,  133,  133,  133,  133,  133,  133,      133,  133,  133,  133,  133,  133,    0,    0,  107,  107,      107,    0,    0,  108,  107,  107,  108,  107,    0,    0,      107,  107,  107,  107,  107,    0,    0,    0,    0,  107,      107,    0,  107,    0,  107,    0,   86,  133,  133,   23,      133,  133,  133,  133,  133,  133,  133,  133,  133,  133,      133,  133,  133,   60,  133,  133,  133,  133,  133,  133,      133,   65,   66,  133,   85,  133,  133,  133,  133,  133,      133,  133,  133,  133,  133,  105,  105,  105,    0,  107,      107,    0,  107,    0,    0,  107,    0,  107,  108,  107,        0,    0,    0,  107,  107,    0,  107,  108,  107,    0,        0,    0,    0,    0,    0,    0,  107,  107,  107,  107,      107,    0,  133,  133,   51,   53,  133,  133,  133,  133,      133,  133,  133,  133,  133,  133,  133,  133,   61,  133,      133,   43,   73,   74,  133,  133,  133,  133,  131,  127,      133,  129,  128,  132,  133,  133,    0,    0,  107,  107,      107,  107,  107,  107,    0,    0,  108,  107,  107,  107,        0,    0,  107,  107,  107,  107,  107,    0,    0,    0,        0,    0,    0,    0,  107,  107,  107,  107,  107,    0,        0,    0,    0,    0,  107,  107,    0,  107,    0,  107,        0,  133,  133,  133,  133,  133,  133,  133,  133,  133,      133,  133,  133,  110,  109,  133,  133,   62,  133,  133,      133,  130,  126,  105,    0,  107,  107,    0,  107,  107,        0,  107,    0,    0,  107,    0,  107,  108,  107,    0,        0,    0,  107,  107,    0,  107,  108,  107,    0,    0,        0,    0,    0,  107,  107,    0,  107,  108,  107,    0,      107,  107,    0,    0,    0,    0,    0,    0,    0,  107,      107,  107,  107,  107,    0,   55,  133,  115,  122,  133,      133,  133,  133,  133,  133,  133,  133,  133,   56,   48,      133,  133,    0,    0,  107,  107,  107,  107,  107,  107,      107,  107,  107,    0,    0,  108,  107,  107,  107,    0,        0,  107,  107,  107,  107,  107,    0,    0,    0,    0,        0,    0,    0,  107,  107,  107,  107,  107,    0,  107,      107,    0,    0,    0,    0,    0,    0,    0,  107,  107,      107,  107,  107,    0,    0,    0,    0,    0,    0,  107,      107,    0,  107,    0,  107,    0,   79,  133,  133,  133,      133,  133,  133,  133,  133,  133,  133,  133,   50,    0,      107,  107,    0,  107,  107,    0,  107,  107,    0,  107,        0,  106,  107,    0,  107,  108,  107,    0,    0,    0,      107,  107,    0,  107,  108,  107,    0,    0,    0,    0,        0,  107,  107,    0,  107,  108,  107,    0,    0,    0,        0,    0,    0,  107,  107,    0,  107,  108,  107,    0,      107,  107,  107,    0,    0,    0,    0,    0,    0,    0,      107,  107,  107,  107,  107,    0,  133,  133,  133,  133,      133,  133,  133,  133,  120,  133,   80,    0,    0,  107,      107,  107,  107,  107,  107,  107,  107,  107,  107,  107,      107,    0,  106,  108,  107,  107,  107,    0,    0,  107,      107,  107,  107,  107,    0,    0,    0,    0,    0,    0,        0,  107,  107,  107,  107,  107,    0,  107,  107,    0,        0,    0,    0,    0,    0,    0,  107,  107,  107,  107,      107,    0,  107,  107,  107,    0,    0,    0,    0,    0,        0,    0,  107,  107,  107,  107,  107,    0,    0,    0,        0,    0,    0,  107,  107,    0,  107,    0,  107,    0,      133,  133,  133,  124,  133,  133,  133,  133,  133,  133,      133,  112,    0,  107,  107,    0,  107,  107,    0,  107,      107,    0,  107,  107,    0,  107,    0,    0,    0,  107,        0,    0,  107,  108,  107,    0,    0,    0,  107,  107,        0,  107,  108,  107,    0,    0,    0,    0,    0,  107,      107,    0,  107,  108,  107,    0,    0,    0,    0,    0,        0,  107,  107,    0,  107,  108,  107,    0,    0,    0,        0,    0,    0,  107,  107,    0,  107,  108,  107,    0,      107,  107,  107,    0,    0,    0,    0,    0,    0,    0,      107,  107,  107,  107,  107,    0,  133,  133,  133,  133,      114,  133,  133,  133,  118,  133,    0,    0,  107,  107,      107,  107,  107,  107,  107,  107,  107,  107,  107,  107,      107,  107,  107,    0,    0,    0,  108,    0,    0,  107,        0,    0,  107,  107,  107,    0,    0,    0,    0,    0,        0,    0,  107,  107,  107,    0,  107,  107,    0,    0,        0,    0,    0,    0,    0,  107,  107,  107,    0,  107,      107,  107,    0,    0,    0,    0,    0,    0,    0,  107,      107,  107,    0,  107,  107,  107,    0,    0,    0,    0,        0,    0,    0,  107,  107,  107,    0,    0,    0,    0,        0,    0,  107,  107,    0,  107,    0,  107,    0,  111,      123,  125,  119,  133,  133,  133,  133,    0,    0,  107,        0,  107,    0,  107,  107,    0,  107,  107,    0,  107,      107,    0,  107,  107,    0,  107,    0,    0,    0,    0,      107,  107,    0,  107,    0,    0,  107,  107,  107,    0,        0,    0,    0,  107,  107,  107,    0,    0,    0,    0,        0,  107,  107,  107,    0,    0,    0,    0,    0,  107,      107,  107,    0,    0,    0,    0,    0,  107,  107,  107,      107,  107,  107,    0,    0,    0,    0,    0,    0,    0,      107,  107,  107,    0,  133,  133,  133,  133,    0,    0,        0,  107,  107,  107,  107,  107,  107,    0,    0,    0,        0,  107,  107,    0,    0,    0,    0,  107,  107,  107,        0,    0,    0,    0,    0,  107,  107,  107,  107,    0,        0,    0,    0,    0,  107,  107,  107,  107,    0,    0,        0,    0,    0,  107,  107,  107,  107,    0,    0,    0,        0,    0,  107,    0,    0,    0,    0,    0,  107,  107,      107,  133,  133,  133,  121,  107,  107,  107,  107,  107,      107,  107,  107,    0,    0,    0,    0,  107,  107,    0,        0,  107,    0,    0,    0,  107,    0,    0,    0,  107,        0,    0,    0,  107,    0,    0,    0,  107,  107,  107,      107,    0,    0,    0,    0,    0,  107,  116,  133,  113,      107,    0,    0,  107,  107,    0,  107,  107,  107,    0,      107,  107,  107,    0,  107,  107,  107,    0,  107,  107,      107,    0,    0,    0,    0,  107,  117,  107,  107,    0,        0,    0,    0,    0,    0,  107,  107,  107,    0,    0,      107,  107,  107,  107,  107,    0,  107,  107,    0    } ;static yyconst flex_int32_t yy_ec[256] =    {   0,        1,    1,    1,    1,    1,    1,    1,    1,    2,    3,        1,    1,    4,    1,    1,    1,    1,    1,    1,    1,        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,        1,    2,    5,    1,    1,    6,    1,    7,    1,    8,

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?