Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 1 | #ifndef pcap_HEADER_H |
| 2 | #define pcap_HEADER_H 1 |
| 3 | #define pcap_IN_HEADER 1 |
JP Abgrall | aa5c5f3 | 2014-02-10 20:23:42 -0800 | [diff] [blame] | 4 | |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 5 | #line 6 "scanner.h" |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 6 | /* Must come first for _LARGE_FILE_API on AIX. */ |
| 7 | #ifdef HAVE_CONFIG_H |
Haibo Huang | 165065a | 2018-07-23 17:26:52 -0700 | [diff] [blame] | 8 | #include <config.h> |
Elliott Hughes | d8845d7 | 2015-10-19 18:07:04 -0700 | [diff] [blame] | 9 | #endif |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 10 | |
Haibo Huang | 165065a | 2018-07-23 17:26:52 -0700 | [diff] [blame] | 11 | /* |
| 12 | * Must come first to avoid warnings on Windows. |
| 13 | * |
| 14 | * Flex-generated scanners may only include <inttypes.h> if __STDC_VERSION__ |
| 15 | * is defined with a value >= 199901, meaning "full C99", and MSVC may not |
| 16 | * define it with that value, because it isn't 100% C99-compliant, even |
| 17 | * though it has an <inttypes.h> capable of defining everything the Flex |
| 18 | * scanner needs. |
| 19 | * |
| 20 | * We, however, will include it if we know we have an MSVC version that has |
| 21 | * it; this means that we may define the INTn_MAX and UINTn_MAX values in |
| 22 | * scanner.c, and then include <stdint.h>, which may define them differently |
| 23 | * (same value, but different string of characters), causing compiler warnings. |
| 24 | * |
| 25 | * If we include it here, and they're defined, that'll prevent scanner.c |
| 26 | * from defining them. So we include <pcap/pcap-inttypes.h>, to get |
| 27 | * <inttypes.h> if we have it. |
| 28 | */ |
| 29 | #include <pcap/pcap-inttypes.h> |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 30 | |
Haibo Huang | 165065a | 2018-07-23 17:26:52 -0700 | [diff] [blame] | 31 | #include "diag-control.h" |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 32 | |
Haibo Huang | 165065a | 2018-07-23 17:26:52 -0700 | [diff] [blame] | 33 | #line 34 "scanner.h" |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 34 | |
| 35 | #define YY_INT_ALIGNED short int |
| 36 | |
| 37 | /* A lexical scanner generated by flex */ |
| 38 | |
| 39 | #define FLEX_SCANNER |
| 40 | #define YY_FLEX_MAJOR_VERSION 2 |
Haibo Huang | 165065a | 2018-07-23 17:26:52 -0700 | [diff] [blame] | 41 | #define YY_FLEX_MINOR_VERSION 6 |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 42 | #define YY_FLEX_SUBMINOR_VERSION 4 |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 43 | #if YY_FLEX_SUBMINOR_VERSION > 0 |
| 44 | #define FLEX_BETA |
| 45 | #endif |
| 46 | |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 47 | #ifdef yy_create_buffer |
| 48 | #define pcap__create_buffer_ALREADY_DEFINED |
| 49 | #else |
| 50 | #define yy_create_buffer pcap__create_buffer |
| 51 | #endif |
| 52 | |
| 53 | #ifdef yy_delete_buffer |
| 54 | #define pcap__delete_buffer_ALREADY_DEFINED |
| 55 | #else |
| 56 | #define yy_delete_buffer pcap__delete_buffer |
| 57 | #endif |
| 58 | |
| 59 | #ifdef yy_scan_buffer |
| 60 | #define pcap__scan_buffer_ALREADY_DEFINED |
| 61 | #else |
| 62 | #define yy_scan_buffer pcap__scan_buffer |
| 63 | #endif |
| 64 | |
| 65 | #ifdef yy_scan_string |
| 66 | #define pcap__scan_string_ALREADY_DEFINED |
| 67 | #else |
| 68 | #define yy_scan_string pcap__scan_string |
| 69 | #endif |
| 70 | |
| 71 | #ifdef yy_scan_bytes |
| 72 | #define pcap__scan_bytes_ALREADY_DEFINED |
| 73 | #else |
| 74 | #define yy_scan_bytes pcap__scan_bytes |
| 75 | #endif |
| 76 | |
| 77 | #ifdef yy_init_buffer |
| 78 | #define pcap__init_buffer_ALREADY_DEFINED |
| 79 | #else |
| 80 | #define yy_init_buffer pcap__init_buffer |
| 81 | #endif |
| 82 | |
| 83 | #ifdef yy_flush_buffer |
| 84 | #define pcap__flush_buffer_ALREADY_DEFINED |
| 85 | #else |
| 86 | #define yy_flush_buffer pcap__flush_buffer |
| 87 | #endif |
| 88 | |
| 89 | #ifdef yy_load_buffer_state |
| 90 | #define pcap__load_buffer_state_ALREADY_DEFINED |
| 91 | #else |
| 92 | #define yy_load_buffer_state pcap__load_buffer_state |
| 93 | #endif |
| 94 | |
| 95 | #ifdef yy_switch_to_buffer |
| 96 | #define pcap__switch_to_buffer_ALREADY_DEFINED |
| 97 | #else |
| 98 | #define yy_switch_to_buffer pcap__switch_to_buffer |
| 99 | #endif |
| 100 | |
| 101 | #ifdef yypush_buffer_state |
| 102 | #define pcap_push_buffer_state_ALREADY_DEFINED |
| 103 | #else |
| 104 | #define yypush_buffer_state pcap_push_buffer_state |
| 105 | #endif |
| 106 | |
| 107 | #ifdef yypop_buffer_state |
| 108 | #define pcap_pop_buffer_state_ALREADY_DEFINED |
| 109 | #else |
| 110 | #define yypop_buffer_state pcap_pop_buffer_state |
| 111 | #endif |
| 112 | |
| 113 | #ifdef yyensure_buffer_stack |
| 114 | #define pcap_ensure_buffer_stack_ALREADY_DEFINED |
| 115 | #else |
| 116 | #define yyensure_buffer_stack pcap_ensure_buffer_stack |
| 117 | #endif |
| 118 | |
| 119 | #ifdef yylex |
| 120 | #define pcap_lex_ALREADY_DEFINED |
| 121 | #else |
| 122 | #define yylex pcap_lex |
| 123 | #endif |
| 124 | |
| 125 | #ifdef yyrestart |
| 126 | #define pcap_restart_ALREADY_DEFINED |
| 127 | #else |
| 128 | #define yyrestart pcap_restart |
| 129 | #endif |
| 130 | |
| 131 | #ifdef yylex_init |
| 132 | #define pcap_lex_init_ALREADY_DEFINED |
| 133 | #else |
| 134 | #define yylex_init pcap_lex_init |
| 135 | #endif |
| 136 | |
| 137 | #ifdef yylex_init_extra |
| 138 | #define pcap_lex_init_extra_ALREADY_DEFINED |
| 139 | #else |
| 140 | #define yylex_init_extra pcap_lex_init_extra |
| 141 | #endif |
| 142 | |
| 143 | #ifdef yylex_destroy |
| 144 | #define pcap_lex_destroy_ALREADY_DEFINED |
| 145 | #else |
| 146 | #define yylex_destroy pcap_lex_destroy |
| 147 | #endif |
| 148 | |
| 149 | #ifdef yyget_debug |
| 150 | #define pcap_get_debug_ALREADY_DEFINED |
| 151 | #else |
| 152 | #define yyget_debug pcap_get_debug |
| 153 | #endif |
| 154 | |
| 155 | #ifdef yyset_debug |
| 156 | #define pcap_set_debug_ALREADY_DEFINED |
| 157 | #else |
| 158 | #define yyset_debug pcap_set_debug |
| 159 | #endif |
| 160 | |
| 161 | #ifdef yyget_extra |
| 162 | #define pcap_get_extra_ALREADY_DEFINED |
| 163 | #else |
| 164 | #define yyget_extra pcap_get_extra |
| 165 | #endif |
| 166 | |
| 167 | #ifdef yyset_extra |
| 168 | #define pcap_set_extra_ALREADY_DEFINED |
| 169 | #else |
| 170 | #define yyset_extra pcap_set_extra |
| 171 | #endif |
| 172 | |
| 173 | #ifdef yyget_in |
| 174 | #define pcap_get_in_ALREADY_DEFINED |
| 175 | #else |
| 176 | #define yyget_in pcap_get_in |
| 177 | #endif |
| 178 | |
| 179 | #ifdef yyset_in |
| 180 | #define pcap_set_in_ALREADY_DEFINED |
| 181 | #else |
| 182 | #define yyset_in pcap_set_in |
| 183 | #endif |
| 184 | |
| 185 | #ifdef yyget_out |
| 186 | #define pcap_get_out_ALREADY_DEFINED |
| 187 | #else |
| 188 | #define yyget_out pcap_get_out |
| 189 | #endif |
| 190 | |
| 191 | #ifdef yyset_out |
| 192 | #define pcap_set_out_ALREADY_DEFINED |
| 193 | #else |
| 194 | #define yyset_out pcap_set_out |
| 195 | #endif |
| 196 | |
| 197 | #ifdef yyget_leng |
| 198 | #define pcap_get_leng_ALREADY_DEFINED |
| 199 | #else |
| 200 | #define yyget_leng pcap_get_leng |
| 201 | #endif |
| 202 | |
| 203 | #ifdef yyget_text |
| 204 | #define pcap_get_text_ALREADY_DEFINED |
| 205 | #else |
| 206 | #define yyget_text pcap_get_text |
| 207 | #endif |
| 208 | |
| 209 | #ifdef yyget_lineno |
| 210 | #define pcap_get_lineno_ALREADY_DEFINED |
| 211 | #else |
| 212 | #define yyget_lineno pcap_get_lineno |
| 213 | #endif |
| 214 | |
| 215 | #ifdef yyset_lineno |
| 216 | #define pcap_set_lineno_ALREADY_DEFINED |
| 217 | #else |
| 218 | #define yyset_lineno pcap_set_lineno |
| 219 | #endif |
| 220 | |
| 221 | #ifdef yyget_column |
| 222 | #define pcap_get_column_ALREADY_DEFINED |
| 223 | #else |
| 224 | #define yyget_column pcap_get_column |
| 225 | #endif |
| 226 | |
| 227 | #ifdef yyset_column |
| 228 | #define pcap_set_column_ALREADY_DEFINED |
| 229 | #else |
| 230 | #define yyset_column pcap_set_column |
| 231 | #endif |
| 232 | |
| 233 | #ifdef yywrap |
| 234 | #define pcap_wrap_ALREADY_DEFINED |
| 235 | #else |
| 236 | #define yywrap pcap_wrap |
| 237 | #endif |
| 238 | |
| 239 | #ifdef yyget_lval |
| 240 | #define pcap_get_lval_ALREADY_DEFINED |
| 241 | #else |
| 242 | #define yyget_lval pcap_get_lval |
| 243 | #endif |
| 244 | |
| 245 | #ifdef yyset_lval |
| 246 | #define pcap_set_lval_ALREADY_DEFINED |
| 247 | #else |
| 248 | #define yyset_lval pcap_set_lval |
| 249 | #endif |
| 250 | |
| 251 | #ifdef yyalloc |
| 252 | #define pcap_alloc_ALREADY_DEFINED |
| 253 | #else |
| 254 | #define yyalloc pcap_alloc |
| 255 | #endif |
| 256 | |
| 257 | #ifdef yyrealloc |
| 258 | #define pcap_realloc_ALREADY_DEFINED |
| 259 | #else |
| 260 | #define yyrealloc pcap_realloc |
| 261 | #endif |
| 262 | |
| 263 | #ifdef yyfree |
| 264 | #define pcap_free_ALREADY_DEFINED |
| 265 | #else |
| 266 | #define yyfree pcap_free |
| 267 | #endif |
| 268 | |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 269 | /* First, we deal with platform-specific or compiler-specific issues. */ |
| 270 | |
| 271 | /* begin standard C headers. */ |
| 272 | #include <stdio.h> |
| 273 | #include <string.h> |
| 274 | #include <errno.h> |
| 275 | #include <stdlib.h> |
| 276 | |
| 277 | /* end standard C headers. */ |
| 278 | |
| 279 | /* flex integer type definitions */ |
| 280 | |
| 281 | #ifndef FLEXINT_H |
| 282 | #define FLEXINT_H |
| 283 | |
| 284 | /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */ |
| 285 | |
| 286 | #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L |
| 287 | |
| 288 | /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, |
| 289 | * if you want the limit (max/min) macros for int types. |
| 290 | */ |
| 291 | #ifndef __STDC_LIMIT_MACROS |
| 292 | #define __STDC_LIMIT_MACROS 1 |
| 293 | #endif |
| 294 | |
| 295 | #include <inttypes.h> |
| 296 | typedef int8_t flex_int8_t; |
| 297 | typedef uint8_t flex_uint8_t; |
| 298 | typedef int16_t flex_int16_t; |
| 299 | typedef uint16_t flex_uint16_t; |
| 300 | typedef int32_t flex_int32_t; |
| 301 | typedef uint32_t flex_uint32_t; |
| 302 | #else |
| 303 | typedef signed char flex_int8_t; |
| 304 | typedef short int flex_int16_t; |
| 305 | typedef int flex_int32_t; |
| 306 | typedef unsigned char flex_uint8_t; |
| 307 | typedef unsigned short int flex_uint16_t; |
| 308 | typedef unsigned int flex_uint32_t; |
| 309 | |
| 310 | /* Limits of integral types. */ |
| 311 | #ifndef INT8_MIN |
| 312 | #define INT8_MIN (-128) |
| 313 | #endif |
| 314 | #ifndef INT16_MIN |
| 315 | #define INT16_MIN (-32767-1) |
| 316 | #endif |
| 317 | #ifndef INT32_MIN |
| 318 | #define INT32_MIN (-2147483647-1) |
| 319 | #endif |
| 320 | #ifndef INT8_MAX |
| 321 | #define INT8_MAX (127) |
| 322 | #endif |
| 323 | #ifndef INT16_MAX |
| 324 | #define INT16_MAX (32767) |
| 325 | #endif |
| 326 | #ifndef INT32_MAX |
| 327 | #define INT32_MAX (2147483647) |
| 328 | #endif |
| 329 | #ifndef UINT8_MAX |
| 330 | #define UINT8_MAX (255U) |
| 331 | #endif |
| 332 | #ifndef UINT16_MAX |
| 333 | #define UINT16_MAX (65535U) |
| 334 | #endif |
| 335 | #ifndef UINT32_MAX |
| 336 | #define UINT32_MAX (4294967295U) |
| 337 | #endif |
| 338 | |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 339 | #ifndef SIZE_MAX |
| 340 | #define SIZE_MAX (~(size_t)0) |
| 341 | #endif |
| 342 | |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 343 | #endif /* ! C99 */ |
| 344 | |
| 345 | #endif /* ! FLEXINT_H */ |
| 346 | |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 347 | /* begin standard C++ headers. */ |
| 348 | |
Haibo Huang | 165065a | 2018-07-23 17:26:52 -0700 | [diff] [blame] | 349 | /* TODO: this is always defined, so inline it */ |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 350 | #define yyconst const |
Haibo Huang | 165065a | 2018-07-23 17:26:52 -0700 | [diff] [blame] | 351 | |
| 352 | #if defined(__GNUC__) && __GNUC__ >= 3 |
| 353 | #define yynoreturn __attribute__((__noreturn__)) |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 354 | #else |
Haibo Huang | 165065a | 2018-07-23 17:26:52 -0700 | [diff] [blame] | 355 | #define yynoreturn |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 356 | #endif |
| 357 | |
| 358 | /* An opaque pointer. */ |
| 359 | #ifndef YY_TYPEDEF_YY_SCANNER_T |
| 360 | #define YY_TYPEDEF_YY_SCANNER_T |
| 361 | typedef void* yyscan_t; |
| 362 | #endif |
| 363 | |
| 364 | /* For convenience, these vars (plus the bison vars far below) |
| 365 | are macros in the reentrant scanner. */ |
| 366 | #define yyin yyg->yyin_r |
| 367 | #define yyout yyg->yyout_r |
| 368 | #define yyextra yyg->yyextra_r |
| 369 | #define yyleng yyg->yyleng_r |
| 370 | #define yytext yyg->yytext_r |
| 371 | #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno) |
| 372 | #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column) |
| 373 | #define yy_flex_debug yyg->yy_flex_debug_r |
| 374 | |
| 375 | /* Size of default input buffer. */ |
| 376 | #ifndef YY_BUF_SIZE |
| 377 | #ifdef __ia64__ |
| 378 | /* On IA-64, the buffer size is 16k, not 8k. |
| 379 | * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case. |
| 380 | * Ditto for the __ia64__ case accordingly. |
| 381 | */ |
| 382 | #define YY_BUF_SIZE 32768 |
| 383 | #else |
| 384 | #define YY_BUF_SIZE 16384 |
| 385 | #endif /* __ia64__ */ |
| 386 | #endif |
| 387 | |
| 388 | #ifndef YY_TYPEDEF_YY_BUFFER_STATE |
| 389 | #define YY_TYPEDEF_YY_BUFFER_STATE |
| 390 | typedef struct yy_buffer_state *YY_BUFFER_STATE; |
| 391 | #endif |
| 392 | |
| 393 | #ifndef YY_TYPEDEF_YY_SIZE_T |
| 394 | #define YY_TYPEDEF_YY_SIZE_T |
| 395 | typedef size_t yy_size_t; |
| 396 | #endif |
| 397 | |
| 398 | #ifndef YY_STRUCT_YY_BUFFER_STATE |
| 399 | #define YY_STRUCT_YY_BUFFER_STATE |
| 400 | struct yy_buffer_state |
| 401 | { |
| 402 | FILE *yy_input_file; |
| 403 | |
| 404 | char *yy_ch_buf; /* input buffer */ |
| 405 | char *yy_buf_pos; /* current position in input buffer */ |
| 406 | |
| 407 | /* Size of input buffer in bytes, not including room for EOB |
| 408 | * characters. |
| 409 | */ |
Haibo Huang | 165065a | 2018-07-23 17:26:52 -0700 | [diff] [blame] | 410 | int yy_buf_size; |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 411 | |
| 412 | /* Number of characters read into yy_ch_buf, not including EOB |
| 413 | * characters. |
| 414 | */ |
Haibo Huang | 165065a | 2018-07-23 17:26:52 -0700 | [diff] [blame] | 415 | int yy_n_chars; |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 416 | |
| 417 | /* Whether we "own" the buffer - i.e., we know we created it, |
| 418 | * and can realloc() it to grow it, and should free() it to |
| 419 | * delete it. |
| 420 | */ |
| 421 | int yy_is_our_buffer; |
| 422 | |
| 423 | /* Whether this is an "interactive" input source; if so, and |
| 424 | * if we're using stdio for input, then we want to use getc() |
| 425 | * instead of fread(), to make sure we stop fetching input after |
| 426 | * each newline. |
| 427 | */ |
| 428 | int yy_is_interactive; |
| 429 | |
| 430 | /* Whether we're considered to be at the beginning of a line. |
| 431 | * If so, '^' rules will be active on the next match, otherwise |
| 432 | * not. |
| 433 | */ |
| 434 | int yy_at_bol; |
| 435 | |
| 436 | int yy_bs_lineno; /**< The line count. */ |
| 437 | int yy_bs_column; /**< The column count. */ |
Haibo Huang | 165065a | 2018-07-23 17:26:52 -0700 | [diff] [blame] | 438 | |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 439 | /* Whether to try to fill the input buffer when we reach the |
| 440 | * end of it. |
| 441 | */ |
| 442 | int yy_fill_buffer; |
| 443 | |
| 444 | int yy_buffer_status; |
| 445 | |
| 446 | }; |
| 447 | #endif /* !YY_STRUCT_YY_BUFFER_STATE */ |
| 448 | |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 449 | void yyrestart ( FILE *input_file , yyscan_t yyscanner ); |
| 450 | void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner ); |
| 451 | YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size , yyscan_t yyscanner ); |
| 452 | void yy_delete_buffer ( YY_BUFFER_STATE b , yyscan_t yyscanner ); |
| 453 | void yy_flush_buffer ( YY_BUFFER_STATE b , yyscan_t yyscanner ); |
| 454 | void yypush_buffer_state ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner ); |
| 455 | void yypop_buffer_state ( yyscan_t yyscanner ); |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 456 | |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 457 | YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size , yyscan_t yyscanner ); |
| 458 | YY_BUFFER_STATE yy_scan_string ( const char *yy_str , yyscan_t yyscanner ); |
| 459 | YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len , yyscan_t yyscanner ); |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 460 | |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 461 | void *yyalloc ( yy_size_t , yyscan_t yyscanner ); |
| 462 | void *yyrealloc ( void *, yy_size_t , yyscan_t yyscanner ); |
| 463 | void yyfree ( void * , yyscan_t yyscanner ); |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 464 | |
| 465 | /* Begin user sect3 */ |
| 466 | |
Haibo Huang | 165065a | 2018-07-23 17:26:52 -0700 | [diff] [blame] | 467 | #define pcap_wrap(yyscanner) (/*CONSTCOND*/1) |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 468 | #define YY_SKIP_YYWRAP |
| 469 | |
| 470 | #define yytext_ptr yytext_r |
| 471 | |
| 472 | #ifdef YY_HEADER_EXPORT_START_CONDITIONS |
| 473 | #define INITIAL 0 |
| 474 | |
| 475 | #endif |
| 476 | |
| 477 | #ifndef YY_NO_UNISTD_H |
| 478 | /* Special case for "unistd.h", since it is non-ANSI. We include it way |
| 479 | * down here because we want the user's section 1 to have been scanned first. |
| 480 | * The user has a chance to override it with an option. |
| 481 | */ |
| 482 | #include <unistd.h> |
| 483 | #endif |
| 484 | |
| 485 | #define YY_EXTRA_TYPE compiler_state_t * |
| 486 | |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 487 | int yylex_init (yyscan_t* scanner); |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 488 | |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 489 | int yylex_init_extra ( YY_EXTRA_TYPE user_defined, yyscan_t* scanner); |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 490 | |
| 491 | /* Accessor methods to globals. |
| 492 | These are made visible to non-reentrant scanners for convenience. */ |
| 493 | |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 494 | int yylex_destroy ( yyscan_t yyscanner ); |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 495 | |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 496 | int yyget_debug ( yyscan_t yyscanner ); |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 497 | |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 498 | void yyset_debug ( int debug_flag , yyscan_t yyscanner ); |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 499 | |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 500 | YY_EXTRA_TYPE yyget_extra ( yyscan_t yyscanner ); |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 501 | |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 502 | void yyset_extra ( YY_EXTRA_TYPE user_defined , yyscan_t yyscanner ); |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 503 | |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 504 | FILE *yyget_in ( yyscan_t yyscanner ); |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 505 | |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 506 | void yyset_in ( FILE * _in_str , yyscan_t yyscanner ); |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 507 | |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 508 | FILE *yyget_out ( yyscan_t yyscanner ); |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 509 | |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 510 | void yyset_out ( FILE * _out_str , yyscan_t yyscanner ); |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 511 | |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 512 | int yyget_leng ( yyscan_t yyscanner ); |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 513 | |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 514 | char *yyget_text ( yyscan_t yyscanner ); |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 515 | |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 516 | int yyget_lineno ( yyscan_t yyscanner ); |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 517 | |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 518 | void yyset_lineno ( int _line_number , yyscan_t yyscanner ); |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 519 | |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 520 | int yyget_column ( yyscan_t yyscanner ); |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 521 | |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 522 | void yyset_column ( int _column_no , yyscan_t yyscanner ); |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 523 | |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 524 | YYSTYPE * yyget_lval ( yyscan_t yyscanner ); |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 525 | |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 526 | void yyset_lval ( YYSTYPE * yylval_param , yyscan_t yyscanner ); |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 527 | |
| 528 | /* Macros after this point can all be overridden by user definitions in |
| 529 | * section 1. |
| 530 | */ |
| 531 | |
| 532 | #ifndef YY_SKIP_YYWRAP |
| 533 | #ifdef __cplusplus |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 534 | extern "C" int yywrap ( yyscan_t yyscanner ); |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 535 | #else |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 536 | extern int yywrap ( yyscan_t yyscanner ); |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 537 | #endif |
| 538 | #endif |
| 539 | |
| 540 | #ifndef yytext_ptr |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 541 | static void yy_flex_strncpy ( char *, const char *, int , yyscan_t yyscanner); |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 542 | #endif |
| 543 | |
| 544 | #ifdef YY_NEED_STRLEN |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 545 | static int yy_flex_strlen ( const char * , yyscan_t yyscanner); |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 546 | #endif |
| 547 | |
| 548 | #ifndef YY_NO_INPUT |
| 549 | |
| 550 | #endif |
| 551 | |
| 552 | /* Amount of stuff to slurp up with each read. */ |
| 553 | #ifndef YY_READ_BUF_SIZE |
| 554 | #ifdef __ia64__ |
| 555 | /* On IA-64, the buffer size is 16k, not 8k */ |
| 556 | #define YY_READ_BUF_SIZE 16384 |
| 557 | #else |
| 558 | #define YY_READ_BUF_SIZE 8192 |
| 559 | #endif /* __ia64__ */ |
| 560 | #endif |
| 561 | |
| 562 | /* Number of entries by which start-condition stack grows. */ |
| 563 | #ifndef YY_START_STACK_INCR |
| 564 | #define YY_START_STACK_INCR 25 |
| 565 | #endif |
| 566 | |
| 567 | /* Default declaration of generated scanner - a define so the user can |
| 568 | * easily add parameters. |
| 569 | */ |
| 570 | #ifndef YY_DECL |
| 571 | #define YY_DECL_IS_OURS 1 |
| 572 | |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 573 | extern int yylex \ |
| 574 | (YYSTYPE * yylval_param , yyscan_t yyscanner); |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 575 | |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 576 | #define YY_DECL int yylex \ |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 577 | (YYSTYPE * yylval_param , yyscan_t yyscanner) |
| 578 | #endif /* !YY_DECL */ |
| 579 | |
| 580 | /* yy_get_previous_state - get the state just before the EOB char was reached */ |
| 581 | |
| 582 | #undef YY_NEW_FILE |
| 583 | #undef YY_FLUSH_BUFFER |
| 584 | #undef yy_set_bol |
| 585 | #undef yy_new_buffer |
| 586 | #undef yy_set_interactive |
| 587 | #undef YY_DO_BEFORE_ACTION |
| 588 | |
| 589 | #ifdef YY_DECL_IS_OURS |
| 590 | #undef YY_DECL_IS_OURS |
| 591 | #undef YY_DECL |
| 592 | #endif |
| 593 | |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 594 | #ifndef pcap__create_buffer_ALREADY_DEFINED |
| 595 | #undef yy_create_buffer |
| 596 | #endif |
| 597 | #ifndef pcap__delete_buffer_ALREADY_DEFINED |
| 598 | #undef yy_delete_buffer |
| 599 | #endif |
| 600 | #ifndef pcap__scan_buffer_ALREADY_DEFINED |
| 601 | #undef yy_scan_buffer |
| 602 | #endif |
| 603 | #ifndef pcap__scan_string_ALREADY_DEFINED |
| 604 | #undef yy_scan_string |
| 605 | #endif |
| 606 | #ifndef pcap__scan_bytes_ALREADY_DEFINED |
| 607 | #undef yy_scan_bytes |
| 608 | #endif |
| 609 | #ifndef pcap__init_buffer_ALREADY_DEFINED |
| 610 | #undef yy_init_buffer |
| 611 | #endif |
| 612 | #ifndef pcap__flush_buffer_ALREADY_DEFINED |
| 613 | #undef yy_flush_buffer |
| 614 | #endif |
| 615 | #ifndef pcap__load_buffer_state_ALREADY_DEFINED |
| 616 | #undef yy_load_buffer_state |
| 617 | #endif |
| 618 | #ifndef pcap__switch_to_buffer_ALREADY_DEFINED |
| 619 | #undef yy_switch_to_buffer |
| 620 | #endif |
| 621 | #ifndef pcap_push_buffer_state_ALREADY_DEFINED |
| 622 | #undef yypush_buffer_state |
| 623 | #endif |
| 624 | #ifndef pcap_pop_buffer_state_ALREADY_DEFINED |
| 625 | #undef yypop_buffer_state |
| 626 | #endif |
| 627 | #ifndef pcap_ensure_buffer_stack_ALREADY_DEFINED |
| 628 | #undef yyensure_buffer_stack |
| 629 | #endif |
| 630 | #ifndef pcap_lex_ALREADY_DEFINED |
| 631 | #undef yylex |
| 632 | #endif |
| 633 | #ifndef pcap_restart_ALREADY_DEFINED |
| 634 | #undef yyrestart |
| 635 | #endif |
| 636 | #ifndef pcap_lex_init_ALREADY_DEFINED |
| 637 | #undef yylex_init |
| 638 | #endif |
| 639 | #ifndef pcap_lex_init_extra_ALREADY_DEFINED |
| 640 | #undef yylex_init_extra |
| 641 | #endif |
| 642 | #ifndef pcap_lex_destroy_ALREADY_DEFINED |
| 643 | #undef yylex_destroy |
| 644 | #endif |
| 645 | #ifndef pcap_get_debug_ALREADY_DEFINED |
| 646 | #undef yyget_debug |
| 647 | #endif |
| 648 | #ifndef pcap_set_debug_ALREADY_DEFINED |
| 649 | #undef yyset_debug |
| 650 | #endif |
| 651 | #ifndef pcap_get_extra_ALREADY_DEFINED |
| 652 | #undef yyget_extra |
| 653 | #endif |
| 654 | #ifndef pcap_set_extra_ALREADY_DEFINED |
| 655 | #undef yyset_extra |
| 656 | #endif |
| 657 | #ifndef pcap_get_in_ALREADY_DEFINED |
| 658 | #undef yyget_in |
| 659 | #endif |
| 660 | #ifndef pcap_set_in_ALREADY_DEFINED |
| 661 | #undef yyset_in |
| 662 | #endif |
| 663 | #ifndef pcap_get_out_ALREADY_DEFINED |
| 664 | #undef yyget_out |
| 665 | #endif |
| 666 | #ifndef pcap_set_out_ALREADY_DEFINED |
| 667 | #undef yyset_out |
| 668 | #endif |
| 669 | #ifndef pcap_get_leng_ALREADY_DEFINED |
| 670 | #undef yyget_leng |
| 671 | #endif |
| 672 | #ifndef pcap_get_text_ALREADY_DEFINED |
| 673 | #undef yyget_text |
| 674 | #endif |
| 675 | #ifndef pcap_get_lineno_ALREADY_DEFINED |
| 676 | #undef yyget_lineno |
| 677 | #endif |
| 678 | #ifndef pcap_set_lineno_ALREADY_DEFINED |
| 679 | #undef yyset_lineno |
| 680 | #endif |
| 681 | #ifndef pcap_get_column_ALREADY_DEFINED |
| 682 | #undef yyget_column |
| 683 | #endif |
| 684 | #ifndef pcap_set_column_ALREADY_DEFINED |
| 685 | #undef yyset_column |
| 686 | #endif |
| 687 | #ifndef pcap_wrap_ALREADY_DEFINED |
| 688 | #undef yywrap |
| 689 | #endif |
| 690 | #ifndef pcap_get_lval_ALREADY_DEFINED |
| 691 | #undef yyget_lval |
| 692 | #endif |
| 693 | #ifndef pcap_set_lval_ALREADY_DEFINED |
| 694 | #undef yyset_lval |
| 695 | #endif |
| 696 | #ifndef pcap_get_lloc_ALREADY_DEFINED |
| 697 | #undef yyget_lloc |
| 698 | #endif |
| 699 | #ifndef pcap_set_lloc_ALREADY_DEFINED |
| 700 | #undef yyset_lloc |
| 701 | #endif |
| 702 | #ifndef pcap_alloc_ALREADY_DEFINED |
| 703 | #undef yyalloc |
| 704 | #endif |
| 705 | #ifndef pcap_realloc_ALREADY_DEFINED |
| 706 | #undef yyrealloc |
| 707 | #endif |
| 708 | #ifndef pcap_free_ALREADY_DEFINED |
| 709 | #undef yyfree |
| 710 | #endif |
| 711 | #ifndef pcap_text_ALREADY_DEFINED |
| 712 | #undef yytext |
| 713 | #endif |
| 714 | #ifndef pcap_leng_ALREADY_DEFINED |
| 715 | #undef yyleng |
| 716 | #endif |
| 717 | #ifndef pcap_in_ALREADY_DEFINED |
| 718 | #undef yyin |
| 719 | #endif |
| 720 | #ifndef pcap_out_ALREADY_DEFINED |
| 721 | #undef yyout |
| 722 | #endif |
| 723 | #ifndef pcap__flex_debug_ALREADY_DEFINED |
| 724 | #undef yy_flex_debug |
| 725 | #endif |
| 726 | #ifndef pcap_lineno_ALREADY_DEFINED |
| 727 | #undef yylineno |
| 728 | #endif |
| 729 | #ifndef pcap_tables_fload_ALREADY_DEFINED |
| 730 | #undef yytables_fload |
| 731 | #endif |
| 732 | #ifndef pcap_tables_destroy_ALREADY_DEFINED |
| 733 | #undef yytables_destroy |
| 734 | #endif |
| 735 | #ifndef pcap_TABLES_NAME_ALREADY_DEFINED |
| 736 | #undef yyTABLES_NAME |
| 737 | #endif |
| 738 | |
| 739 | #line 479 "scanner.l" |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 740 | |
| 741 | |
Haibo Huang | 4ccd683 | 2020-04-23 18:03:48 -0700 | [diff] [blame] | 742 | #line 743 "scanner.h" |
Elliott Hughes | 965a4b5 | 2017-05-15 10:37:39 -0700 | [diff] [blame] | 743 | #undef pcap_IN_HEADER |
| 744 | #endif /* pcap_HEADER_H */ |