3Com corebuilder 3500 Implementation Manual page 253

Hide thumbs Also See for corebuilder 3500:
Table of Contents

Advertisement

4 Add an and statement to compare the results of step 2 with the results of
step 3:
and
# Compare if IP and in range.
This combination looks like this:
Name
"Only IP pkts w/in socket range"
pushField.w
12
pushLiteral.w
0x0800
eq
pushLiteral.w
0x76c
pushField.w
24
ge
pushLiteral.w
0x0898
pushField.w
24
lt
and
and
Long Custom Filter Example
# 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 the 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.
253

Advertisement

Table of Contents
loading

Table of Contents