
232
C
HAPTER
10: P
ACKET
F
ILTERING
accept
1 byte
Conditionally accepts the packet that is being
examined. Pops a byte from the stack. If its value is
non-zero, the packet is accepted and evaluation of the
filter ends immediately; otherwise, filter evaluation
continues with the next instruction.
Use
accept
with
and
and
or
operators when you
have sequential tests and you would like the filter to
accept a packet before the entire expression has been
evaluated. Using
accept
can significantly improve the
performance of certain types of filters. See
“Implementing Sequential Tests in a Packet Filter
elsewhere in the chapter for more information.
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 33
Packet Filtering Opcodes (continued)
Opcode
Memory
Requirements
Description
Содержание CoreBuilder 3500
Страница 44: ...44 CHAPTER 2 MANAGEMENT ACCESS ...
Страница 58: ...58 CHAPTER 3 SYSTEM PARAMETERS ...
Страница 86: ...86 CHAPTER 5 ETHERNET ...
Страница 112: ...112 CHAPTER 6 FIBER DISTRIBUTED DATA INTERFACE FDDI ...
Страница 208: ...208 CHAPTER 9 VIRTUAL LANS ...
Страница 256: ...256 CHAPTER 10 PACKET FILTERING ...
Страница 330: ...330 CHAPTER 12 VIRTUAL ROUTER REDUNDANCY PROTOCOL VRRP ...
Страница 356: ...356 CHAPTER 13 IP MULTICAST ROUTING ...
Страница 418: ...418 CHAPTER 14 OPEN SHORTEST PATH FIRST OSPF ...
Страница 519: ...RSVP 519 Figure 94 Sample RSVP Configuration Source station End stations Routers ...
Страница 566: ...566 CHAPTER 18 DEVICE MONITORING ...
Страница 572: ...572 APPENDIX A TECHNICAL SUPPORT ...
Страница 592: ...592 INDEX ...