HP-UX Mobile IPv4 A.03.01 Administrator's Guide

8GTKH[KPICPF6TQWDNGUJQQVKPI
PGVVNCPFPGVHOV2CEMGV6TCEKPICPF(QTOCVVKPI
Chapter 8
91
Formatting Mobile IPv4 Packets
Use netfmt to format the nettl trace files. Specify the -N (“nice”) option so that netfmt
will format the Mobile IPv4 protocol packets and label the protocol fields. (The -N option
does not format AAA protocol packets. The netfmt utility shows AAA packet contents as
hexadecimal values.)
Filtering Mobile IPv4 Packets
You can filter the netfmt output to include only Mobile IPv4 packets by creating a
netfmt filter configuration file with the filters listed in Table 8-3.
Multiple Filters Do not mix filters in Table 8-3 from different protocol levels. If you
specify filters at multiple protocol levels (for example, filters at the IP level and filters at
the UDP level), netfmt will select only the packets that match at least one filter at each
level. The filters in Table 8-3 match different types of Mobile IPv4 packets; if you
combine filters from different protocol levels, no packets will be selected.
netfmt Filter Configuration File Name By default, netfmt tries to open
$HOME/netfmtrc as the filter configuration file. Alternatively, you can specify a filter
configuration file using the netfmt -c config_file option.
Additional Information For more information on netfmt, refer to the netfmt (1M)
man page.
Table 8-3 netfmt Filters for Mobile IPv4 Packets
Mobile IPv4 Packets netfmt Trace Filters
Registration Requests and Replies,
Route Optimization messages
(Binding updates)
filter udp_sport 434
filter udp_dport 434
Agent Advertisements, Agent
Solicitations (sent as ICMP Router
Advertisements and Solicitations)
filter ip_proto 1
filter ip_daddr advertisment_addr
(advertisement_addr is 255.255.255.255
or 224.0.0.1)
AAA messages filter tcp_sport 1812
filter tcp_sport 1812
(1812 is the default port for AAA
connections. If you have configured a
different AAA port number, replace 1812
with that port number.)
Tunneled packets filter ip_proto 4