
Long Custom Filter Example
349
Name
“Optimized IP XNS ticker bcast filter”
# Assign this filter in the multicast path
# of a port only--this is very important.
#
# XNS FILTERING SECTION (Assuming more XNS traffic)
pushField.a
0 #
pushLiteral.a 0xffffffffffff#
ne #
accept #
pushField.w
12
# Get the type field of the packet and
# place it on top of the stack.
pushTop # push copy of type
pushLiteral.w
0x0600
# Put the type value for XNS on top of
# the stack.
eq
# If the two values on the top of the
# stack are equal, then return a non-zero
# value.
pushLiteral.w 0x76c
# Put the lowest socket value on top of
# the stack.
pushField.w
30
# Put the value of the socket from the
# packet on top of the stack.
ge
# Compare if the value of the socket is
# greater than or equal to lower bound.
pushLiteral.w
0x0898
# Put the highest socket value on top of
# the stack.
pushField.w
30
# Put the value of the socket from the
# packet on top of the stack.
lt
# Compare if the value of the socket is
# less than the upper bound
and
# “and” together with “ge” and “lt” test
# to determine if the socket value is
# “within” the range. If it is, place a
# “one” on the stack
#
and
# Compare if XNS & in range
reject # reject if XNS and in range
#
# IP FILTERING SECTION
#
# The type field of the packet was
# place on top of the stack by the PushTop command.
#
pushLiteral.w
0x0800
# Put the type value for IP on top of
# the stack.
ne
# not IP
accept
# go no further
#
pushLiteral.w 0x76c
# Put the lowest socket value on top of
# the stack (1900).
pushField.w
24
# Put the value of the socket from the
# packet on top of the stack.
ge
# Compare if the value of the socket is
# greater than or equal to lower bound.
pushLiteral.w
0x0898
# Put the highest socket value on top of
# the stack (2200).
pushField.w
24
# Put the value of the socket from the
# packet on top of the stack.
lt
# Compare if the value of the socket is
# less than the upper bound
and
# “and” together with “ge” and “lt”.
# Test to determine if the socket value is
# “within” the range. If it is in range,
# place a “one” will on the stack.
not
# Discard (IP & in 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: ......