/* Check whether HID/NUM is being used when appropriate */
$$.q = $<blk>0.q;
if ($$.q.addr == Q_PORT) {
- bpf_set_error(cstate, "'port' modifier applied to IP address and prefix length");
+ bpf_set_error(cstate, "'port' qualifier applied to IPv4 address and prefix length");
YYABORT;
} else if ($$.q.addr == Q_PORTRANGE) {
- bpf_set_error(cstate, "'portrange' modifier applied to IP address and prefix length");
+ bpf_set_error(cstate, "'portrange' qualifier applied to IPv4 address and prefix length");
YYABORT;
} else if ($$.q.addr == Q_PROTO) {
- bpf_set_error(cstate, "'proto' modifier applied to IP address and prefix length");
+ bpf_set_error(cstate, "'proto' qualifier applied to IPv4 address and prefix length");
YYABORT;
} else if ($$.q.addr == Q_PROTOCHAIN) {
- bpf_set_error(cstate, "'protochain' modifier applied to IP address and prefix length");
+ bpf_set_error(cstate, "'protochain' qualifier applied to IPv4 address and prefix length");
YYABORT;
}
CHECK_PTR_VAL(($$.b = gen_mcode(cstate, $1, NULL, $3, $$.q)));
/* Check whether HID mask HID is being used when appropriate */
$$.q = $<blk>0.q;
if ($$.q.addr == Q_PORT) {
- bpf_set_error(cstate, "'port' modifier applied to IP address and netmask");
+ bpf_set_error(cstate, "'port' qualifier applied to IPv4 address and netmask");
YYABORT;
} else if ($$.q.addr == Q_PORTRANGE) {
- bpf_set_error(cstate, "'portrange' modifier applied to IP address and netmask");
+ bpf_set_error(cstate, "'portrange' qualifier applied to IPv4 address and netmask");
YYABORT;
} else if ($$.q.addr == Q_PROTO) {
- bpf_set_error(cstate, "'proto' modifier applied to IP address and netmask");
+ bpf_set_error(cstate, "'proto' qualifier applied to IPv4 address and netmask");
YYABORT;
} else if ($$.q.addr == Q_PROTOCHAIN) {
- bpf_set_error(cstate, "'protochain' modifier applied to IP address and netmask");
+ bpf_set_error(cstate, "'protochain' qualifier applied to IPv4 address and netmask");
YYABORT;
}
CHECK_PTR_VAL(($$.b = gen_mcode(cstate, $1, $3, 0, $$.q)));
/* Check whether HID is being used when appropriate */
$$.q = $<blk>0.q;
if ($$.q.addr == Q_PORT) {
- bpf_set_error(cstate, "'port' modifier applied to IP address");
+ bpf_set_error(cstate, "'port' qualifier applied to IPv4 address");
YYABORT;
} else if ($$.q.addr == Q_PORTRANGE) {
- bpf_set_error(cstate, "'portrange' modifier applied to IP address");
+ bpf_set_error(cstate, "'portrange' qualifier applied to IPv4 address");
YYABORT;
} else if ($$.q.addr == Q_PROTO) {
- bpf_set_error(cstate, "'proto' modifier applied to IP address");
+ bpf_set_error(cstate, "'proto' qualifier applied to IPv4 address");
YYABORT;
} else if ($$.q.addr == Q_PROTOCHAIN) {
- bpf_set_error(cstate, "'protochain' modifier applied to IP address");
+ bpf_set_error(cstate, "'protochain' qualifier applied to IPv4 address");
YYABORT;
}
CHECK_PTR_VAL(($$.b = gen_ncode(cstate, $1, 0, $$.q)));
/* Check whether HID6/NUM is being used when appropriate */
$$.q = $<blk>0.q;
if ($$.q.addr == Q_PORT) {
- bpf_set_error(cstate, "'port' modifier applied to IP address and prefix length");
+ bpf_set_error(cstate, "'port' qualifier applied to IPv6 address and prefix length");
YYABORT;
} else if ($$.q.addr == Q_PORTRANGE) {
- bpf_set_error(cstate, "'portrange' modifier applied to IP address and prefix length");
+ bpf_set_error(cstate, "'portrange' qualifier applied to IPv6 address and prefix length");
YYABORT;
} else if ($$.q.addr == Q_PROTO) {
- bpf_set_error(cstate, "'proto' modifier applied to IP address and prefix length ");
+ bpf_set_error(cstate, "'proto' qualifier applied to IPv6 address and prefix length ");
YYABORT;
} else if ($$.q.addr == Q_PROTOCHAIN) {
- bpf_set_error(cstate, "'protochain' modifier applied to IP address and prefix length");
+ bpf_set_error(cstate, "'protochain' qualifier applied to IPv6 address and prefix length");
YYABORT;
}
CHECK_PTR_VAL(($$.b = gen_mcode6(cstate, $1, $3, $$.q)));
/* Check whether HID6 is being used when appropriate */
$$.q = $<blk>0.q;
if ($$.q.addr == Q_PORT) {
- bpf_set_error(cstate, "'port' modifier applied to IP address");
+ bpf_set_error(cstate, "'port' qualifier applied to IPv6 address");
YYABORT;
} else if ($$.q.addr == Q_PORTRANGE) {
- bpf_set_error(cstate, "'portrange' modifier applied to IP address");
+ bpf_set_error(cstate, "'portrange' qualifier applied to IPv6 address");
YYABORT;
} else if ($$.q.addr == Q_PROTO) {
- bpf_set_error(cstate, "'proto' modifier applied to 'ip6addr/prefixlen");
+ bpf_set_error(cstate, "'proto' qualifier applied to 'ip6addr/prefixlen");
YYABORT;
} else if ($$.q.addr == Q_PROTOCHAIN) {
- bpf_set_error(cstate, "'protochain' modifier applied to IP address");
+ bpf_set_error(cstate, "'protochain' qualifier applied to IPv6 address");
YYABORT;
}
CHECK_PTR_VAL(($$.b = gen_mcode6(cstate, $1, 128, $$.q)));