
Long Custom Filter Example
343
Name
“IP XNS ticker bcast filter”
# Assign this filter in the multicast path
# of a port only--this is very important.
#
# XNS FILTERING SECTION
#
pushField.a
0 # Apply
pushLiteral.a 0xffffffffffff# filter
ne # only on broadcast traffic
accept #
pushField.w
12
# Get the type field of the packet and
# place it on top of the stack.
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
#
# IP FILTERING SECTION
#
pushField.w
12
# Get the type field of the packet and
# place it on top of the stack.
pushLiteral.w
0x0800
# Put the type value for IP 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 (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.
and
# Compare if IP and in range.
or
# Determine if the type field is either
# XNS or IP.
not
# Discard if (IP & in range) and (XNS & in
# range).
Содержание 4007
Страница 1: ...http www 3com com Switch 4007 Implementation Guide Release 3 0 5 Part No 10013673 Published May 2000 ...
Страница 36: ...36 ABOUT THIS GUIDE ...
Страница 37: ...I UNDERSTANDING YOUR SWITCH 4007 SYSTEM Chapter 1 Configuration Overview ...
Страница 38: ......
Страница 50: ...50 CHAPTER 1 CONFIGURATION OVERVIEW ...
Страница 52: ......
Страница 70: ...70 CHAPTER 3 INSTALLING MANAGEMENT MODULES ...
Страница 110: ...110 CHAPTER 4 CONFIGURING AND USING EME OPTIONS ...
Страница 130: ...130 CHAPTER 5 MANAGING THE CHASSIS POWER AND TEMPERATURE ...
Страница 222: ...222 CHAPTER 11 IP MULTICAST FILTERING WITH IGMP ...
Страница 240: ...240 CHAPTER 13 RESILIENT LINKS ...
Страница 304: ...304 CHAPTER 14 VIRTUAL LANS VLANS ...
Страница 350: ...350 CHAPTER 15 PACKET FILTERING ...
Страница 506: ...506 CHAPTER 19 OPEN SHORTEST PATH FIRST OSPF ROUTING ...
Страница 534: ...534 CHAPTER 20 IPX ROUTING ...
Страница 612: ...612 CHAPTER 22 QOS AND RSVP ...
Страница 656: ...656 CHAPTER 23 DEVICE MONITORING ...
Страница 657: ...IV REFERENCE Appendix A Technical Support Index ...
Страница 658: ......
Страница 664: ......