
328
C
HAPTER
15: P
ACKET
F
ILTERING
reject
1 byte
Conditionally rejects the packet being examined. Pops
a byte from the stack. If its value is non-zero, the
packet is rejected and filter evaluation ends
immediately; otherwise, the filter evaluation continues
with the next instruction.
Use
reject
with
and
and
or
operators when you
have sequential tests and you would like the filter to
reject a packet before the entire expression has been
evaluated. Using
reject
can significantly improve the
performance of certain types of filters. See
“Implementing Sequential Tests in a Packet Filter”
earlier in the chapter for more information.
shiftl (shift left)
1 byte
Pops two values from the stack and shifts the first
operand left by the number of bits specified by the
second operand. Bits shifted out of the left side of the
operand are discarded, and zeros are shifted in from
the right. The resulting value is pushed back onto the
stack. The contents of the top of the stack determines
the size of the first operand and the size of the result.
The second operand is always 1 byte and only the low
5 bits of the byte are used as the shift count.
shiftr (shift right)
1 byte
Pops two values from the stack and shifts the first
operand right by the number of bits specified by the
second operand. Bits shifted out of the right side of the
operand are discarded, and zeros are shifted in from
the left. The resulting value is pushed back onto the
stack. The contents of the top of the stack determines
the size of the first operand and the size of the result.
The second operand is always 1 byte and only the low
5 bits of the byte are used as the shift count.
Table 66
Packet Filtering Opcodes (continued)
Opcode
Memory
Requirements
Description
Summary of Contents for 4007
Page 36: ...36 ABOUT THIS GUIDE ...
Page 37: ...I UNDERSTANDING YOUR SWITCH 4007 SYSTEM Chapter 1 Configuration Overview ...
Page 38: ......
Page 50: ...50 CHAPTER 1 CONFIGURATION OVERVIEW ...
Page 52: ......
Page 70: ...70 CHAPTER 3 INSTALLING MANAGEMENT MODULES ...
Page 110: ...110 CHAPTER 4 CONFIGURING AND USING EME OPTIONS ...
Page 130: ...130 CHAPTER 5 MANAGING THE CHASSIS POWER AND TEMPERATURE ...
Page 222: ...222 CHAPTER 11 IP MULTICAST FILTERING WITH IGMP ...
Page 240: ...240 CHAPTER 13 RESILIENT LINKS ...
Page 304: ...304 CHAPTER 14 VIRTUAL LANS VLANS ...
Page 350: ...350 CHAPTER 15 PACKET FILTERING ...
Page 506: ...506 CHAPTER 19 OPEN SHORTEST PATH FIRST OSPF ROUTING ...
Page 534: ...534 CHAPTER 20 IPX ROUTING ...
Page 612: ...612 CHAPTER 22 QOS AND RSVP ...
Page 656: ...656 CHAPTER 23 DEVICE MONITORING ...
Page 657: ...IV REFERENCE Appendix A Technical Support Index ...
Page 658: ......
Page 664: ......