Lines Matching +full:- +full:- +full:without +full:- +full:host +full:- +full:scanner
4 %pure-parser
7 * We also want a reentrant scanner, so we have to pass the
8 * handle for the reentrant scanner to the parser, and the
12 * versions of Flex and Bison, if you use yyscan_t in %parse-param and
13 * %lex-param, you have to include scanner.h before grammar.h to get
14 * yyscan_t declared, and you have to include grammar.h before scanner.h
18 %parse-param {void *yyscanner}
19 %lex-param {void *yyscanner}
22 * And we need to pass the compiler state to the scanner.
24 %parse-param { compiler_state_t *cstate }
31 * Redistribution and use in source and binary forms, with or without
41 * or promote products derived from this software without specific prior
43 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
44 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
70 #include "diag-control.h"
72 #include "pcap-int.h"
76 #include "scanner.h"
88 #include "os-proto.h"
131 { IEEE80211_FC0_SUBTYPE_ASSOC_REQ, "assoc-req" },
133 { IEEE80211_FC0_SUBTYPE_ASSOC_RESP, "assoc-resp" },
135 { IEEE80211_FC0_SUBTYPE_REASSOC_REQ, "reassoc-req" },
137 { IEEE80211_FC0_SUBTYPE_REASSOC_RESP, "reassoc-resp" },
139 { IEEE80211_FC0_SUBTYPE_PROBE_REQ, "probe-req" },
141 { IEEE80211_FC0_SUBTYPE_PROBE_RESP, "probe-resp" },
153 { IEEE80211_FC0_SUBTYPE_PS_POLL, "ps-poll" },
157 { IEEE80211_FC0_SUBTYPE_CF_END, "cf-end" },
158 { IEEE80211_FC0_SUBTYPE_CF_END_ACK, "cf-end-ack" },
163 { IEEE80211_FC0_SUBTYPE_CF_ACK, "data-cf-ack" },
164 { IEEE80211_FC0_SUBTYPE_CF_POLL, "data-cf-poll" },
165 { IEEE80211_FC0_SUBTYPE_CF_ACPL, "data-cf-ack-poll" },
167 { IEEE80211_FC0_SUBTYPE_NODATA_CF_ACK, "cf-ack" },
168 { IEEE80211_FC0_SUBTYPE_NODATA_CF_POLL, "cf-poll" },
169 { IEEE80211_FC0_SUBTYPE_NODATA_CF_ACPL, "cf-ack-poll" },
170 { IEEE80211_FC0_SUBTYPE_QOS|IEEE80211_FC0_SUBTYPE_DATA, "qos-data" },
171 { IEEE80211_FC0_SUBTYPE_QOS|IEEE80211_FC0_SUBTYPE_CF_ACK, "qos-data-cf-ack" },
172 { IEEE80211_FC0_SUBTYPE_QOS|IEEE80211_FC0_SUBTYPE_CF_POLL, "qos-data-cf-poll" },
173 { IEEE80211_FC0_SUBTYPE_QOS|IEEE80211_FC0_SUBTYPE_CF_ACPL, "qos-data-cf-ack-poll" },
175 { IEEE80211_FC0_SUBTYPE_QOS|IEEE80211_FC0_SUBTYPE_NODATA_CF_POLL, "qos-cf-poll" },
176 { IEEE80211_FC0_SUBTYPE_QOS|IEEE80211_FC0_SUBTYPE_NODATA_CF_ACPL, "qos-cf-ack-poll" },
216 return (-1); in str2tok()
271 bpf_error(cstate, "libpcap was compiled on a machine without pf support"); in pfreason_to_num()
278 bpf_error(cstate, "libpcap was compiled on a machine without pf support"); in pfaction_to_num()
317 %token DST SRC HOST GATEWAY
356 %left '+' '-'
392 bpf_error(cstate, "'port' modifier applied to ip host");
394 bpf_error(cstate, "'portrange' modifier applied to ip host");
396 bpf_error(cstate, "'proto' modifier applied to ip host");
398 bpf_error(cstate, "'protochain' modifier applied to ip host");
494 aqual: HOST { $$ = Q_HOST; }
499 /* non-directional address type qualifiers */
550 | VLAN { $$ = gen_vlan(cstate, -1); }
552 | MPLS { $$ = gen_mpls(cstate, -1); }
555 | PPPOES { $$ = gen_pppoes(cstate, -1); }
557 | GENEVE { $$ = gen_geneve(cstate, -1); }
588 if ($$ == -1)
602 if ($<i>-1 == ieee80211_type_subtypes[i].type) {
609 if ($$ == -1)
622 if ($$ != -1) {
641 if (subtype != -1)
645 if (subtype == -1)
690 | arth '-' arth { $$ = gen_arth(cstate, BPF_SUB, $1, $3); }
699 | '-' arth %prec UMINUS { $$ = gen_neg(cstate, $2); }