Use the correct IS-IS PDU type offset for DLT_C_HDLC.
Use the correct bit mask for IS-IS PDU type value.
Fix the "|" and "&" operators of the "byte" primitive.
+ Require "byte" argument value to be within range.
rpcap:
Support user names and passwords in rpcap:// and rpcaps:// URLs.
Add a -t flag to rpcapd to specify the data channel port; from
if (setjmp(cstate->top_ctx))
return (NULL);
+ assert_maxval(cstate, "byte argument", val, UINT8_MAX);
+
switch (op) {
default:
abort();
expr => 'byte 1 >> 2',
errstr => 'syntax error',
},
+ {
+ name => 'byte_eq_256',
+ DLT => 'IPV4',
+ expr => 'byte 1 = 256',
+ errstr => 'byte argument 256 greater than maximum 255',
+ },
+ {
+ name => 'byte_lt_256',
+ DLT => 'IPV4',
+ expr => 'byte 1 < 256',
+ errstr => 'byte argument 256 greater than maximum 255',
+ },
+ {
+ name => 'byte_gt_256',
+ DLT => 'IPV4',
+ expr => 'byte 1 > 256',
+ errstr => 'byte argument 256 greater than maximum 255',
+ },
+ {
+ name => 'byte_and_256',
+ DLT => 'IPV4',
+ expr => 'byte 1 & 256',
+ errstr => 'byte argument 256 greater than maximum 255',
+ },
+ {
+ name => 'byte_or_256',
+ DLT => 'IPV4',
+ expr => 'byte 1 | 256',
+ errstr => 'byte argument 256 greater than maximum 255',
+ },
);
push @reject_tests, {