
Long Custom Filter Example
253
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
# 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 the 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.
Содержание CoreBuilder 3500
Страница 44: ...44 CHAPTER 2 MANAGEMENT ACCESS ...
Страница 58: ...58 CHAPTER 3 SYSTEM PARAMETERS ...
Страница 86: ...86 CHAPTER 5 ETHERNET ...
Страница 112: ...112 CHAPTER 6 FIBER DISTRIBUTED DATA INTERFACE FDDI ...
Страница 208: ...208 CHAPTER 9 VIRTUAL LANS ...
Страница 256: ...256 CHAPTER 10 PACKET FILTERING ...
Страница 330: ...330 CHAPTER 12 VIRTUAL ROUTER REDUNDANCY PROTOCOL VRRP ...
Страница 356: ...356 CHAPTER 13 IP MULTICAST ROUTING ...
Страница 418: ...418 CHAPTER 14 OPEN SHORTEST PATH FIRST OSPF ...
Страница 519: ...RSVP 519 Figure 94 Sample RSVP Configuration Source station End stations Routers ...
Страница 566: ...566 CHAPTER 18 DEVICE MONITORING ...
Страница 572: ...572 APPENDIX A TECHNICAL SUPPORT ...
Страница 592: ...592 INDEX ...