![3Com CoreBuilder 3500 Скачать руководство пользователя страница 229](http://html1.mh-extra.com/html/3com/corebuilder-3500/corebuilder-3500_implementation-manual_440863229.webp)
The Packet Filtering Language
229
pushTop
1 byte
Pushes the current top of the stack onto the stack (that
is, it reads the top of the stack and pushes the value
onto the stack, which effectively duplicates the item
currently on top of the stack). The size of the contents
of the stack determines the size of the push.
Use
pushTop
for each additional comparison you
intend to make with the current top of the stack. The
pushTop
instruction makes a copy of the field more
efficiently than if you use a second
pushField
instruction.
If you are writing a filter that is going to check the
same offset more than once, such as checking the
Ethernet type field to filter multiple protocols, use the
following guidelines. Assume that you want to filter
DEC LAT, IP, and ARP traffic on a port. Rather than use
multiple
pushField .w 12
commands to look at the
12th offset where the Ethernet type field resides, use
multiple
pushTop
commands, as shown here:
Original Filter:
pushField.w 12
pushLiteral.w 0x6004
eq
reject
pushField.w 12
pushLiteral.w 0x0800
eq
reject
pushField.w 12
pushLiteral.w 0x0806
ne
Shortened Filter:
PushField.w 12
pushTop
pushTop
pushLiteral.w 0x6004
eq
reject
pushLiteral.w 0x0800
eq
reject
pushLiteral.w 0x0806
ne
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 ...