3Com corebuilder 3500 Implementation Manual page 249

Hide thumbs Also See for corebuilder 3500:
Table of Contents

Advertisement

Name
"IP XNS ticker bcast filter"
pushField.a
0
pushLiteral.a
0xffffffffffff# filter
ne
accept
pushField.w
12
pushLiteral.w
0x0600
eq
pushLiteral.w
0x76c
pushField.w
30
ge
pushLiteral.w
0x0898
pushField.w
30
lt
and
and
pushField.w
12
pushLiteral.w
0x0800
eq
pushLiteral.w
0x76c
pushField.w
24
ge
pushLiteral.w
0x0898
pushField.w
24
lt
and
and
or
not
Long Custom Filter Example
# Assign this filter in the multicast path
# of a port only--this is very important.
#
# XNS FILTERING SECTION
#
# Apply
# only on broadcast traffic
#
# Get the type field of the packet and
# place it on top of the stack.
# Put the type value for XNS on top of
# the stack.
# If the two values on the top of the
# stack are equal, then return a non-zero
# value.
# Put the lowest socket value on top of
# the stack.
# Put the value of the socket from the
# packet on top of the stack.
# Compare if the value of the socket is
# greater than or equal to lower bound.
# Put the highest socket value on top of
# the stack.
# Put the value of the socket from the
# packet on top of the stack.
# Compare if the value of the socket is
# less than the upper bound
# "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
# Compare if XNS & in range
#
# IP FILTERING SECTION
#
# Get the type field of the packet and
# place it on top of the stack.
# Put the type value for IP on top of
# the stack.
# If the two values on the top of the
# stack are equal, then return a non-zero
# value.
# Put the lowest socket value on top of
# the stack (1900).
# Put the value of the socket from the
# packet on top of the stack.
# Compare if the value of the socket is
# greater than or equal to lower bound.
# Put the highest socket value on top of
# the stack (2200).
# Put the value of the socket from the
# packet on top of the stack.
# Compare if the value of the socket is
# less than the upper bound
# "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.
# Compare if IP and in range.
# Determine if the type field is either
# XNS or IP.
# Discard if (IP & in range) and (XNS & in
# range).
249

Advertisement

Table of Contents
loading

Table of Contents