]> The Tcpdump Group git mirrors - libpcap/commit
Use the correct bit mask for IS-IS PDU type value. 1492/head
authorDenis Ovsienko <[email protected]>
Wed, 26 Mar 2025 11:57:29 +0000 (11:57 +0000)
committerDenis Ovsienko <[email protected]>
Wed, 26 Mar 2025 13:00:23 +0000 (13:00 +0000)
commit63acfbbf1ed5a4132273778f00596f7b7539b3f4
tree7a8a9420106561a559e137d1bcabd57280c850ee
parent9fe209c9f782c183db3849dd95f9ea0c34e5649d
Use the correct bit mask for IS-IS PDU type value.

The IS-IS PDU Type field is an unsigned integer in the least significant
5 bits, and the most significant three bits are reserved, therefore when
"isis proto" tests the field value, it must use a bit mask to ignore the
reserved bits.  This notably inflates the filter program because the
optimizer currently detects no-op duplicate loads, but does not detect
no-op duplicate (ld, and) pairs.  The apply tests do not change because
they have packets with the reserved bits set to zero.
CHANGES
gencode.c
testprogs/TESTrun