* POSSIBILITY OF SUCH DAMAGE.
*/
+/* Type of a qualifier. */
+typedef unsigned char qualval;
+
/* Address qualifiers. */
#define Q_HOST 1
};
struct qual {
- unsigned char addr;
- unsigned char proto;
- unsigned char dir;
+ qualval addr;
+ qualval proto;
+ qualval dir;
unsigned char pad;
};
#include "os-proto.h"
#endif
-#define QSET(q, p, d, a) (q).proto = (unsigned char)(p),\
- (q).dir = (unsigned char)(d),\
- (q).addr = (unsigned char)(a)
+#define QSET(q, p, d, a) (q).proto = (p),\
+ (q).dir = (d),\
+ (q).addr = (a)
struct tok {
int v; /* value */
%union {
int i;
+ qualval q;
bpf_u_int32 h;
u_char *e;
char *s;
%type <blk> expr id nid pid term rterm qid
%type <blk> head
-%type <i> pqual dqual aqual ndaqual
+%type <q> pqual dqual aqual ndaqual
%type <a> arth narth
%type <i> byteop pname pnum relop irelop
%type <blk> and or paren not null prog