Be more specific when complaining about bit masks.
This commit is contained in:
parent
c6535773a6
commit
151bf3aeda
@ -2592,12 +2592,12 @@ config_pipe(int ac, char **av)
|
||||
else if (p16 != NULL) {
|
||||
if (a > 0xFFFF)
|
||||
errx(EX_DATAERR,
|
||||
"mask: must be 16 bit");
|
||||
"port mask must be 16 bit");
|
||||
*p16 = (uint16_t)a;
|
||||
} else {
|
||||
if (a > 0xFF)
|
||||
errx(EX_DATAERR,
|
||||
"mask: must be 8 bit");
|
||||
"proto mask must be 8 bit");
|
||||
p.fs.flow_mask.proto = (uint8_t)a;
|
||||
}
|
||||
if (a != 0)
|
||||
|
Loading…
Reference in New Issue
Block a user