1 # Compiling libpcap on AIX
3 * Autoconf is expected to work everywhere.
4 * Neither AIX lex nor AIX yacc nor AIX m4 are suitable.
8 * libpcap build fails with rpcapd enabled.
10 * flex 2.6.4 and GNU Bison 3.5.1 work.
12 * GCC 8.3.0 works, XL C 12.1.0 works.
16 * libpcap build fails with rpcapd enabled.
17 * GNU M4 1.4.17 works.
18 * flex 2.5.35 and GNU Bison 3.0.4 work.
19 * GCC 7.2.0 works, XL C 13.1.3 works.
21 ## Other AIX-related information
25 (1) AIX version of BPF is undocumented and somewhat unstandard; the
26 current BPF support code includes changes that should work around
27 that; however, it is no longer possible to verify this is the case.
29 Note that the BPF driver and the "/dev/bpf" devices might not exist
30 on your machine; AIX's tcpdump loads the driver and creates the
31 devices if they don't already exist. Our libpcap should do the
32 same, and the configure script should detect that it's on an AIX
33 system and choose BPF even if the devices aren't there.
35 (2) If libpcap doesn't compile on your machine when configured to use
36 BPF, or if the workarounds fail to make it work correctly, you
37 should send to tcpdump-workers@lists.tcpdump.org a detailed bug
38 report (if the compile fails, send us the compile error messages;
39 if it compiles but fails to work correctly, send us as detailed as
40 possible a description of the symptoms, including indications of the
41 network link-layer type being wrong or time stamps being wrong).
43 If you fix the problems yourself, please submit a patch by forking
46 https://github.com/the-tcpdump-group/libpcap/tree/master
48 and issuing a pull request, so we can incorporate the fixes into the
51 If you don't fix the problems yourself, you can, as a workaround,
52 make libpcap use DLPI instead of BPF.
54 This can be done by specifying the flag:
58 to the "configure" script for libpcap.
62 (1) It is a good idea to have the latest version of the DLPI driver on
63 your system, since certain versions may be buggy and cause your AIX
64 system to crash. DLPI is included in the fileset bos.rte.tty.
66 (2) After compiling libpcap, you need to make sure that the DLPI driver
75 then the DLPI driver is loaded correctly.
81 Then you need to type:
83 strload -f /etc/dlpi.conf
85 Check again with strload -q -d dlpi that the dlpi driver is loaded.
87 Alternatively, you can uncomment the lines for DLPI in
88 /etc/pse.conf and reboot the machine; this way DLPI will always
89 be loaded when you boot your system.
91 (3) There appears to be a problem in the DLPI code in some versions of
92 AIX, causing a warning about DL_PROMISC_MULTI failing; this might
93 be responsible for DLPI not being able to capture outgoing packets.