
226
C
HAPTER
10: P
ACKET
F
ILTERING
Table 31 describes the instructions and stacks of a packet filter.
Table 31
Packet Filter Instructions and Stacks — Descriptions and Guidelines
Element
Descriptions and Guidelines
Instructions
Each instruction in a packet filter definition must be on a separate line
in the packet filter definition file.
Instruction format
A typical instruction consists of an
opcode
followed by explicit
operands
and a
comment
. Although comments are optional, it is
recommended that you use them throughout the packet filter to make
it easier for yourself and others to administer the filters. Several
opcodes include an explicit operand size specification.
The general syntax of an instruction is:
<opcode>[.<size>] [<operand>...] [# <comment>]
Example:
pushliteral.l 0xffffff00
#load the type field
mask
Use any combination of uppercase and lowercase letters for the
opcode and size.
The contents of a line following the first # outside a quoted string are
ignored, so use the # to begin your comments. Comments are not
stored in the system; they are useful when the filter is created and
saved externally.
Operand sizes
The following operand sizes are supported:
■
1 byte = .b
■
2 bytes = .w
■
4 bytes = .l
■
6 bytes = .a (Included primarily for use with 48-bit, IEEE, globally
assigned MAC addresses)
Maximum length
The maximum length for a filter definition is 4096 bytes.
Stack
The packet filter language uses a
stack
to store the operands that will
be used by an instruction and the results of the instruction.
Operands are popped from the stack as required by the instructions.
An instruction using two or more operands takes the first operand
from the top of the stack, with subsequent operands taken in order
from succeeding levels of the stack.
The stack is a maximum of 64 bytes long, with space within the stack
allocated in multiples of 4 bytes. Thus you can have a maximum of 16
operands on the stack.
The address size operand .a consumes 8 bytes on the stack, decreasing
the maximum number of operands on the stack for a 48-bit address.
Содержание 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 ...