
344
C
HAPTER
15: P
ACKET
F
ILTERING
The rest of this section concentrates on the parts of the complex filter,
showing you how to translate the pseudocode’s requirements into filter
language. The large filter is broken down into subsets to show how you
can create small filters that perform one or two tasks, and then combine
them for more sophisticated filtering. Table 70 describes how the purpose
of each pseudocode step is accomplished in the small series of packet
filters.
Packet Filter One
This filter is designed to leave a non-zero value on the stack for XNS
broadcast packets. If used alone, this filter accepts the very packets we
are trying to filter. The reason for doing this will become clear when the
filter is combined later in this section.
These steps show how to create this filter.
1
Name the filter:
Name
“Forward only XNS packets”
It is important to distinguish the function of each filter when it is loaded
onto a system that has more than one filter stored in memory. Naming is
also useful for archiving filters on a remote system so that the filters can
be saved and loaded on one or more systems.
2
Enter executable instruction #1:
pushField.a
0
# Clear the stack
3
Enter executable instruction #2:
pushField.a
0xffffffffffff
# Put the broadcast address on the top of the stack
Table 70
Pseudocode Requirements Mapped to the Packet Filter
Step
Accomplished through
1
The path to which you assign the packet filter. For administrative
purposes, this path is specified in the first two comment lines in the filter
definition. The filter must be assigned to a multicast path to filter packets
that have broadcast addresses.
2
Packet Filter One — Forwarding XNS packets
3
Packet Filter Two — Looking for specified socket range
4 & 5
Combining a Subset of Filters — Forwarding IP packets within specified
socket range
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: ......