]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - contrib/libpcap/README.aix
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.git] / contrib / libpcap / README.aix
1 Using BPF:
2
3 (1) AIX 4.x's version of BPF is undocumented and somewhat unstandard; the
4     current BPF support code includes changes that should work around
5     that; it appears to compile and work on at least one AIX 4.3.3
6     machine.
7
8     Note that the BPF driver and the "/dev/bpf" devices might not exist
9     on your machine; AIX's tcpdump loads the driver and creates the
10     devices if they don't already exist.  Our libpcap should do the
11     same, and the configure script should detect that it's on an AIX
12     system and choose BPF even if the devices aren't there.
13
14 (2) If libpcap doesn't compile on your machine when configured to use
15     BPF, or if the workarounds fail to make it work correctly, you
16     should send to tcpdump-workers@tcpdump.org a detailed bug report (if
17     the compile fails, send us the compile error messages; if it
18     compiles but fails to work correctly, send us as detailed as
19     possible a description of the symptoms, including indications of the
20     network link-layer type being wrong or time stamps being wrong).
21
22     If you fix the problems yourself, please send to patches@tcpdump.org
23     a patch, so we can incorporate them into the next release.
24
25     If you don't fix the problems yourself, you can, as a workaround,
26     make libpcap use DLPI instead of BPF.
27
28     This can be done by specifying the flag:
29
30        --with-pcap=dlpi
31
32     to the "configure" script for libpcap.
33
34 If you use DLPI:
35
36 (1) It is a good idea to have the latest version of the DLPI driver on
37     your system, since certain versions may be buggy and cause your AIX
38     system to crash.  DLPI is included in the fileset bos.rte.tty.  I
39     found that the DLPI driver that came with AIX 4.3.2 was buggy, and
40     had to upgrade to bos.rte.tty 4.3.2.4:
41
42             lslpp -l bos.rte.tty
43
44             bos.rte.tty     4.3.2.4  COMMITTED  Base TTY Support and Commands
45
46     Updates for AIX filesets can be obtained from:
47     ftp://service.software.ibm.com/aix/fixes/
48
49     These updates can be installed with the smit program.
50
51 (2) After compiling libpcap, you need to make sure that the DLPI driver
52     is loaded.  Type:
53
54             strload -q -d dlpi
55
56     If the result is:
57
58             dlpi: yes
59
60     then the DLPI driver is loaded correctly.
61
62     If it is:
63
64             dlpi: no
65
66     Then you need to type:
67
68             strload -f /etc/dlpi.conf
69  
70     Check again with strload -q -d dlpi that the dlpi driver is loaded.  
71
72     Alternatively, you can uncomment the lines for DLPI in
73     /etc/pse.conf and reboot the machine; this way DLPI will always
74     be loaded when you boot your system.
75
76 (3) There appears to be a problem in the DLPI code in some versions of
77     AIX, causing a warning about DL_PROMISC_MULTI failing; this might
78     be responsible for DLPI not being able to capture outgoing packets.