1 #line 1 "lib/route/cls/ematch_grammar.c" 3 #line 3 "lib/route/cls/ematch_grammar.c" 5 #define YY_INT_ALIGNED short int 10 #define YY_FLEX_MAJOR_VERSION 2 11 #define YY_FLEX_MINOR_VERSION 6 12 #define YY_FLEX_SUBMINOR_VERSION 4 13 #if YY_FLEX_SUBMINOR_VERSION > 0 17 #ifdef yy_create_buffer 18 #define ematch__create_buffer_ALREADY_DEFINED 20 #define yy_create_buffer ematch__create_buffer 23 #ifdef yy_delete_buffer 24 #define ematch__delete_buffer_ALREADY_DEFINED 26 #define yy_delete_buffer ematch__delete_buffer 30 #define ematch__scan_buffer_ALREADY_DEFINED 32 #define yy_scan_buffer ematch__scan_buffer 36 #define ematch__scan_string_ALREADY_DEFINED 38 #define yy_scan_string ematch__scan_string 42 #define ematch__scan_bytes_ALREADY_DEFINED 44 #define yy_scan_bytes ematch__scan_bytes 48 #define ematch__init_buffer_ALREADY_DEFINED 50 #define yy_init_buffer ematch__init_buffer 53 #ifdef yy_flush_buffer 54 #define ematch__flush_buffer_ALREADY_DEFINED 56 #define yy_flush_buffer ematch__flush_buffer 59 #ifdef yy_load_buffer_state 60 #define ematch__load_buffer_state_ALREADY_DEFINED 62 #define yy_load_buffer_state ematch__load_buffer_state 65 #ifdef yy_switch_to_buffer 66 #define ematch__switch_to_buffer_ALREADY_DEFINED 68 #define yy_switch_to_buffer ematch__switch_to_buffer 71 #ifdef yypush_buffer_state 72 #define ematch_push_buffer_state_ALREADY_DEFINED 74 #define yypush_buffer_state ematch_push_buffer_state 77 #ifdef yypop_buffer_state 78 #define ematch_pop_buffer_state_ALREADY_DEFINED 80 #define yypop_buffer_state ematch_pop_buffer_state 83 #ifdef yyensure_buffer_stack 84 #define ematch_ensure_buffer_stack_ALREADY_DEFINED 86 #define yyensure_buffer_stack ematch_ensure_buffer_stack 90 #define ematch_lex_ALREADY_DEFINED 92 #define yylex ematch_lex 96 #define ematch_restart_ALREADY_DEFINED 98 #define yyrestart ematch_restart 102 #define ematch_lex_init_ALREADY_DEFINED 104 #define yylex_init ematch_lex_init 107 #ifdef yylex_init_extra 108 #define ematch_lex_init_extra_ALREADY_DEFINED 110 #define yylex_init_extra ematch_lex_init_extra 114 #define ematch_lex_destroy_ALREADY_DEFINED 116 #define yylex_destroy ematch_lex_destroy 120 #define ematch_get_debug_ALREADY_DEFINED 122 #define yyget_debug ematch_get_debug 126 #define ematch_set_debug_ALREADY_DEFINED 128 #define yyset_debug ematch_set_debug 132 #define ematch_get_extra_ALREADY_DEFINED 134 #define yyget_extra ematch_get_extra 138 #define ematch_set_extra_ALREADY_DEFINED 140 #define yyset_extra ematch_set_extra 144 #define ematch_get_in_ALREADY_DEFINED 146 #define yyget_in ematch_get_in 150 #define ematch_set_in_ALREADY_DEFINED 152 #define yyset_in ematch_set_in 156 #define ematch_get_out_ALREADY_DEFINED 158 #define yyget_out ematch_get_out 162 #define ematch_set_out_ALREADY_DEFINED 164 #define yyset_out ematch_set_out 168 #define ematch_get_leng_ALREADY_DEFINED 170 #define yyget_leng ematch_get_leng 174 #define ematch_get_text_ALREADY_DEFINED 176 #define yyget_text ematch_get_text 180 #define ematch_get_lineno_ALREADY_DEFINED 182 #define yyget_lineno ematch_get_lineno 186 #define ematch_set_lineno_ALREADY_DEFINED 188 #define yyset_lineno ematch_set_lineno 192 #define ematch_get_column_ALREADY_DEFINED 194 #define yyget_column ematch_get_column 198 #define ematch_set_column_ALREADY_DEFINED 200 #define yyset_column ematch_set_column 204 #define ematch_wrap_ALREADY_DEFINED 206 #define yywrap ematch_wrap 210 #define ematch_get_lval_ALREADY_DEFINED 212 #define yyget_lval ematch_get_lval 216 #define ematch_set_lval_ALREADY_DEFINED 218 #define yyset_lval ematch_set_lval 222 #define ematch_alloc_ALREADY_DEFINED 224 #define yyalloc ematch_alloc 228 #define ematch_realloc_ALREADY_DEFINED 230 #define yyrealloc ematch_realloc 234 #define ematch_free_ALREADY_DEFINED 236 #define yyfree ematch_free 256 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L 261 #ifndef __STDC_LIMIT_MACROS 262 #define __STDC_LIMIT_MACROS 1 265 #include <inttypes.h> 266 typedef int8_t flex_int8_t;
267 typedef uint8_t flex_uint8_t;
268 typedef int16_t flex_int16_t;
269 typedef uint16_t flex_uint16_t;
270 typedef int32_t flex_int32_t;
271 typedef uint32_t flex_uint32_t;
273 typedef signed char flex_int8_t;
274 typedef short int flex_int16_t;
275 typedef int flex_int32_t;
276 typedef unsigned char flex_uint8_t;
277 typedef unsigned short int flex_uint16_t;
278 typedef unsigned int flex_uint32_t;
282 #define INT8_MIN (-128) 285 #define INT16_MIN (-32767-1) 288 #define INT32_MIN (-2147483647-1) 291 #define INT8_MAX (127) 294 #define INT16_MAX (32767) 297 #define INT32_MAX (2147483647) 300 #define UINT8_MAX (255U) 303 #define UINT16_MAX (65535U) 306 #define UINT32_MAX (4294967295U) 310 #define SIZE_MAX (~(size_t)0) 320 #define yyconst const 322 #if defined(__GNUC__) && __GNUC__ >= 3 323 #define yynoreturn __attribute__((__noreturn__)) 334 #define YY_SC_TO_UI(c) ((YY_CHAR) (c)) 337 #ifndef YY_TYPEDEF_YY_SCANNER_T 338 #define YY_TYPEDEF_YY_SCANNER_T 339 typedef void* yyscan_t;
344 #define yyin yyg->yyin_r 345 #define yyout yyg->yyout_r 346 #define yyextra yyg->yyextra_r 347 #define yyleng yyg->yyleng_r 348 #define yytext yyg->yytext_r 349 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno) 350 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column) 351 #define yy_flex_debug yyg->yy_flex_debug_r 357 #define BEGIN yyg->yy_start = 1 + 2 * 362 #define YY_START ((yyg->yy_start - 1) / 2) 363 #define YYSTATE YY_START 365 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) 367 #define YY_NEW_FILE yyrestart( yyin , yyscanner ) 368 #define YY_END_OF_BUFFER_CHAR 0 377 #define YY_BUF_SIZE 32768 379 #define YY_BUF_SIZE 16384 385 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) 387 #ifndef YY_TYPEDEF_YY_BUFFER_STATE 388 #define YY_TYPEDEF_YY_BUFFER_STATE 392 #ifndef YY_TYPEDEF_YY_SIZE_T 393 #define YY_TYPEDEF_YY_SIZE_T 394 typedef size_t yy_size_t;
397 #define EOB_ACT_CONTINUE_SCAN 0 398 #define EOB_ACT_END_OF_FILE 1 399 #define EOB_ACT_LAST_MATCH 2 401 #define YY_LESS_LINENO(n) 402 #define YY_LINENO_REWIND_TO(ptr) 409 int yyless_macro_arg = (n); \ 410 YY_LESS_LINENO(yyless_macro_arg);\ 411 *yy_cp = yyg->yy_hold_char; \ 412 YY_RESTORE_YY_MORE_OFFSET \ 413 yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ 414 YY_DO_BEFORE_ACTION; \ 417 #define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner ) 419 #ifndef YY_STRUCT_YY_BUFFER_STATE 420 #define YY_STRUCT_YY_BUFFER_STATE 442 int yy_is_our_buffer;
449 int yy_is_interactive;
465 int yy_buffer_status;
467 #define YY_BUFFER_NEW 0 468 #define YY_BUFFER_NORMAL 1 479 #define YY_BUFFER_EOF_PENDING 2 490 #define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \ 491 ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \ 496 #define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] 498 void yyrestart ( FILE *input_file , yyscan_t yyscanner );
499 void yy_switch_to_buffer (
YY_BUFFER_STATE new_buffer , yyscan_t yyscanner );
500 YY_BUFFER_STATE yy_create_buffer ( FILE *file,
int size , yyscan_t yyscanner );
503 void yypush_buffer_state (
YY_BUFFER_STATE new_buffer , yyscan_t yyscanner );
504 void yypop_buffer_state ( yyscan_t yyscanner );
506 static void yyensure_buffer_stack ( yyscan_t yyscanner );
507 static void yy_load_buffer_state ( yyscan_t yyscanner );
508 static void yy_init_buffer (
YY_BUFFER_STATE b, FILE *file , yyscan_t yyscanner );
509 #define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER , yyscanner) 511 YY_BUFFER_STATE yy_scan_buffer (
char *base, yy_size_t size , yyscan_t yyscanner );
512 YY_BUFFER_STATE yy_scan_string (
const char *yy_str , yyscan_t yyscanner );
513 YY_BUFFER_STATE yy_scan_bytes (
const char *bytes,
int len , yyscan_t yyscanner );
515 void *
yyalloc ( yy_size_t , yyscan_t yyscanner );
516 void *yyrealloc (
void *, yy_size_t , yyscan_t yyscanner );
517 void yyfree (
void * , yyscan_t yyscanner );
519 #define yy_new_buffer yy_create_buffer 520 #define yy_set_interactive(is_interactive) \ 522 if ( ! YY_CURRENT_BUFFER ){ \ 523 yyensure_buffer_stack (yyscanner); \ 524 YY_CURRENT_BUFFER_LVALUE = \ 525 yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); \ 527 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ 529 #define yy_set_bol(at_bol) \ 531 if ( ! YY_CURRENT_BUFFER ){\ 532 yyensure_buffer_stack (yyscanner); \ 533 YY_CURRENT_BUFFER_LVALUE = \ 534 yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); \ 536 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ 538 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) 540 #define ematch_wrap(yyscanner) (1) 541 #define YY_SKIP_YYWRAP 542 typedef flex_uint8_t YY_CHAR;
544 typedef int yy_state_type;
546 #define yytext_ptr yytext_r 548 static yy_state_type yy_get_previous_state ( yyscan_t yyscanner );
549 static yy_state_type yy_try_NUL_trans ( yy_state_type current_state , yyscan_t yyscanner);
550 static int yy_get_next_buffer ( yyscan_t yyscanner );
551 static void yynoreturn yy_fatal_error (
const char* msg , yyscan_t yyscanner );
556 #define YY_DO_BEFORE_ACTION \ 557 yyg->yytext_ptr = yy_bp; \ 558 yyleng = (int) (yy_cp - yy_bp); \ 559 yyg->yy_hold_char = *yy_cp; \ 561 yyg->yy_c_buf_p = yy_cp; 562 #define YY_NUM_RULES 91 563 #define YY_END_OF_BUFFER 92 568 flex_int32_t yy_verify;
571 static const flex_int16_t yy_accept[393] =
573 0, 0, 0, 0, 92, 90, 1, 18, 2, 26,
574 23, 24, 30, 5, 5, 12, 8, 10, 90, 90,
575 90, 90, 90, 90, 90, 90, 90, 90, 90, 90,
576 90, 90, 90, 90, 90, 90, 90, 90, 90, 90,
577 90, 91, 3, 91, 4, 90, 1, 14, 5, 90,
578 28, 90, 29, 90, 90, 90, 40, 90, 90, 90,
579 90, 90, 15, 90, 90, 90, 90, 32, 90, 90,
580 90, 33, 90, 90, 7, 9, 90, 11, 90, 90,
581 90, 90, 90, 90, 90, 90, 90, 16, 3, 6,
582 13, 19, 37, 90, 39, 90, 90, 90, 38, 17,
584 90, 90, 42, 90, 90, 34, 35, 90, 47, 90,
585 90, 90, 90, 90, 90, 90, 90, 90, 90, 90,
586 90, 90, 31, 36, 25, 22, 90, 90, 21, 90,
587 90, 90, 90, 90, 54, 90, 90, 48, 90, 90,
588 90, 90, 90, 90, 90, 90, 90, 90, 90, 90,
589 90, 90, 90, 90, 90, 90, 86, 90, 27, 90,
590 90, 90, 90, 90, 90, 90, 49, 90, 90, 57,
591 90, 90, 90, 90, 90, 90, 90, 90, 90, 90,
592 90, 90, 90, 90, 90, 90, 90, 90, 90, 90,
593 90, 90, 90, 90, 90, 90, 90, 90, 53, 51,
595 90, 43, 90, 87, 90, 90, 90, 90, 90, 90,
596 90, 90, 90, 90, 90, 90, 90, 90, 90, 90,
597 90, 90, 90, 90, 90, 90, 90, 90, 20, 90,
598 52, 88, 90, 50, 90, 90, 90, 90, 90, 90,
599 90, 76, 90, 90, 80, 90, 90, 90, 90, 90,
600 90, 90, 90, 90, 90, 90, 90, 90, 90, 90,
601 66, 90, 90, 55, 90, 90, 90, 90, 90, 90,
602 90, 90, 90, 90, 90, 65, 90, 90, 90, 90,
603 90, 60, 90, 90, 90, 90, 90, 90, 90, 59,
604 90, 90, 41, 44, 45, 46, 56, 90, 74, 90,
606 90, 58, 90, 90, 90, 90, 62, 90, 90, 61,
607 90, 90, 90, 90, 90, 63, 90, 90, 90, 90,
608 90, 90, 90, 90, 90, 90, 90, 90, 90, 90,
609 90, 90, 90, 90, 90, 90, 90, 90, 90, 89,
610 72, 90, 90, 90, 70, 81, 82, 90, 90, 90,
611 64, 71, 83, 90, 90, 90, 90, 90, 90, 90,
612 90, 90, 90, 90, 90, 90, 90, 90, 77, 90,
613 67, 75, 90, 68, 90, 90, 78, 90, 90, 84,
614 69, 90, 90, 90, 90, 90, 90, 85, 73, 90,
619 static const YY_CHAR yy_ec[256] =
621 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
622 1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
623 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
624 1, 2, 4, 5, 1, 1, 1, 6, 1, 7,
625 8, 1, 9, 1, 1, 1, 1, 10, 11, 12,
626 13, 14, 14, 15, 14, 16, 14, 1, 1, 17,
627 18, 19, 1, 1, 20, 21, 22, 23, 24, 25,
628 1, 26, 27, 1, 28, 29, 30, 31, 32, 33,
629 1, 34, 35, 36, 37, 1, 1, 38, 1, 1,
630 1, 39, 1, 1, 40, 1, 41, 42, 43, 44,
632 45, 46, 47, 48, 49, 1, 50, 51, 52, 53,
633 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
634 64, 1, 1, 65, 1, 1, 1, 1, 1, 1,
635 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
636 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
637 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
638 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
639 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
640 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
641 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
643 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
644 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
645 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
646 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
647 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
651 static const YY_CHAR yy_meta[66] =
653 1, 2, 3, 1, 3, 2, 2, 2, 2, 1,
654 1, 1, 1, 1, 1, 1, 2, 2, 2, 1,
655 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
656 1, 1, 1, 1, 1, 1, 1, 1, 4, 1,
657 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
658 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
662 static const flex_int16_t yy_base[396] =
664 0, 0, 63, 64, 537, 0, 68, 0, 538, 530,
665 538, 538, 538, 62, 69, 538, 538, 516, 55, 57,
666 52, 55, 60, 67, 72, 73, 64, 79, 75, 100,
667 115, 65, 83, 475, 102, 117, 118, 89, 121, 131,
668 482, 467, 0, 538, 538, 0, 133, 538, 167, 179,
669 538, 123, 0, 111, 124, 132, 516, 153, 138, 151,
670 169, 171, 0, 172, 170, 178, 171, 0, 129, 515,
671 517, 0, 469, 466, 0, 0, 485, 0, 183, 466,
672 41, 471, 186, 475, 482, 183, 480, 538, 0, 0,
673 0, 0, 0, 184, 0, 187, 189, 207, 0, 0,
675 206, 218, 0, 208, 215, 0, 0, 479, 466, 474,
676 466, 466, 194, 461, 455, 469, 461, 462, 469, 228,
677 456, 455, 0, 0, 0, 0, 226, 213, 0, 217,
678 456, 465, 464, 459, 0, 458, 438, 0, 447, 446,
679 458, 452, 439, 204, 442, 438, 237, 453, 444, 451,
680 434, 249, 236, 426, 199, 445, 0, 220, 0, 227,
681 443, 435, 425, 432, 431, 428, 0, 430, 423, 0,
682 432, 429, 427, 417, 419, 423, 417, 415, 419, 408,
683 208, 409, 152, 424, 408, 414, 406, 421, 423, 408,
684 417, 412, 415, 235, 261, 406, 413, 410, 0, 0,
686 411, 0, 397, 0, 414, 399, 399, 411, 401, 387,
687 400, 400, 406, 391, 385, 257, 400, 384, 389, 381,
688 395, 379, 258, 378, 391, 383, 375, 370, 0, 262,
689 0, 0, 392, 0, 382, 388, 386, 384, 371, 375,
690 384, 0, 379, 382, 0, 368, 365, 360, 365, 369,
691 364, 371, 375, 369, 361, 368, 355, 350, 360, 363,
692 0, 367, 361, 0, 266, 294, 361, 363, 345, 362,
693 350, 336, 342, 341, 354, 0, 345, 349, 332, 341,
694 333, 0, 350, 350, 331, 334, 336, 340, 333, 0,
695 266, 344, 0, 0, 0, 0, 0, 340, 0, 333,
697 336, 0, 336, 320, 328, 332, 0, 335, 330, 0,
698 323, 330, 325, 309, 325, 0, 324, 317, 307, 311,
699 315, 318, 310, 322, 312, 320, 306, 299, 303, 305,
700 314, 314, 300, 299, 297, 299, 304, 303, 296, 0,
701 0, 305, 293, 302, 0, 0, 0, 289, 287, 287,
702 0, 0, 0, 286, 279, 285, 283, 285, 287, 290,
703 281, 265, 275, 277, 273, 270, 266, 261, 0, 268,
704 0, 0, 264, 0, 265, 214, 0, 207, 209, 0,
705 0, 205, 170, 109, 93, 75, 53, 0, 0, 57,
706 0, 538, 325, 329, 333
710 static const flex_int16_t yy_def[396] =
712 392, 1, 393, 393, 392, 394, 392, 394, 392, 392,
713 392, 392, 392, 394, 394, 392, 392, 392, 394, 394,
714 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
715 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
716 394, 392, 395, 392, 392, 394, 392, 392, 394, 394,
717 392, 394, 394, 394, 394, 394, 394, 394, 394, 394,
718 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
719 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
720 394, 394, 394, 394, 394, 394, 394, 392, 395, 50,
721 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
723 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
724 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
725 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
726 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
727 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
728 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
729 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
730 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
731 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
732 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
734 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
735 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
736 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
737 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
738 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
739 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
740 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
741 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
742 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
743 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
745 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
746 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
747 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
748 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
749 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
750 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
751 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
752 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
753 394, 394, 394, 394, 394, 394, 394, 394, 394, 394,
754 394, 0, 392, 392, 392
758 static const flex_int16_t yy_nxt[604] =
760 6, 7, 7, 8, 9, 10, 11, 12, 13, 14,
761 15, 15, 15, 15, 15, 15, 16, 17, 18, 19,
762 6, 20, 6, 21, 22, 6, 23, 6, 24, 25,
763 26, 27, 28, 6, 29, 30, 31, 6, 6, 6,
764 19, 6, 20, 32, 33, 22, 34, 6, 23, 6,
765 35, 36, 26, 27, 37, 6, 38, 39, 40, 31,
766 41, 6, 6, 6, 42, 44, 44, 45, 45, 47,
767 47, 49, 49, 49, 49, 49, 49, 49, 49, 49,
768 49, 49, 49, 49, 49, 52, 54, 55, 56, 114,
769 53, 59, 57, 58, 115, 60, 61, 63, 64, 50,
771 65, 44, 44, 391, 62, 73, 390, 52, 54, 74,
772 55, 56, 59, 53, 57, 58, 60, 61, 55, 64,
773 63, 66, 65, 67, 50, 70, 62, 71, 58, 82,
774 72, 68, 389, 69, 47, 47, 59, 64, 75, 388,
775 60, 55, 66, 92, 67, 91, 65, 83, 105, 93,
776 58, 84, 66, 68, 67, 77, 69, 79, 64, 387,
777 78, 60, 68, 94, 69, 92, 91, 80, 65, 105,
778 85, 93, 97, 86, 81, 67, 49, 49, 49, 49,
779 49, 49, 49, 96, 68, 94, 98, 69, 90, 90,
780 90, 90, 90, 90, 90, 97, 102, 217, 90, 90,
782 90, 90, 90, 90, 99, 96, 100, 101, 104, 98,
783 103, 218, 386, 123, 124, 103, 125, 97, 102, 90,
784 90, 90, 90, 90, 90, 111, 126, 99, 117, 100,
785 101, 121, 103, 104, 118, 123, 124, 103, 125, 112,
786 97, 127, 128, 129, 136, 130, 172, 126, 159, 158,
787 191, 160, 137, 194, 173, 192, 214, 385, 384, 195,
788 383, 215, 382, 128, 127, 229, 129, 130, 144, 145,
789 158, 159, 146, 147, 160, 148, 194, 176, 149, 150,
790 186, 195, 151, 187, 152, 153, 154, 229, 188, 155,
791 177, 182, 230, 183, 189, 265, 247, 257, 248, 258,
793 184, 293, 185, 294, 295, 296, 318, 249, 381, 380,
794 379, 378, 377, 376, 230, 250, 259, 375, 265, 374,
795 373, 319, 372, 371, 293, 43, 43, 43, 43, 46,
796 370, 369, 46, 89, 89, 368, 367, 366, 365, 364,
797 363, 362, 361, 360, 359, 358, 357, 356, 355, 354,
798 353, 352, 351, 350, 349, 348, 347, 346, 345, 344,
799 343, 342, 341, 340, 339, 338, 337, 336, 335, 334,
800 333, 332, 331, 330, 329, 328, 327, 326, 325, 324,
801 323, 322, 321, 320, 317, 316, 315, 314, 313, 312,
802 311, 310, 309, 308, 307, 306, 305, 304, 303, 302,
804 301, 300, 299, 298, 297, 292, 291, 290, 289, 288,
805 287, 286, 285, 284, 283, 282, 281, 280, 279, 278,
806 277, 276, 275, 274, 273, 272, 271, 270, 269, 268,
807 267, 266, 264, 263, 262, 261, 260, 256, 255, 254,
808 253, 252, 251, 246, 245, 244, 243, 242, 241, 240,
809 239, 238, 237, 236, 235, 234, 233, 232, 231, 228,
810 227, 226, 225, 224, 223, 222, 221, 220, 219, 216,
811 213, 212, 211, 210, 209, 208, 207, 206, 205, 204,
812 203, 202, 201, 200, 199, 198, 197, 196, 193, 190,
813 181, 180, 179, 178, 175, 174, 171, 170, 169, 168,
815 167, 166, 165, 164, 163, 162, 161, 157, 156, 143,
816 142, 141, 140, 139, 138, 135, 134, 133, 132, 131,
817 122, 120, 119, 116, 113, 110, 109, 108, 107, 106,
818 95, 88, 87, 76, 51, 48, 392, 5, 392, 392,
819 392, 392, 392, 392, 392, 392, 392, 392, 392, 392,
820 392, 392, 392, 392, 392, 392, 392, 392, 392, 392,
821 392, 392, 392, 392, 392, 392, 392, 392, 392, 392,
822 392, 392, 392, 392, 392, 392, 392, 392, 392, 392,
823 392, 392, 392, 392, 392, 392, 392, 392, 392, 392,
824 392, 392, 392, 392, 392, 392, 392, 392, 392, 392,
829 static const flex_int16_t yy_chk[604] =
831 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
832 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
833 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
834 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
835 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
836 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
837 1, 1, 1, 1, 1, 3, 4, 3, 4, 7,
838 7, 14, 14, 14, 14, 14, 14, 14, 15, 15,
839 15, 15, 15, 15, 15, 19, 20, 21, 22, 81,
840 19, 25, 23, 24, 81, 25, 26, 27, 28, 14,
842 29, 3, 4, 390, 26, 32, 387, 19, 20, 32,
843 21, 22, 25, 19, 23, 24, 25, 26, 33, 28,
844 27, 30, 29, 30, 14, 31, 26, 31, 35, 38,
845 31, 30, 386, 30, 47, 47, 36, 37, 33, 385,
846 36, 33, 30, 54, 30, 52, 39, 38, 69, 55,
847 35, 38, 40, 30, 40, 35, 30, 36, 37, 384,
848 35, 36, 40, 56, 40, 54, 52, 37, 39, 69,
849 39, 55, 59, 40, 37, 40, 49, 49, 49, 49,
850 49, 49, 49, 58, 40, 56, 60, 40, 50, 50,
851 50, 50, 50, 50, 50, 59, 65, 183, 50, 50,
853 50, 50, 50, 50, 61, 58, 62, 64, 67, 60,
854 66, 183, 383, 94, 96, 86, 97, 79, 65, 50,
855 50, 50, 50, 50, 50, 79, 98, 61, 83, 62,
856 64, 86, 66, 67, 83, 94, 96, 86, 97, 79,
857 79, 101, 102, 104, 113, 105, 144, 98, 128, 127,
858 155, 130, 113, 158, 144, 155, 181, 382, 379, 160,
859 378, 181, 376, 102, 101, 194, 104, 105, 120, 120,
860 127, 128, 120, 120, 130, 120, 158, 147, 120, 120,
861 153, 160, 120, 153, 120, 120, 120, 194, 153, 120,
862 147, 152, 195, 152, 153, 230, 216, 223, 216, 223,
864 152, 265, 152, 266, 266, 266, 291, 216, 375, 373,
865 370, 368, 367, 366, 195, 216, 223, 365, 230, 364,
866 363, 291, 362, 361, 265, 393, 393, 393, 393, 394,
867 360, 359, 394, 395, 395, 358, 357, 356, 355, 354,
868 350, 349, 348, 344, 343, 342, 339, 338, 337, 336,
869 335, 334, 333, 332, 331, 330, 329, 328, 327, 326,
870 325, 324, 323, 322, 321, 320, 319, 318, 317, 315,
871 314, 313, 312, 311, 309, 308, 306, 305, 304, 303,
872 301, 300, 298, 292, 289, 288, 287, 286, 285, 284,
873 283, 281, 280, 279, 278, 277, 275, 274, 273, 272,
875 271, 270, 269, 268, 267, 263, 262, 260, 259, 258,
876 257, 256, 255, 254, 253, 252, 251, 250, 249, 248,
877 247, 246, 244, 243, 241, 240, 239, 238, 237, 236,
878 235, 233, 228, 227, 226, 225, 224, 222, 221, 220,
879 219, 218, 217, 215, 214, 213, 212, 211, 210, 209,
880 208, 207, 206, 205, 203, 201, 198, 197, 196, 193,
881 192, 191, 190, 189, 188, 187, 186, 185, 184, 182,
882 180, 179, 178, 177, 176, 175, 174, 173, 172, 171,
883 169, 168, 166, 165, 164, 163, 162, 161, 156, 154,
884 151, 150, 149, 148, 146, 145, 143, 142, 141, 140,
886 139, 137, 136, 134, 133, 132, 131, 122, 121, 119,
887 118, 117, 116, 115, 114, 112, 111, 110, 109, 108,
888 87, 85, 84, 82, 80, 77, 74, 73, 71, 70,
889 57, 42, 41, 34, 18, 10, 5, 392, 392, 392,
890 392, 392, 392, 392, 392, 392, 392, 392, 392, 392,
891 392, 392, 392, 392, 392, 392, 392, 392, 392, 392,
892 392, 392, 392, 392, 392, 392, 392, 392, 392, 392,
893 392, 392, 392, 392, 392, 392, 392, 392, 392, 392,
894 392, 392, 392, 392, 392, 392, 392, 392, 392, 392,
895 392, 392, 392, 392, 392, 392, 392, 392, 392, 392,
903 #define REJECT reject_used_but_not_detected 904 #define yymore() yymore_used_but_not_detected 905 #define YY_MORE_ADJ 0 906 #define YY_RESTORE_YY_MORE_OFFSET 907 #line 1 "lib/route/cls/ematch_grammar.l" 918 #line 13 "lib/route/cls/ematch_grammar.l" 919 #include <netlink-private/netlink.h> 920 #include <netlink-private/tc.h> 921 #include <netlink/netlink.h> 922 #include <netlink/route/cls/ematch.h> 923 #include <netlink/route/cls/ematch/cmp.h> 924 #include <linux/tc_ematch/tc_em_cmp.h> 925 #include "ematch_syntax.h" 927 int ematch_get_column(yyscan_t);
928 void ematch_set_column(
int, yyscan_t);
929 #line 929 "lib/route/cls/ematch_grammar.c" 930 #define YY_NO_INPUT 1 932 #line 932 "lib/route/cls/ematch_grammar.c" 937 #ifndef YY_NO_UNISTD_H 945 #ifndef YY_EXTRA_TYPE 946 #define YY_EXTRA_TYPE void * 954 YY_EXTRA_TYPE yyextra_r;
957 FILE *yyin_r, *yyout_r;
967 int yy_did_buffer_switch_on_eof;
968 int yy_start_stack_ptr;
969 int yy_start_stack_depth;
971 yy_state_type yy_last_accepting_state;
972 char* yy_last_accepting_cpos;
985 static int yy_init_globals ( yyscan_t yyscanner );
989 # define yylval yyg->yylval_r 991 int yylex_init (yyscan_t* scanner);
993 int yylex_init_extra ( YY_EXTRA_TYPE user_defined, yyscan_t* scanner);
998 int yylex_destroy ( yyscan_t yyscanner );
1000 int yyget_debug ( yyscan_t yyscanner );
1002 void yyset_debug (
int debug_flag , yyscan_t yyscanner );
1004 YY_EXTRA_TYPE yyget_extra ( yyscan_t yyscanner );
1006 void yyset_extra ( YY_EXTRA_TYPE user_defined , yyscan_t yyscanner );
1008 FILE *yyget_in ( yyscan_t yyscanner );
1010 void yyset_in ( FILE * _in_str , yyscan_t yyscanner );
1012 FILE *yyget_out ( yyscan_t yyscanner );
1014 void yyset_out ( FILE * _out_str , yyscan_t yyscanner );
1016 int yyget_leng ( yyscan_t yyscanner );
1018 char *yyget_text ( yyscan_t yyscanner );
1020 int yyget_lineno ( yyscan_t yyscanner );
1022 void yyset_lineno (
int _line_number , yyscan_t yyscanner );
1024 int yyget_column ( yyscan_t yyscanner );
1026 void yyset_column (
int _column_no , yyscan_t yyscanner );
1028 YYSTYPE * yyget_lval ( yyscan_t yyscanner );
1030 void yyset_lval (
YYSTYPE * yylval_param , yyscan_t yyscanner );
1036 #ifndef YY_SKIP_YYWRAP 1038 extern "C" int yywrap ( yyscan_t yyscanner );
1040 extern int yywrap ( yyscan_t yyscanner );
1049 static void yy_flex_strncpy (
char *,
const char *,
int , yyscan_t yyscanner);
1052 #ifdef YY_NEED_STRLEN 1053 static int yy_flex_strlen (
const char * , yyscan_t yyscanner);
1058 static int yyinput ( yyscan_t yyscanner );
1060 static int input ( yyscan_t yyscanner );
1066 #ifndef YY_READ_BUF_SIZE 1069 #define YY_READ_BUF_SIZE 16384 1071 #define YY_READ_BUF_SIZE 8192 1080 #define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0) 1087 #define YY_INPUT(buf,result,max_size) \ 1088 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ 1092 for ( n = 0; n < max_size && \ 1093 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ 1094 buf[n] = (char) c; \ 1096 buf[n++] = (char) c; \ 1097 if ( c == EOF && ferror( yyin ) ) \ 1098 YY_FATAL_ERROR( "input in flex scanner failed" ); \ 1104 while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \ 1106 if( errno != EINTR) \ 1108 YY_FATAL_ERROR( "input in flex scanner failed" ); \ 1124 #define yyterminate() return YY_NULL 1128 #ifndef YY_START_STACK_INCR 1129 #define YY_START_STACK_INCR 25 1133 #ifndef YY_FATAL_ERROR 1134 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner) 1143 #define YY_DECL_IS_OURS 1 1146 (
YYSTYPE * yylval_param , yyscan_t yyscanner);
1148 #define YY_DECL int yylex \ 1149 (YYSTYPE * yylval_param , yyscan_t yyscanner) 1155 #ifndef YY_USER_ACTION 1156 #define YY_USER_ACTION 1161 #define YY_BREAK break; 1164 #define YY_RULE_SETUP \ 1171 yy_state_type yy_current_state;
1172 char *yy_cp, *yy_bp;
1176 yylval = yylval_param;
1178 if ( !yyg->yy_init )
1186 if ( ! yyg->yy_start )
1195 if ( ! YY_CURRENT_BUFFER ) {
1196 yyensure_buffer_stack (yyscanner);
1197 YY_CURRENT_BUFFER_LVALUE =
1198 yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
1201 yy_load_buffer_state( yyscanner );
1205 #line 36 "lib/route/cls/ematch_grammar.l" 1208 #line 1208 "lib/route/cls/ematch_grammar.c" 1212 yy_cp = yyg->yy_c_buf_p;
1215 *yy_cp = yyg->yy_hold_char;
1222 yy_current_state = yyg->yy_start;
1226 YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
1227 if ( yy_accept[yy_current_state] )
1229 yyg->yy_last_accepting_state = yy_current_state;
1230 yyg->yy_last_accepting_cpos = yy_cp;
1232 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1234 yy_current_state = (int) yy_def[yy_current_state];
1235 if ( yy_current_state >= 393 )
1236 yy_c = yy_meta[yy_c];
1238 yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
1241 while ( yy_base[yy_current_state] != 538 );
1244 yy_act = yy_accept[yy_current_state];
1247 yy_cp = yyg->yy_last_accepting_cpos;
1248 yy_current_state = yyg->yy_last_accepting_state;
1249 yy_act = yy_accept[yy_current_state];
1252 YY_DO_BEFORE_ACTION;
1260 *yy_cp = yyg->yy_hold_char;
1261 yy_cp = yyg->yy_last_accepting_cpos;
1262 yy_current_state = yyg->yy_last_accepting_state;
1263 goto yy_find_action;
1268 #line 38 "lib/route/cls/ematch_grammar.l" 1273 #line 40 "lib/route/cls/ematch_grammar.l" 1275 NL_DBG(4,
"Beginning of quote\n");
1277 if (!(yylval->q.data = calloc(1, yylval->q.len)))
1280 yylval->q.index = 0;
1286 #line 50 "lib/route/cls/ematch_grammar.l" 1288 memcpy(yylval->q.data + yylval->q.index, yytext,
1290 yylval->q.index += strlen(yytext);
1295 #line 56 "lib/route/cls/ematch_grammar.l" 1302 #line 63 "lib/route/cls/ematch_grammar.l" 1305 #line 63 "lib/route/cls/ematch_grammar.l" 1307 yylval->i = strtoul(yytext, NULL, 0);
1312 #line 69 "lib/route/cls/ematch_grammar.l" 1315 #line 69 "lib/route/cls/ematch_grammar.l" 1319 #line 71 "lib/route/cls/ematch_grammar.l" 1322 #line 71 "lib/route/cls/ematch_grammar.l" 1326 #line 73 "lib/route/cls/ematch_grammar.l" 1329 #line 73 "lib/route/cls/ematch_grammar.l" 1333 #line 76 "lib/route/cls/ematch_grammar.l" 1336 #line 76 "lib/route/cls/ematch_grammar.l" 1337 { yylval->i = TCF_EM_REL_AND;
return LOGIC; }
1340 #line 78 "lib/route/cls/ematch_grammar.l" 1343 #line 78 "lib/route/cls/ematch_grammar.l" 1344 { yylval->i = TCF_EM_REL_OR;
return LOGIC; }
1347 #line 80 "lib/route/cls/ematch_grammar.l" 1350 #line 80 "lib/route/cls/ematch_grammar.l" 1355 #line 82 "lib/route/cls/ematch_grammar.l" 1356 { yylval->i = TCF_EM_CMP;
return EMATCH_CMP; }
1360 #line 83 "lib/route/cls/ematch_grammar.l" 1361 { yylval->i = TCF_EM_NBYTE;
return EMATCH_NBYTE; }
1365 #line 84 "lib/route/cls/ematch_grammar.l" 1366 { yylval->i = TCF_EM_TEXT;
return EMATCH_TEXT; }
1370 #line 85 "lib/route/cls/ematch_grammar.l" 1371 { yylval->i = TCF_EM_META;
return EMATCH_META; }
1375 #line 87 "lib/route/cls/ematch_grammar.l" 1380 #line 88 "lib/route/cls/ematch_grammar.l" 1384 #line 90 "lib/route/cls/ematch_grammar.l" 1387 #line 90 "lib/route/cls/ematch_grammar.l" 1391 #line 92 "lib/route/cls/ematch_grammar.l" 1394 #line 92 "lib/route/cls/ematch_grammar.l" 1399 #line 93 "lib/route/cls/ematch_grammar.l" 1404 #line 94 "lib/route/cls/ematch_grammar.l" 1409 #line 95 "lib/route/cls/ematch_grammar.l" 1414 #line 96 "lib/route/cls/ematch_grammar.l" 1419 #line 98 "lib/route/cls/ematch_grammar.l" 1420 { yylval->i = TCF_EM_ALIGN_U8;
return ALIGN; }
1424 #line 99 "lib/route/cls/ematch_grammar.l" 1425 { yylval->i = TCF_EM_ALIGN_U16;
return ALIGN; }
1429 #line 100 "lib/route/cls/ematch_grammar.l" 1430 { yylval->i = TCF_EM_ALIGN_U32;
return ALIGN; }
1433 #line 103 "lib/route/cls/ematch_grammar.l" 1436 #line 103 "lib/route/cls/ematch_grammar.l" 1437 { yylval->i = TCF_LAYER_LINK;
return LAYER; }
1440 #line 105 "lib/route/cls/ematch_grammar.l" 1442 #line 106 "lib/route/cls/ematch_grammar.l" 1445 #line 106 "lib/route/cls/ematch_grammar.l" 1446 { yylval->i = TCF_LAYER_NETWORK;
return LAYER; }
1449 #line 108 "lib/route/cls/ematch_grammar.l" 1452 #line 108 "lib/route/cls/ematch_grammar.l" 1453 { yylval->i = TCF_LAYER_TRANSPORT;
return LAYER; }
1457 #line 110 "lib/route/cls/ematch_grammar.l" 1462 #line 111 "lib/route/cls/ematch_grammar.l" 1463 return META_LOADAVG_0;
1467 #line 112 "lib/route/cls/ematch_grammar.l" 1468 return META_LOADAVG_1;
1472 #line 113 "lib/route/cls/ematch_grammar.l" 1473 return META_LOADAVG_2;
1477 #line 114 "lib/route/cls/ematch_grammar.l" 1482 #line 115 "lib/route/cls/ematch_grammar.l" 1487 #line 116 "lib/route/cls/ematch_grammar.l" 1492 #line 117 "lib/route/cls/ematch_grammar.l" 1493 return META_PKTTYPE;
1497 #line 118 "lib/route/cls/ematch_grammar.l" 1502 #line 119 "lib/route/cls/ematch_grammar.l" 1503 return META_DATALEN;
1507 #line 120 "lib/route/cls/ematch_grammar.l" 1512 #line 121 "lib/route/cls/ematch_grammar.l" 1517 #line 122 "lib/route/cls/ematch_grammar.l" 1518 return META_TCINDEX;
1522 #line 123 "lib/route/cls/ematch_grammar.l" 1523 return META_RTCLASSID;
1527 #line 124 "lib/route/cls/ematch_grammar.l" 1532 #line 125 "lib/route/cls/ematch_grammar.l" 1533 return META_SK_FAMILY;
1537 #line 126 "lib/route/cls/ematch_grammar.l" 1538 return META_SK_STATE;
1542 #line 127 "lib/route/cls/ematch_grammar.l" 1543 return META_SK_REUSE;
1547 #line 128 "lib/route/cls/ematch_grammar.l" 1548 return META_SK_REFCNT;
1552 #line 129 "lib/route/cls/ematch_grammar.l" 1553 return META_SK_RCVBUF;
1557 #line 130 "lib/route/cls/ematch_grammar.l" 1558 return META_SK_SNDBUF;
1562 #line 131 "lib/route/cls/ematch_grammar.l" 1563 return META_SK_SHUTDOWN;
1567 #line 132 "lib/route/cls/ematch_grammar.l" 1568 return META_SK_PROTO;
1572 #line 133 "lib/route/cls/ematch_grammar.l" 1573 return META_SK_TYPE;
1577 #line 134 "lib/route/cls/ematch_grammar.l" 1578 return META_SK_RMEM_ALLOC;
1582 #line 135 "lib/route/cls/ematch_grammar.l" 1583 return META_SK_WMEM_ALLOC;
1587 #line 136 "lib/route/cls/ematch_grammar.l" 1588 return META_SK_WMEM_QUEUED;
1592 #line 137 "lib/route/cls/ematch_grammar.l" 1593 return META_SK_RCV_QLEN;
1597 #line 138 "lib/route/cls/ematch_grammar.l" 1598 return META_SK_SND_QLEN;
1602 #line 139 "lib/route/cls/ematch_grammar.l" 1603 return META_SK_ERR_QLEN;
1607 #line 140 "lib/route/cls/ematch_grammar.l" 1608 return META_SK_FORWARD_ALLOCS;
1612 #line 141 "lib/route/cls/ematch_grammar.l" 1613 return META_SK_ALLOCS;
1617 #line 142 "lib/route/cls/ematch_grammar.l" 1618 return META_SK_ROUTE_CAPS;
1622 #line 143 "lib/route/cls/ematch_grammar.l" 1623 return META_SK_HASH;
1627 #line 144 "lib/route/cls/ematch_grammar.l" 1628 return META_SK_LINGERTIME;
1632 #line 145 "lib/route/cls/ematch_grammar.l" 1633 return META_SK_ACK_BACKLOG;
1637 #line 146 "lib/route/cls/ematch_grammar.l" 1638 return META_SK_MAX_ACK_BACKLOG;
1642 #line 147 "lib/route/cls/ematch_grammar.l" 1643 return META_SK_PRIO;
1647 #line 148 "lib/route/cls/ematch_grammar.l" 1648 return META_SK_RCVLOWAT;
1652 #line 149 "lib/route/cls/ematch_grammar.l" 1653 return META_SK_RCVTIMEO;
1657 #line 150 "lib/route/cls/ematch_grammar.l" 1658 return META_SK_SNDTIMEO;
1662 #line 151 "lib/route/cls/ematch_grammar.l" 1663 return META_SK_SENDMSG_OFF;
1667 #line 152 "lib/route/cls/ematch_grammar.l" 1668 return META_SK_WRITE_PENDING;
1672 #line 153 "lib/route/cls/ematch_grammar.l" 1677 #line 154 "lib/route/cls/ematch_grammar.l" 1682 #line 156 "lib/route/cls/ematch_grammar.l" 1683 return META_DEVNAME;
1687 #line 157 "lib/route/cls/ematch_grammar.l" 1688 return META_SK_BOUND_IF;
1692 #line 160 "lib/route/cls/ematch_grammar.l" 1694 yylval->s = strdup(yytext);
1695 if (yylval->s == NULL)
1697 NL_DBG(4,
"lex STR=%s\n", yylval->s);
1703 #line 167 "lib/route/cls/ematch_grammar.l" 1706 #line 1706 "lib/route/cls/ematch_grammar.c" 1707 case YY_STATE_EOF(INITIAL):
1708 case YY_STATE_EOF(QUOTE):
1711 case YY_END_OF_BUFFER:
1714 int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1;
1717 *yy_cp = yyg->yy_hold_char;
1718 YY_RESTORE_YY_MORE_OFFSET
1720 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
1731 yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1732 YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
1733 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
1743 if ( yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
1745 yy_state_type yy_next_state;
1747 yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text;
1749 yy_current_state = yy_get_previous_state( yyscanner );
1760 yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner);
1762 yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
1764 if ( yy_next_state )
1767 yy_cp = ++yyg->yy_c_buf_p;
1768 yy_current_state = yy_next_state;
1774 yy_cp = yyg->yy_c_buf_p;
1775 goto yy_find_action;
1779 else switch ( yy_get_next_buffer( yyscanner ) )
1781 case EOB_ACT_END_OF_FILE:
1783 yyg->yy_did_buffer_switch_on_eof = 0;
1785 if ( yywrap( yyscanner ) )
1796 yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ;
1798 yy_act = YY_STATE_EOF(YY_START);
1804 if ( ! yyg->yy_did_buffer_switch_on_eof )
1810 case EOB_ACT_CONTINUE_SCAN:
1812 yyg->yytext_ptr + yy_amount_of_matched_text;
1814 yy_current_state = yy_get_previous_state( yyscanner );
1816 yy_cp = yyg->yy_c_buf_p;
1817 yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
1820 case EOB_ACT_LAST_MATCH:
1822 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars];
1824 yy_current_state = yy_get_previous_state( yyscanner );
1826 yy_cp = yyg->yy_c_buf_p;
1827 yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
1828 goto yy_find_action;
1835 "fatal flex scanner internal error--no action found" );
1848 static int yy_get_next_buffer (yyscan_t yyscanner)
1851 char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
1852 char *source = yyg->yytext_ptr;
1853 int number_to_move, i;
1856 if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] )
1858 "fatal flex scanner internal error--end of buffer missed" );
1860 if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
1862 if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 )
1867 return EOB_ACT_END_OF_FILE;
1875 return EOB_ACT_LAST_MATCH;
1882 number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr - 1);
1884 for ( i = 0; i < number_to_move; ++i )
1885 *(dest++) = *(source++);
1887 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1891 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0;
1896 YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1898 while ( num_to_read <= 0 )
1904 int yy_c_buf_p_offset =
1905 (int) (yyg->yy_c_buf_p - b->yy_ch_buf);
1907 if ( b->yy_is_our_buffer )
1909 int new_size = b->yy_buf_size * 2;
1911 if ( new_size <= 0 )
1912 b->yy_buf_size += b->yy_buf_size / 8;
1914 b->yy_buf_size *= 2;
1916 b->yy_ch_buf = (
char *)
1918 yyrealloc( (
void *) b->yy_ch_buf,
1919 (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
1923 b->yy_ch_buf = NULL;
1925 if ( ! b->yy_ch_buf )
1927 "fatal error - scanner input buffer overflow" );
1929 yyg->yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
1931 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
1936 if ( num_to_read > YY_READ_BUF_SIZE )
1937 num_to_read = YY_READ_BUF_SIZE;
1940 YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
1941 yyg->yy_n_chars, num_to_read );
1943 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
1946 if ( yyg->yy_n_chars == 0 )
1948 if ( number_to_move == YY_MORE_ADJ )
1950 ret_val = EOB_ACT_END_OF_FILE;
1951 yyrestart( yyin , yyscanner);
1956 ret_val = EOB_ACT_LAST_MATCH;
1957 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
1958 YY_BUFFER_EOF_PENDING;
1963 ret_val = EOB_ACT_CONTINUE_SCAN;
1965 if ((yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
1967 int new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1);
1968 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (
char *) yyrealloc(
1969 (
void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size , yyscanner );
1970 if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1971 YY_FATAL_ERROR(
"out of dynamic memory in yy_get_next_buffer()" );
1973 YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
1976 yyg->yy_n_chars += number_to_move;
1977 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR;
1978 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
1980 yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
1987 static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
1989 yy_state_type yy_current_state;
1993 yy_current_state = yyg->yy_start;
1995 for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
1997 YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1998 if ( yy_accept[yy_current_state] )
2000 yyg->yy_last_accepting_state = yy_current_state;
2001 yyg->yy_last_accepting_cpos = yy_cp;
2003 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2005 yy_current_state = (int) yy_def[yy_current_state];
2006 if ( yy_current_state >= 393 )
2007 yy_c = yy_meta[yy_c];
2009 yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
2012 return yy_current_state;
2020 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner)
2024 char *yy_cp = yyg->yy_c_buf_p;
2027 if ( yy_accept[yy_current_state] )
2029 yyg->yy_last_accepting_state = yy_current_state;
2030 yyg->yy_last_accepting_cpos = yy_cp;
2032 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2034 yy_current_state = (int) yy_def[yy_current_state];
2035 if ( yy_current_state >= 393 )
2036 yy_c = yy_meta[yy_c];
2038 yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
2039 yy_is_jam = (yy_current_state == 392);
2042 return yy_is_jam ? 0 : yy_current_state;
2051 static int yyinput (yyscan_t yyscanner)
2053 static int input (yyscan_t yyscanner)
2060 *yyg->yy_c_buf_p = yyg->yy_hold_char;
2062 if ( *yyg->yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
2068 if ( yyg->yy_c_buf_p < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
2070 *yyg->yy_c_buf_p =
'\0';
2074 int offset = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr);
2077 switch ( yy_get_next_buffer( yyscanner ) )
2079 case EOB_ACT_LAST_MATCH:
2091 yyrestart( yyin , yyscanner);
2095 case EOB_ACT_END_OF_FILE:
2097 if ( yywrap( yyscanner ) )
2100 if ( ! yyg->yy_did_buffer_switch_on_eof )
2103 return yyinput(yyscanner);
2105 return input(yyscanner);
2109 case EOB_ACT_CONTINUE_SCAN:
2110 yyg->yy_c_buf_p = yyg->yytext_ptr + offset;
2116 c = *(
unsigned char *) yyg->yy_c_buf_p;
2117 *yyg->yy_c_buf_p =
'\0';
2118 yyg->yy_hold_char = *++yyg->yy_c_buf_p;
2129 void yyrestart (FILE * input_file , yyscan_t yyscanner)
2133 if ( ! YY_CURRENT_BUFFER ){
2134 yyensure_buffer_stack (yyscanner);
2135 YY_CURRENT_BUFFER_LVALUE =
2136 yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner);
2139 yy_init_buffer( YY_CURRENT_BUFFER, input_file , yyscanner);
2140 yy_load_buffer_state( yyscanner );
2147 void yy_switch_to_buffer (
YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
2156 yyensure_buffer_stack (yyscanner);
2157 if ( YY_CURRENT_BUFFER == new_buffer )
2160 if ( YY_CURRENT_BUFFER )
2163 *yyg->yy_c_buf_p = yyg->yy_hold_char;
2164 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
2165 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
2168 YY_CURRENT_BUFFER_LVALUE = new_buffer;
2169 yy_load_buffer_state( yyscanner );
2176 yyg->yy_did_buffer_switch_on_eof = 1;
2179 static void yy_load_buffer_state (yyscan_t yyscanner)
2182 yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
2183 yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
2184 yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
2185 yyg->yy_hold_char = *yyg->yy_c_buf_p;
2194 YY_BUFFER_STATE yy_create_buffer (FILE * file,
int size , yyscan_t yyscanner)
2200 YY_FATAL_ERROR(
"out of dynamic memory in yy_create_buffer()" );
2202 b->yy_buf_size = size;
2207 b->yy_ch_buf = (
char *)
yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner );
2208 if ( ! b->yy_ch_buf )
2209 YY_FATAL_ERROR(
"out of dynamic memory in yy_create_buffer()" );
2211 b->yy_is_our_buffer = 1;
2213 yy_init_buffer( b, file , yyscanner);
2229 if ( b == YY_CURRENT_BUFFER )
2232 if ( b->yy_is_our_buffer )
2233 yyfree( (
void *) b->yy_ch_buf , yyscanner );
2235 yyfree( (
void *) b , yyscanner );
2242 static void yy_init_buffer (
YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner)
2248 yy_flush_buffer( b , yyscanner);
2250 b->yy_input_file = file;
2251 b->yy_fill_buffer = 1;
2257 if (b != YY_CURRENT_BUFFER){
2262 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
2283 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
2284 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
2286 b->yy_buf_pos = &b->yy_ch_buf[0];
2289 b->yy_buffer_status = YY_BUFFER_NEW;
2291 if ( b == YY_CURRENT_BUFFER )
2292 yy_load_buffer_state( yyscanner );
2301 void yypush_buffer_state (
YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
2304 if (new_buffer == NULL)
2307 yyensure_buffer_stack(yyscanner);
2310 if ( YY_CURRENT_BUFFER )
2313 *yyg->yy_c_buf_p = yyg->yy_hold_char;
2314 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
2315 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
2319 if (YY_CURRENT_BUFFER)
2321 YY_CURRENT_BUFFER_LVALUE = new_buffer;
2324 yy_load_buffer_state( yyscanner );
2325 yyg->yy_did_buffer_switch_on_eof = 1;
2332 void yypop_buffer_state (yyscan_t yyscanner)
2335 if (!YY_CURRENT_BUFFER)
2338 yy_delete_buffer(YY_CURRENT_BUFFER , yyscanner);
2339 YY_CURRENT_BUFFER_LVALUE = NULL;
2343 if (YY_CURRENT_BUFFER) {
2344 yy_load_buffer_state( yyscanner );
2345 yyg->yy_did_buffer_switch_on_eof = 1;
2352 static void yyensure_buffer_stack (yyscan_t yyscanner)
2354 yy_size_t num_to_alloc;
2368 YY_FATAL_ERROR(
"out of dynamic memory in yyensure_buffer_stack()" );
2380 yy_size_t grow_size = 8 ;
2388 YY_FATAL_ERROR(
"out of dynamic memory in yyensure_buffer_stack()" );
2402 YY_BUFFER_STATE yy_scan_buffer (
char * base, yy_size_t size , yyscan_t yyscanner)
2407 base[size-2] != YY_END_OF_BUFFER_CHAR ||
2408 base[size-1] != YY_END_OF_BUFFER_CHAR )
2414 YY_FATAL_ERROR(
"out of dynamic memory in yy_scan_buffer()" );
2416 b->yy_buf_size = (int) (size - 2);
2417 b->yy_buf_pos = b->yy_ch_buf = base;
2418 b->yy_is_our_buffer = 0;
2419 b->yy_input_file = NULL;
2420 b->yy_n_chars = b->yy_buf_size;
2421 b->yy_is_interactive = 0;
2423 b->yy_fill_buffer = 0;
2424 b->yy_buffer_status = YY_BUFFER_NEW;
2426 yy_switch_to_buffer( b , yyscanner );
2439 YY_BUFFER_STATE yy_scan_string (
const char * yystr , yyscan_t yyscanner)
2442 return yy_scan_bytes( yystr, (
int) strlen(yystr) , yyscanner);
2452 YY_BUFFER_STATE yy_scan_bytes (
const char * yybytes,
int _yybytes_len , yyscan_t yyscanner)
2460 n = (yy_size_t) (_yybytes_len + 2);
2461 buf = (
char *)
yyalloc( n , yyscanner );
2463 YY_FATAL_ERROR(
"out of dynamic memory in yy_scan_bytes()" );
2465 for ( i = 0; i < _yybytes_len; ++i )
2466 buf[i] = yybytes[i];
2468 buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
2470 b = yy_scan_buffer( buf, n , yyscanner);
2472 YY_FATAL_ERROR(
"bad buffer in yy_scan_bytes()" );
2477 b->yy_is_our_buffer = 1;
2482 #ifndef YY_EXIT_FAILURE 2483 #define YY_EXIT_FAILURE 2 2486 static void yynoreturn yy_fatal_error (
const char* msg , yyscan_t yyscanner)
2490 fprintf( stderr,
"%s\n", msg );
2491 exit( YY_EXIT_FAILURE );
2501 int yyless_macro_arg = (n); \ 2502 YY_LESS_LINENO(yyless_macro_arg);\ 2503 yytext[yyleng] = yyg->yy_hold_char; \ 2504 yyg->yy_c_buf_p = yytext + yyless_macro_arg; \ 2505 yyg->yy_hold_char = *yyg->yy_c_buf_p; \ 2506 *yyg->yy_c_buf_p = '\0'; \ 2507 yyleng = yyless_macro_arg; \ 2516 YY_EXTRA_TYPE yyget_extra (yyscan_t yyscanner)
2525 int yyget_lineno (yyscan_t yyscanner)
2529 if (! YY_CURRENT_BUFFER)
2538 int yyget_column (yyscan_t yyscanner)
2542 if (! YY_CURRENT_BUFFER)
2551 FILE *yyget_in (yyscan_t yyscanner)
2560 FILE *yyget_out (yyscan_t yyscanner)
2569 int yyget_leng (yyscan_t yyscanner)
2579 char *yyget_text (yyscan_t yyscanner)
2589 void yyset_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner)
2592 yyextra = user_defined ;
2599 void yyset_lineno (
int _line_number , yyscan_t yyscanner)
2604 if (! YY_CURRENT_BUFFER )
2605 YY_FATAL_ERROR(
"yyset_lineno called with no buffer" );
2607 yylineno = _line_number;
2614 void yyset_column (
int _column_no , yyscan_t yyscanner)
2619 if (! YY_CURRENT_BUFFER )
2620 YY_FATAL_ERROR(
"yyset_column called with no buffer" );
2622 yycolumn = _column_no;
2631 void yyset_in (FILE * _in_str , yyscan_t yyscanner)
2637 void yyset_out (FILE * _out_str , yyscan_t yyscanner)
2643 int yyget_debug (yyscan_t yyscanner)
2646 return yy_flex_debug;
2649 void yyset_debug (
int _bdebug , yyscan_t yyscanner)
2652 yy_flex_debug = _bdebug ;
2657 YYSTYPE * yyget_lval (yyscan_t yyscanner)
2663 void yyset_lval (
YYSTYPE * yylval_param , yyscan_t yyscanner)
2666 yylval = yylval_param;
2675 int yylex_init(yyscan_t* ptr_yy_globals)
2677 if (ptr_yy_globals == NULL){
2682 *ptr_yy_globals = (yyscan_t)
yyalloc (
sizeof(
struct yyguts_t ), NULL );
2684 if (*ptr_yy_globals == NULL){
2690 memset(*ptr_yy_globals,0x00,
sizeof(
struct yyguts_t));
2692 return yy_init_globals ( *ptr_yy_globals );
2702 int yylex_init_extra( YY_EXTRA_TYPE yy_user_defined, yyscan_t* ptr_yy_globals )
2706 yyset_extra (yy_user_defined, &dummy_yyguts);
2708 if (ptr_yy_globals == NULL){
2713 *ptr_yy_globals = (yyscan_t)
yyalloc (
sizeof(
struct yyguts_t ), &dummy_yyguts );
2715 if (*ptr_yy_globals == NULL){
2722 memset(*ptr_yy_globals,0x00,
sizeof(
struct yyguts_t));
2724 yyset_extra (yy_user_defined, *ptr_yy_globals);
2726 return yy_init_globals ( *ptr_yy_globals );
2729 static int yy_init_globals (yyscan_t yyscanner)
2739 yyg->yy_c_buf_p = NULL;
2743 yyg->yy_start_stack_ptr = 0;
2744 yyg->yy_start_stack_depth = 0;
2745 yyg->yy_start_stack = NULL;
2763 int yylex_destroy (yyscan_t yyscanner)
2768 while(YY_CURRENT_BUFFER){
2769 yy_delete_buffer( YY_CURRENT_BUFFER , yyscanner );
2770 YY_CURRENT_BUFFER_LVALUE = NULL;
2771 yypop_buffer_state(yyscanner);
2779 yyfree( yyg->yy_start_stack , yyscanner );
2780 yyg->yy_start_stack = NULL;
2784 yy_init_globals( yyscanner);
2787 yyfree ( yyscanner , yyscanner );
2797 static void yy_flex_strncpy (
char* s1,
const char * s2,
int n , yyscan_t yyscanner)
2803 for ( i = 0; i < n; ++i )
2808 #ifdef YY_NEED_STRLEN 2809 static int yy_flex_strlen (
const char * s , yyscan_t yyscanner)
2812 for ( n = 0; s[n]; ++n )
2819 void *
yyalloc (yy_size_t size , yyscan_t yyscanner)
2823 return malloc(size);
2826 void *yyrealloc (
void * ptr, yy_size_t size , yyscan_t yyscanner)
2838 return realloc(ptr, size);
2841 void yyfree (
void * ptr , yyscan_t yyscanner)
2845 free( (
char *) ptr );
2848 #define YYTABLES_NAME "yytables" 2850 #line 167 "lib/route/cls/ematch_grammar.l"
size_t yy_buffer_stack_top
index of top of stack.
int yy_bs_lineno
The line count.
size_t yy_buffer_stack_max
capacity of stack.
int yy_bs_column
The column count.
YY_BUFFER_STATE * yy_buffer_stack
Stack as an array.