
Custom Packet Filter Examples
237
Custom Packet
Filter Examples
The following examples of packet filters, which were built using the
packet filter language, start with basic concepts.
Destination
Address Filter
This filter operates on the destination address field of a frame. It allows
packets to be forwarded that are destined for stations with an
Organizationally Unique Identifier (OUI) of 08-00-02. To customize this
filter to another OUI value, change the literal value loaded in the last
pushLiteral.l instruction. The OUI must be padded with an additional 00
to fill out the literal to 4 bytes.
Source Address Filter
This filter operates on the source address field of a frame. It allows
packets to be forwarded that are from stations with an OUI of 08-00-02.
To customize this filter to another OUI value, change the literal value
loaded in the last pushLiteral.l instruction. The OUI must be padded with
an additional 00 to fill out the literal to 4 bytes.
Length Filter
This filter operates on the length field of a frame. It allows packets to be
forwarded that are less than 400 bytes in length. To customize this filter
to another length value, change the literal value loaded in the
pushLiteral.w instruction.
name
“Forward to 08-00-02”
pushField.l
0
# Get first 4 bytes of
# destination address.
pushLiteral.l
0xffffff00
# Set up mask to isolate first
# 3 bytes.
and
# Top of stack now has OUI
pushLiteral.l
0x08000200
# Load OUI value.
eq
# Check for match.
name
“Forward from 08-00-02”
pushField.l
6
# Get first 4 bytes of source
# address.
pushLiteral.l
0xffffff00
# Set up mask to isolate first
# 3 bytes.
and
# Top of stack now has OUI
pushLiteral.l
0x08000200
# Load OUI value.
eq
# Check for match.
name
“Forward < 400”
pushField.w
12
# Get length field.
pushLiteral.w
400
# Load length limit.
lt
# Check for frame length <
# limit.
Содержание 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 ...