248
C
HAPTER
10: P
ACKET
F
ILTERING
You can use this information to create pseudocode that simplifies the
process of writing the actual filter. It helps to first write the pseudocode in
outline form, as shown here:
1
Determine if the packet has a broadcast address.
2
Determine if the packet is an XNS datagram.
3
Examine socket values and discard the packet if:
■
The socket value is greater than or equal to 0x76c
and
■
The socket value is less than 0x898
4
Determine if the packet is an IP datagram.
5
If so, then examine socket values and discard the packet if:
■
The socket value is greater than or equal to 0x76c
and
■
The socket value is less than 0x898
6
End the filter.
The pseudocode translates into the following complex packet filter:
Содержание 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 ...