Lines Matching +full:- +full:- +full:without +full:- +full:host +full:- +full:scanner

10  * Flex-generated scanners may only include <inttypes.h> if __STDC_VERSION__
12 * define it with that value, because it isn't 100% C99-compliant, even
14 * scanner needs.
18 * scanner.c, and then include <stdint.h>, which may define them differently
21 * If we include it here, and they're defined, that'll prevent scanner.c
22 * from defining them. So we include <pcap/pcap-inttypes.h>, to get
25 #include <pcap/pcap-inttypes.h>
27 #include "diag-control.h"
31 * We want a reentrant scanner.
36 * And we need to pass the compiler state to the scanner.
38 %option extra-type="compiler_state_t *"
53 %option never-interactive
64 %option bison-bridge
71 * Redistribution and use in source and binary forms, with or without
81 * or promote products derived from this software without specific prior
83 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
84 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
91 #include "pcap-int.h"
112 * https://msdn.microsoft.com/en-us/library/windows/desktop/ms738520(v=vs.85).aspx
147 #include "os-proto.h"
160 N ([0-9]+|(0X|0x)[0-9A-Fa-f]+)
161 B ([0-9A-Fa-f][0-9A-Fa-f]?)
162 B2 ([0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f])
163 W ([0-9A-Fa-f][0-9A-Fa-f]?[0-9A-Fa-f]?[0-9A-Fa-f]?)
250 MAC ({B}:{B}:{B}:{B}:{B}:{B}|{B}\-{B}\-{B}\-{B}\-{B}\-{B}|{B}\.{B}\.{B}\.{B}\.{B}\.{B}|{B2}\.{B2}\…
289 es-is return ESIS;
291 is-is return ISIS;
308 host return HOST;
393 [+\-*/%:\[\]!<>()&|\^=] return yytext[0];
400 ${B} { yylval->e = pcap_ether_aton(((char *)yytext)+1);
401 if (yylval->e == NULL)
404 {MAC} { yylval->e = pcap_ether_aton((char *)yytext);
405 if (yylval->e == NULL)
408 {N} { yylval->i = stoi((char *)yytext); return NUM; }
410 yylval->s = sdup(yyextra, (char *)yytext); return HID; }
421 yylval->s = sdup(yyextra, (char *)yytext); return HID6;
428 icmptype { yylval->i = 0; return NUM; }
429 icmpcode { yylval->i = 1; return NUM; }
430 icmp-echoreply { yylval->i = 0; return NUM; }
431 icmp-unreach { yylval->i = 3; return NUM; }
432 icmp-sourcequench { yylval->i = 4; return NUM; }
433 icmp-redirect { yylval->i = 5; return NUM; }
434 icmp-echo { yylval->i = 8; return NUM; }
435 icmp-routeradvert { yylval->i = 9; return NUM; }
436 icmp-routersolicit { yylval->i = 10; return NUM; }
437 icmp-timxceed { yylval->i = 11; return NUM; }
438 icmp-paramprob { yylval->i = 12; return NUM; }
439 icmp-tstamp { yylval->i = 13; return NUM; }
440 icmp-tstampreply { yylval->i = 14; return NUM; }
441 icmp-ireq { yylval->i = 15; return NUM; }
442 icmp-ireqreply { yylval->i = 16; return NUM; }
443 icmp-maskreq { yylval->i = 17; return NUM; }
444 icmp-maskreply { yylval->i = 18; return NUM; }
446 icmp6type { yylval->i = 0; return NUM; }
447 icmp6code { yylval->i = 1; return NUM; }
449 icmp6-echo { yylval->i = 128; return NUM; }
450 icmp6-echoreply { yylval->i = 129; return NUM; }
451 icmp6-multicastlistenerquery { yylval->i = 130; return NUM; }
452 icmp6-multicastlistenerreportv1 { yylval->i = 131; return NUM; }
453 icmp6-multicastlistenerdone { yylval->i = 132; return NUM; }
454 icmp6-routersolicit { yylval->i = 133; return NUM; }
455 icmp6-routeradvert { yylval->i = 134; return NUM; }
456 icmp6-neighborsolicit { yylval->i = 135; return NUM; }
457 icmp6-neighboradvert { yylval->i = 136; return NUM; }
458 icmp6-redirect { yylval->i = 137; return NUM; }
459 icmp6-routerrenum { yylval->i = 138; return NUM; }
460 icmp6-nodeinformationquery { yylval->i = 139; return NUM; }
461 icmp6-nodeinformationresponse { yylval->i = 140; return NUM; }
462 icmp6-ineighbordiscoverysolicit { yylval->i = 141; return NUM; }
463 icmp6-ineighbordiscoveryadvert { yylval->i = 142; return NUM; }
464 icmp6-multicastlistenerreportv2 { yylval->i = 143; return NUM; }
465 icmp6-homeagentdiscoveryrequest { yylval->i = 144; return NUM; }
466 icmp6-homeagentdiscoveryreply { yylval->i = 145; return NUM; }
467 icmp6-mobileprefixsolicit { yylval->i = 146; return NUM; }
468 icmp6-mobileprefixadvert { yylval->i = 147; return NUM; }
469 icmp6-certpathsolicit { yylval->i = 148; return NUM; }
470 icmp6-certpathadvert { yylval->i = 149; return NUM; }
471 icmp6-multicastrouteradvert { yylval->i = 151; return NUM; }
472 icmp6-multicastroutersolicit { yylval->i = 152; return NUM; }
473 icmp6-multicastrouterterm { yylval->i = 153; return NUM; }
475 tcpflags { yylval->i = 13; return NUM; }
476 tcp-fin { yylval->i = 0x01; return NUM; }
477 tcp-syn { yylval->i = 0x02; return NUM; }
478 tcp-rst { yylval->i = 0x04; return NUM; }
479 tcp-push { yylval->i = 0x08; return NUM; }
480 tcp-ack { yylval->i = 0x10; return NUM; }
481 tcp-urg { yylval->i = 0x20; return NUM; }
482 tcp-ece { yylval->i = 0x40; return NUM; }
483 tcp-cwr { yylval->i = 0x80; return NUM; }
484 [A-Za-z0-9]([-_.A-Za-z0-9]*[.A-Za-z0-9])? {
485 yylval->s = sdup(yyextra, (char *)yytext); return ID; }
486 "\\"[^ !()\n\t]+ { yylval->s = sdup(yyextra, (char *)yytext + 1); return ID; }
487 [^ \[\]\t\n\-_.A-Za-z0-9!<>()&|=]+ {
502 return c - '0';
504 return c - 'a' + 10;
506 return c - 'A' + 10;