
346
C
HAPTER
15: P
ACKET
F
ILTERING
4
Enter executable instruction #3:
ge
# Compare if the value of the socket is greater than
# or equal to the lower bound.
5
Enter executable instruction #4:
pushLiteral.w
0x0898
# Put the highest socket value on
# top of the stack.
6
Enter executable instruction #5:
pushField.w
30
# Put the value of the socket from the
# packet on top of the stack.
7
Enter executable instruction #6:
lt
# Compare if the value of the socket is less than the
# upper bound.
8
Enter executable instruction #7:
and
# “and” together with “ge” and “lt” test to determine
# if the socket value is “within” the range. If it is,
# place a non-zero value on the stack.
Combining a Subset of the Filters
The next filter places a non-zero value on the stack for IP packets with a
socket range of 0x76c (1900) and 0x898 (2200). The filter combines
packet filters one and two, modifying them for IP. These steps show how
to create this filter.
1
Name the filter:
name
“Only IP pkts w/in socket range”
2
Perform steps 6 through 8 as described earlier in “Packet Filter One”
except give the pushLiteral instruction (in step 7) a value of 0x0800 for IP.
3
Perform steps 2 through 8 as described earlier in “Packet Filter Two”
except the socket value for IP (in steps 3 and 6) is located 24 bytes into
the packet (instead of 30 as for XNS).
Содержание 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: ......