
322
C
HAPTER
15: P
ACKET
F
ILTERING
The Ethernet and FDDI packet fields in Figure 24 are used as
operands
in
the packet filter. The two simplest operands are described in Table 65.
Packet Filter Opcodes
Opcodes are instructions used in packet filter definitions. The available
opcodes are described in Table 66.
Table 65
Two Packet Filter Operands
Operand
Description
Opcode
packet field
A field in the packet that can reside at any offset.
The size of the field can be 1, 2, 4, or 6 bytes.
Typically, you only specify a 6-byte field when you
want the filter to examine a 48-bit address.
pushField
constant
A literal value to which you are comparing a packet
field. As with a field, a constant can be 1, 2, 4, or 6
bytes long.
pushLiteral
Table 66
Packet Filtering Opcodes
Opcode
Memory
Requirements
Description
name “<name>”
2 +
n
bytes,
where
n
is the length
of the <name>
Assigns a user-defined <name> to the packet filter.
The name may be any sequence of ASCII characters
other than quotation marks. The name is limited to 32
characters. You can include only a single name
statement in each packet filter program.
pushField.size <offset> 3 bytes
Pushes a field from the target packet onto the stack.
Packet data starting at <offset> is copied onto the
stack. The most significant byte of the field is the byte
at the specified offset. The size field of the instruction
determines the number of bytes pushed. The pushField
instruction provides direct access to any 1, 2, 4, or 6
byte (.b, .w, .l, or .a) field contained within the first 64
bytes of the target packet.
Specify the offset as an octal, decimal, or hexadecimal
number.
■
Precede an octal number by a “0”.
■
Precede a hexadecimal number by either “0x” or
“0X”.
■
Use either upper or lower case letters for the
hexadecimal digits “a” through “f”.
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: ......