From cf6b26282289f3a96be3aaa3793904195ae1d40b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 18 Dec 2006 19:22:32 +0000 Subject: [PATCH] Ported tcpdump 3.9.5, and libpcap 0.9.5 to Haiku to test our link level packet monitor. Their build system and file hierarchy is pretty poor (as well as the internals of libpcap), but the app itself seems to work well :) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19556 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/network/Jamfile | 1 + src/bin/network/tcpdump/.cvsignore | 12 + src/bin/network/tcpdump/CHANGES | 819 + src/bin/network/tcpdump/CREDITS | 143 + src/bin/network/tcpdump/FILES | 248 + src/bin/network/tcpdump/INSTALL | 251 + src/bin/network/tcpdump/Jamfile | 130 + src/bin/network/tcpdump/LICENSE | 19 + src/bin/network/tcpdump/Makefile | 201 + src/bin/network/tcpdump/Makefile-devel-adds | 22 + src/bin/network/tcpdump/Makefile.in | 201 + src/bin/network/tcpdump/PLATFORMS | 9 + src/bin/network/tcpdump/README | 234 + src/bin/network/tcpdump/Readme.Win32 | 24 + src/bin/network/tcpdump/TODO | 6 + src/bin/network/tcpdump/VERSION | 1 + src/bin/network/tcpdump/acconfig.h | 136 + src/bin/network/tcpdump/aclocal.m4 | 1256 ++ src/bin/network/tcpdump/addrtoname.c | 1178 ++ src/bin/network/tcpdump/addrtoname.h | 46 + src/bin/network/tcpdump/ah.h | 57 + src/bin/network/tcpdump/aodv.h | 190 + src/bin/network/tcpdump/appletalk.h | 168 + src/bin/network/tcpdump/arcnet.h | 101 + src/bin/network/tcpdump/atime.awk | 18 + src/bin/network/tcpdump/atm.h | 32 + src/bin/network/tcpdump/atmuni31.h | 87 + src/bin/network/tcpdump/bgp.h | 17 + src/bin/network/tcpdump/bootp.h | 220 + src/bin/network/tcpdump/bpf_dump.c | 66 + src/bin/network/tcpdump/chdlc.h | 27 + src/bin/network/tcpdump/config.guess | 1429 ++ src/bin/network/tcpdump/config.h | 348 + src/bin/network/tcpdump/config.h.in | 347 + src/bin/network/tcpdump/config.log | 4001 +++++ src/bin/network/tcpdump/config.status | 1139 ++ src/bin/network/tcpdump/config.sub | 1531 ++ src/bin/network/tcpdump/configure | 14437 ++++++++++++++++ src/bin/network/tcpdump/configure.in | 989 ++ src/bin/network/tcpdump/cpack.c | 144 + src/bin/network/tcpdump/cpack.h | 51 + src/bin/network/tcpdump/dccp.h | 139 + src/bin/network/tcpdump/decnet.h | 461 + src/bin/network/tcpdump/decode_prefix.h | 41 + src/bin/network/tcpdump/enc.h | 47 + src/bin/network/tcpdump/esp.h | 68 + src/bin/network/tcpdump/ether.h | 59 + src/bin/network/tcpdump/ethertype.h | 143 + src/bin/network/tcpdump/extract.h | 126 + src/bin/network/tcpdump/fddi.h | 76 + src/bin/network/tcpdump/gmpls.c | 189 + src/bin/network/tcpdump/gmpls.h | 24 + src/bin/network/tcpdump/gmt2local.c | 71 + src/bin/network/tcpdump/gmt2local.h | 27 + src/bin/network/tcpdump/icmp6.h | 456 + src/bin/network/tcpdump/ieee802_11.h | 299 + src/bin/network/tcpdump/ieee802_11_radio.h | 213 + src/bin/network/tcpdump/igrp.h | 33 + src/bin/network/tcpdump/install-sh | 250 + src/bin/network/tcpdump/interface.h | 366 + src/bin/network/tcpdump/ip.h | 163 + src/bin/network/tcpdump/ip6.h | 191 + src/bin/network/tcpdump/ipfc.h | 29 + src/bin/network/tcpdump/ipproto.c | 60 + src/bin/network/tcpdump/ipproto.h | 144 + src/bin/network/tcpdump/ipsec_doi.h | 151 + src/bin/network/tcpdump/ipx.h | 31 + src/bin/network/tcpdump/isakmp.h | 378 + src/bin/network/tcpdump/l2tp.h | 62 + src/bin/network/tcpdump/l2vpn.c | 58 + src/bin/network/tcpdump/l2vpn.h | 17 + src/bin/network/tcpdump/lane.h | 41 + src/bin/network/tcpdump/lbl/os-osf4.h | 26 + src/bin/network/tcpdump/lbl/os-solaris2.h | 30 + src/bin/network/tcpdump/lbl/os-sunos4.h | 215 + src/bin/network/tcpdump/lbl/os-ultrix4.h | 39 + src/bin/network/tcpdump/libpcap/.cvsignore | 13 + src/bin/network/tcpdump/libpcap/CHANGES | 431 + src/bin/network/tcpdump/libpcap/CREDITS | 103 + .../network/tcpdump/libpcap/ChmodBPF/ChmodBPF | 33 + .../libpcap/ChmodBPF/StartupParameters.plist | 4 + src/bin/network/tcpdump/libpcap/FILES | 125 + src/bin/network/tcpdump/libpcap/INSTALL.txt | 383 + src/bin/network/tcpdump/libpcap/Jamfile | 28 + src/bin/network/tcpdump/libpcap/LICENSE | 19 + src/bin/network/tcpdump/libpcap/Makefile | 239 + src/bin/network/tcpdump/libpcap/Makefile.in | 239 + src/bin/network/tcpdump/libpcap/README | 94 + src/bin/network/tcpdump/libpcap/README.Win32 | 46 + src/bin/network/tcpdump/libpcap/README.aix | 78 + src/bin/network/tcpdump/libpcap/README.dag | 114 + src/bin/network/tcpdump/libpcap/README.hpux | 254 + src/bin/network/tcpdump/libpcap/README.linux | 88 + src/bin/network/tcpdump/libpcap/README.macosx | 43 + src/bin/network/tcpdump/libpcap/README.septel | 50 + src/bin/network/tcpdump/libpcap/README.tru64 | 49 + .../tcpdump/libpcap/SUNOS4/nit_if.o.sparc | Bin 0 -> 5212 bytes .../tcpdump/libpcap/SUNOS4/nit_if.o.sun3 | Bin 0 -> 4267 bytes .../libpcap/SUNOS4/nit_if.o.sun4c.4.0.3c | Bin 0 -> 5291 bytes src/bin/network/tcpdump/libpcap/TODO | 42 + src/bin/network/tcpdump/libpcap/VERSION | 1 + .../tcpdump/libpcap/Win32/Include/Gnuc.h | 46 + .../tcpdump/libpcap/Win32/Include/addrinfo.h | 122 + .../libpcap/Win32/Include/arpa/nameser.h | 349 + .../tcpdump/libpcap/Win32/Include/bittypes.h | 135 + .../tcpdump/libpcap/Win32/Include/cdecl_ext.h | 37 + .../libpcap/Win32/Include/inetprivate.h | 67 + .../tcpdump/libpcap/Win32/Include/ip6_misc.h | 165 + .../tcpdump/libpcap/Win32/Include/net/if.h | 230 + .../tcpdump/libpcap/Win32/Include/net/netdb.h | 164 + .../tcpdump/libpcap/Win32/Include/net/paths.h | 105 + .../libpcap/Win32/Include/sockstorage.h | 38 + .../tcpdump/libpcap/Win32/Prj/libpcap.dsp | 168 + .../tcpdump/libpcap/Win32/Prj/libpcap.dsw | 29 + .../network/tcpdump/libpcap/Win32/Src/ffs.c | 54 + .../tcpdump/libpcap/Win32/Src/gai_strerror.c | 77 + .../tcpdump/libpcap/Win32/Src/getaddrinfo.c | 1119 ++ .../tcpdump/libpcap/Win32/Src/getnetbynm.c | 44 + .../tcpdump/libpcap/Win32/Src/getnetent.c | 119 + .../tcpdump/libpcap/Win32/Src/getopt.c | 121 + .../tcpdump/libpcap/Win32/Src/getservent.c | 125 + .../tcpdump/libpcap/Win32/Src/inet_aton.c | 61 + .../tcpdump/libpcap/Win32/Src/inet_net.c | 101 + .../tcpdump/libpcap/Win32/Src/inet_pton.c | 69 + src/bin/network/tcpdump/libpcap/acconfig.h | 7 + src/bin/network/tcpdump/libpcap/aclocal.m4 | 900 + src/bin/network/tcpdump/libpcap/arcnet.h | 52 + src/bin/network/tcpdump/libpcap/atmuni31.h | 87 + .../tcpdump/libpcap/bpf/net/bpf_filter.c | 565 + src/bin/network/tcpdump/libpcap/bpf_dump.c | 62 + src/bin/network/tcpdump/libpcap/bpf_image.c | 288 + src/bin/network/tcpdump/libpcap/config.guess | 1429 ++ src/bin/network/tcpdump/libpcap/config.h | 181 + src/bin/network/tcpdump/libpcap/config.h.in | 189 + src/bin/network/tcpdump/libpcap/config.log | 1690 ++ src/bin/network/tcpdump/libpcap/config.status | 954 + src/bin/network/tcpdump/libpcap/config.sub | 1531 ++ src/bin/network/tcpdump/libpcap/configure | 8411 +++++++++ src/bin/network/tcpdump/libpcap/configure.in | 796 + src/bin/network/tcpdump/libpcap/doc/pcap.html | 997 ++ src/bin/network/tcpdump/libpcap/doc/pcap.txt | 1680 ++ src/bin/network/tcpdump/libpcap/doc/pcap.xml | 746 + src/bin/network/tcpdump/libpcap/etherent.c | 162 + src/bin/network/tcpdump/libpcap/ethertype.h | 119 + src/bin/network/tcpdump/libpcap/fad-getad.c | 284 + src/bin/network/tcpdump/libpcap/fad-gifc.c | 578 + src/bin/network/tcpdump/libpcap/fad-glifc.c | 386 + src/bin/network/tcpdump/libpcap/fad-null.c | 65 + src/bin/network/tcpdump/libpcap/fad-win32.c | 318 + src/bin/network/tcpdump/libpcap/gencode.c | 6915 ++++++++ src/bin/network/tcpdump/libpcap/gencode.h | 326 + src/bin/network/tcpdump/libpcap/grammar.y | 465 + src/bin/network/tcpdump/libpcap/inet.c | 750 + src/bin/network/tcpdump/libpcap/install-sh | 250 + src/bin/network/tcpdump/libpcap/lbl/os-aix4.h | 25 + .../network/tcpdump/libpcap/lbl/os-hpux11.h | 25 + src/bin/network/tcpdump/libpcap/lbl/os-osf4.h | 28 + src/bin/network/tcpdump/libpcap/lbl/os-osf5.h | 32 + .../network/tcpdump/libpcap/lbl/os-solaris2.h | 26 + .../network/tcpdump/libpcap/lbl/os-sunos4.h | 215 + .../network/tcpdump/libpcap/lbl/os-ultrix4.h | 39 + src/bin/network/tcpdump/libpcap/llc.h | 69 + .../tcpdump/libpcap/missing/snprintf.c | 632 + src/bin/network/tcpdump/libpcap/mkdep | 109 + src/bin/network/tcpdump/libpcap/msdos/bin2c.c | 43 + .../network/tcpdump/libpcap/msdos/common.dj | 80 + .../network/tcpdump/libpcap/msdos/makefile | 184 + .../network/tcpdump/libpcap/msdos/makefile.dj | 152 + .../network/tcpdump/libpcap/msdos/makefile.wc | 131 + src/bin/network/tcpdump/libpcap/msdos/ndis2.c | 860 + src/bin/network/tcpdump/libpcap/msdos/ndis2.h | 559 + .../network/tcpdump/libpcap/msdos/ndis_0.asm | 188 + .../network/tcpdump/libpcap/msdos/pkt_rx0.asm | 197 + .../network/tcpdump/libpcap/msdos/pkt_rx1.s | 155 + .../network/tcpdump/libpcap/msdos/pktdrvr.c | 1437 ++ .../network/tcpdump/libpcap/msdos/pktdrvr.h | 153 + .../network/tcpdump/libpcap/msdos/readme.dos | 162 + src/bin/network/tcpdump/libpcap/nametoaddr.c | 505 + src/bin/network/tcpdump/libpcap/net | 1 + src/bin/network/tcpdump/libpcap/nlpid.h | 58 + src/bin/network/tcpdump/libpcap/optimize.c | 2295 +++ .../tcpdump/libpcap/packaging/pcap.spec | 65 + .../tcpdump/libpcap/packaging/pcap.spec.in | 65 + src/bin/network/tcpdump/libpcap/pcap-bpf.c | 1134 ++ src/bin/network/tcpdump/libpcap/pcap-bpf.h | 736 + src/bin/network/tcpdump/libpcap/pcap-dag.c | 927 + src/bin/network/tcpdump/libpcap/pcap-dag.h | 14 + src/bin/network/tcpdump/libpcap/pcap-dlpi.c | 1873 ++ src/bin/network/tcpdump/libpcap/pcap-dos.c | 1474 ++ src/bin/network/tcpdump/libpcap/pcap-dos.h | 227 + src/bin/network/tcpdump/libpcap/pcap-enet.c | 235 + .../network/tcpdump/libpcap/pcap-haiku.cpp | 253 + src/bin/network/tcpdump/libpcap/pcap-int.h | 326 + src/bin/network/tcpdump/libpcap/pcap-linux.c | 2215 +++ src/bin/network/tcpdump/libpcap/pcap-namedb.h | 89 + src/bin/network/tcpdump/libpcap/pcap-nit.c | 356 + src/bin/network/tcpdump/libpcap/pcap-nit.h | 19 + src/bin/network/tcpdump/libpcap/pcap-null.c | 54 + src/bin/network/tcpdump/libpcap/pcap-pf.c | 610 + src/bin/network/tcpdump/libpcap/pcap-pf.h | 19 + src/bin/network/tcpdump/libpcap/pcap-septel.c | 307 + src/bin/network/tcpdump/libpcap/pcap-septel.h | 15 + src/bin/network/tcpdump/libpcap/pcap-snit.c | 419 + src/bin/network/tcpdump/libpcap/pcap-snoop.c | 405 + src/bin/network/tcpdump/libpcap/pcap-stdinc.h | 64 + src/bin/network/tcpdump/libpcap/pcap-win32.c | 784 + src/bin/network/tcpdump/libpcap/pcap.3 | 1311 ++ src/bin/network/tcpdump/libpcap/pcap.c | 914 + src/bin/network/tcpdump/libpcap/pcap.h | 324 + src/bin/network/tcpdump/libpcap/pcap1.h | 302 + src/bin/network/tcpdump/libpcap/pf.h | 77 + src/bin/network/tcpdump/libpcap/ppp.h | 58 + src/bin/network/tcpdump/libpcap/savefile.c | 1348 ++ src/bin/network/tcpdump/libpcap/scanner.l | 434 + src/bin/network/tcpdump/libpcap/sll.h | 124 + src/bin/network/tcpdump/libpcap/sunatmpos.h | 45 + src/bin/network/tcpdump/libpcap/version.c | 1 + src/bin/network/tcpdump/libpcap/version.h | 1 + src/bin/network/tcpdump/llc.h | 119 + src/bin/network/tcpdump/machdep.c | 67 + src/bin/network/tcpdump/machdep.h | 27 + src/bin/network/tcpdump/makemib | 249 + src/bin/network/tcpdump/mib.h | 1460 ++ src/bin/network/tcpdump/missing/addrinfo.h | 122 + src/bin/network/tcpdump/missing/addrsize.h | 36 + src/bin/network/tcpdump/missing/bittypes.h | 117 + src/bin/network/tcpdump/missing/datalinks.c | 67 + src/bin/network/tcpdump/missing/dlnames.c | 175 + src/bin/network/tcpdump/missing/getaddrinfo.c | 1115 ++ src/bin/network/tcpdump/missing/getnameinfo.c | 281 + src/bin/network/tcpdump/missing/inet_aton.c | 60 + src/bin/network/tcpdump/missing/inet_ntop.c | 219 + src/bin/network/tcpdump/missing/inet_pton.c | 58 + src/bin/network/tcpdump/missing/resolv6.h | 36 + src/bin/network/tcpdump/missing/resolv_ext.h | 49 + src/bin/network/tcpdump/missing/snprintf.c | 632 + src/bin/network/tcpdump/missing/sockstorage.h | 38 + src/bin/network/tcpdump/missing/strdup.c | 57 + src/bin/network/tcpdump/missing/strlcat.c | 76 + src/bin/network/tcpdump/missing/strlcpy.c | 73 + src/bin/network/tcpdump/missing/strsep.c | 83 + src/bin/network/tcpdump/mkdep | 109 + src/bin/network/tcpdump/mpls.h | 41 + src/bin/network/tcpdump/nameser.h | 306 + src/bin/network/tcpdump/netbios.h | 16 + src/bin/network/tcpdump/netdissect.h | 436 + src/bin/network/tcpdump/nfs.h | 453 + src/bin/network/tcpdump/nfsfh.h | 68 + src/bin/network/tcpdump/nlpid.c | 45 + src/bin/network/tcpdump/nlpid.h | 32 + src/bin/network/tcpdump/ntp.h | 127 + src/bin/network/tcpdump/oakley.h | 126 + src/bin/network/tcpdump/ospf.h | 315 + src/bin/network/tcpdump/ospf6.h | 278 + src/bin/network/tcpdump/oui.c | 95 + src/bin/network/tcpdump/oui.h | 78 + src/bin/network/tcpdump/packetdat.awk | 61 + src/bin/network/tcpdump/parsenfsfh.c | 458 + src/bin/network/tcpdump/pcap-missing.h | 60 + src/bin/network/tcpdump/pcap_dump_ftell.c | 36 + src/bin/network/tcpdump/pf.h | 77 + src/bin/network/tcpdump/pmap_prot.h | 89 + src/bin/network/tcpdump/ppp.h | 71 + src/bin/network/tcpdump/print-802_11.c | 1267 ++ src/bin/network/tcpdump/print-ah.c | 71 + src/bin/network/tcpdump/print-aodv.c | 455 + src/bin/network/tcpdump/print-ap1394.c | 119 + src/bin/network/tcpdump/print-arcnet.c | 297 + src/bin/network/tcpdump/print-arp.c | 341 + src/bin/network/tcpdump/print-ascii.c | 183 + src/bin/network/tcpdump/print-atalk.c | 627 + src/bin/network/tcpdump/print-atm.c | 336 + src/bin/network/tcpdump/print-beep.c | 71 + src/bin/network/tcpdump/print-bfd.c | 279 + src/bin/network/tcpdump/print-bgp.c | 2089 +++ src/bin/network/tcpdump/print-bootp.c | 706 + src/bin/network/tcpdump/print-cdp.c | 366 + src/bin/network/tcpdump/print-chdlc.c | 215 + src/bin/network/tcpdump/print-cip.c | 116 + src/bin/network/tcpdump/print-cnfp.c | 190 + src/bin/network/tcpdump/print-dccp.c | 533 + src/bin/network/tcpdump/print-decnet.c | 895 + src/bin/network/tcpdump/print-dhcp6.c | 739 + src/bin/network/tcpdump/print-domain.c | 716 + src/bin/network/tcpdump/print-dvmrp.c | 369 + src/bin/network/tcpdump/print-eap.c | 71 + src/bin/network/tcpdump/print-egp.c | 352 + src/bin/network/tcpdump/print-eigrp.c | 480 + src/bin/network/tcpdump/print-enc.c | 86 + src/bin/network/tcpdump/print-esp.c | 511 + src/bin/network/tcpdump/print-ether.c | 330 + src/bin/network/tcpdump/print-fddi.c | 309 + src/bin/network/tcpdump/print-fr.c | 855 + src/bin/network/tcpdump/print-frag6.c | 82 + src/bin/network/tcpdump/print-gre.c | 400 + src/bin/network/tcpdump/print-hsrp.c | 140 + src/bin/network/tcpdump/print-icmp.c | 632 + src/bin/network/tcpdump/print-icmp6.c | 1287 ++ src/bin/network/tcpdump/print-igmp.c | 336 + src/bin/network/tcpdump/print-igrp.c | 130 + src/bin/network/tcpdump/print-ip.c | 739 + src/bin/network/tcpdump/print-ip6.c | 238 + src/bin/network/tcpdump/print-ip6opts.c | 329 + src/bin/network/tcpdump/print-ipcomp.c | 91 + src/bin/network/tcpdump/print-ipfc.c | 135 + src/bin/network/tcpdump/print-ipx.c | 221 + src/bin/network/tcpdump/print-isakmp.c | 1449 ++ src/bin/network/tcpdump/print-isoclns.c | 2707 +++ src/bin/network/tcpdump/print-juniper.c | 1032 ++ src/bin/network/tcpdump/print-krb.c | 261 + src/bin/network/tcpdump/print-l2tp.c | 714 + src/bin/network/tcpdump/print-lane.c | 167 + src/bin/network/tcpdump/print-ldp.c | 617 + src/bin/network/tcpdump/print-llc.c | 531 + src/bin/network/tcpdump/print-lmp.c | 881 + src/bin/network/tcpdump/print-lspping.c | 867 + src/bin/network/tcpdump/print-lwres.c | 601 + src/bin/network/tcpdump/print-mobile.c | 109 + src/bin/network/tcpdump/print-mobility.c | 312 + src/bin/network/tcpdump/print-mpls.c | 189 + src/bin/network/tcpdump/print-msdp.c | 108 + src/bin/network/tcpdump/print-netbios.c | 91 + src/bin/network/tcpdump/print-nfs.c | 1730 ++ src/bin/network/tcpdump/print-ntp.c | 289 + src/bin/network/tcpdump/print-null.c | 188 + src/bin/network/tcpdump/print-ospf.c | 971 ++ src/bin/network/tcpdump/print-ospf6.c | 685 + src/bin/network/tcpdump/print-pflog.c | 170 + src/bin/network/tcpdump/print-pgm.c | 759 + src/bin/network/tcpdump/print-pim.c | 1093 ++ src/bin/network/tcpdump/print-ppp.c | 1757 ++ src/bin/network/tcpdump/print-pppoe.c | 209 + src/bin/network/tcpdump/print-pptp.c | 1060 ++ src/bin/network/tcpdump/print-radius.c | 937 + src/bin/network/tcpdump/print-raw.c | 53 + src/bin/network/tcpdump/print-rip.c | 254 + src/bin/network/tcpdump/print-ripng.c | 128 + src/bin/network/tcpdump/print-rsvp.c | 1565 ++ src/bin/network/tcpdump/print-rt6.c | 105 + src/bin/network/tcpdump/print-rx.c | 2487 +++ src/bin/network/tcpdump/print-sctp.c | 358 + src/bin/network/tcpdump/print-sip.c | 60 + src/bin/network/tcpdump/print-sl.c | 239 + src/bin/network/tcpdump/print-sll.c | 200 + src/bin/network/tcpdump/print-slow.c | 264 + src/bin/network/tcpdump/print-smb.c | 1471 ++ src/bin/network/tcpdump/print-snmp.c | 1904 ++ src/bin/network/tcpdump/print-stp.c | 102 + src/bin/network/tcpdump/print-sunatm.c | 117 + src/bin/network/tcpdump/print-sunrpc.c | 157 + src/bin/network/tcpdump/print-symantec.c | 121 + src/bin/network/tcpdump/print-syslog.c | 163 + src/bin/network/tcpdump/print-tcp.c | 807 + src/bin/network/tcpdump/print-telnet.c | 267 + src/bin/network/tcpdump/print-tftp.c | 155 + src/bin/network/tcpdump/print-timed.c | 111 + src/bin/network/tcpdump/print-token.c | 194 + src/bin/network/tcpdump/print-udp.c | 703 + src/bin/network/tcpdump/print-vjc.c | 119 + src/bin/network/tcpdump/print-vrrp.c | 141 + src/bin/network/tcpdump/print-wb.c | 444 + src/bin/network/tcpdump/print-zephyr.c | 313 + src/bin/network/tcpdump/route6d.h | 77 + src/bin/network/tcpdump/rpc_auth.h | 79 + src/bin/network/tcpdump/rpc_msg.h | 128 + src/bin/network/tcpdump/rx.h | 113 + src/bin/network/tcpdump/sctpConstants.h | 571 + src/bin/network/tcpdump/sctpHeader.h | 323 + src/bin/network/tcpdump/send-ack.awk | 68 + src/bin/network/tcpdump/setsignal.c | 93 + src/bin/network/tcpdump/setsignal.h | 27 + src/bin/network/tcpdump/slcompress.h | 87 + src/bin/network/tcpdump/slip.h | 34 + src/bin/network/tcpdump/sll.h | 127 + src/bin/network/tcpdump/smb.h | 122 + src/bin/network/tcpdump/smbutil.c | 1880 ++ src/bin/network/tcpdump/stime.awk | 19 + src/bin/network/tcpdump/strcasecmp.c | 93 + src/bin/network/tcpdump/tcp.h | 84 + src/bin/network/tcpdump/tcpdump-stdinc.h | 190 + src/bin/network/tcpdump/tcpdump.1 | 2356 +++ src/bin/network/tcpdump/tcpdump.c | 1461 ++ src/bin/network/tcpdump/telnet.h | 348 + src/bin/network/tcpdump/tests/.cvsignore | 11 + .../tcpdump/tests/02-sunrise-sunset-esp.puu | 34 + .../tcpdump/tests/08-sunrise-sunset-aes.puu | 36 + .../tcpdump/tests/08-sunrise-sunset-esp2.puu | 43 + src/bin/network/tcpdump/tests/alltests.sh | 12 + .../tcpdump/tests/bgp-infinite-loop.pcap | Bin 0 -> 554 bytes .../network/tcpdump/tests/bgp_vpn_attrset.out | 18 + .../tcpdump/tests/bgp_vpn_attrset.pcap | Bin 0 -> 217 bytes .../network/tcpdump/tests/bgp_vpn_attrset.sh | 11 + .../tcpdump/tests/chdlc-slarp-short.pcap | Bin 0 -> 58 bytes .../network/tcpdump/tests/chdlc-slarp.pcap | Bin 0 -> 62 bytes src/bin/network/tcpdump/tests/eapon1.gdbinit | 1 + src/bin/network/tcpdump/tests/eapon1.out | 114 + src/bin/network/tcpdump/tests/eapon1.puu | 368 + src/bin/network/tcpdump/tests/eapon1.sh | 13 + src/bin/network/tcpdump/tests/eapon2.puu | 66 + src/bin/network/tcpdump/tests/esp-secrets.txt | 5 + src/bin/network/tcpdump/tests/esp0.out | 8 + src/bin/network/tcpdump/tests/esp0.sh | 12 + src/bin/network/tcpdump/tests/esp1.gdbinit | 1 + src/bin/network/tcpdump/tests/esp1.out | 8 + src/bin/network/tcpdump/tests/esp1.sh | 13 + src/bin/network/tcpdump/tests/esp2.gdbinit | 1 + src/bin/network/tcpdump/tests/esp2.out | 8 + src/bin/network/tcpdump/tests/esp2.sh | 13 + src/bin/network/tcpdump/tests/esp3.gdbinit | 1 + src/bin/network/tcpdump/tests/esp3.sh | 12 + src/bin/network/tcpdump/tests/esp4.gdbinit | 2 + src/bin/network/tcpdump/tests/esp4.sh | 13 + src/bin/network/tcpdump/tests/esp5.gdbinit | 3 + src/bin/network/tcpdump/tests/esp5.out | 8 + src/bin/network/tcpdump/tests/esp5.sh | 13 + src/bin/network/tcpdump/tests/espudp1.out | 8 + src/bin/network/tcpdump/tests/espudp1.puu | 35 + src/bin/network/tcpdump/tests/espudp1.sh | 13 + .../tcpdump/tests/isakmp-delete-segfault.puu | 20 + .../tests/isakmp-identification-segfault.puu | 11 + .../tcpdump/tests/isakmp-pointer-loop.puu | 6 + src/bin/network/tcpdump/tests/isakmp1.out | 1 + src/bin/network/tcpdump/tests/isakmp1.sh | 12 + src/bin/network/tcpdump/tests/isakmp2.out | 1 + src/bin/network/tcpdump/tests/isakmp2.sh | 12 + src/bin/network/tcpdump/tests/isakmp3.out | 2 + src/bin/network/tcpdump/tests/isakmp3.sh | 13 + src/bin/network/tcpdump/tests/isakmp4.out | 35 + src/bin/network/tcpdump/tests/isakmp4.sh | 13 + src/bin/network/tcpdump/tests/isakmp4500.puu | 155 + .../tcpdump/tests/isis-infinite-loop.pcap | Bin 0 -> 454 bytes .../tcpdump/tests/ldp-infinite-loop.pcap | Bin 0 -> 414 bytes src/bin/network/tcpdump/tests/lmp.out | 191 + src/bin/network/tcpdump/tests/lmp.puu | 42 + src/bin/network/tcpdump/tests/lmp.sh | 14 + .../tcpdump/tests/lspping-fec-ldp.pcap | Bin 0 -> 1190 bytes .../tcpdump/tests/lspping-fec-rsvp.pcap | Bin 0 -> 984 bytes .../network/tcpdump/tests/mpls-ldp-hello.out | 9 + .../network/tcpdump/tests/mpls-ldp-hello.puu | 6 + .../network/tcpdump/tests/mpls-ldp-hello.sh | 14 + .../tcpdump/tests/mpls-traceroute.pcap | Bin 0 -> 1956 bytes src/bin/network/tcpdump/tests/ospf-gmpls.out | 83 + src/bin/network/tcpdump/tests/ospf-gmpls.puu | 18 + src/bin/network/tcpdump/tests/ospf-gmpls.sh | 14 + src/bin/network/tcpdump/tests/print-A.out | 193 + src/bin/network/tcpdump/tests/print-AA.out | 193 + src/bin/network/tcpdump/tests/print-capX.out | 409 + src/bin/network/tcpdump/tests/print-capXX.out | 419 + src/bin/network/tcpdump/tests/print-flags.puu | 151 + src/bin/network/tcpdump/tests/print-flags.sh | 12 + src/bin/network/tcpdump/tests/print-x.out | 409 + src/bin/network/tcpdump/tests/print-xx.out | 419 + .../tcpdump/tests/rsvp-infinite-loop.pcap | Bin 0 -> 384 bytes src/bin/network/tcpdump/timed.h | 92 + src/bin/network/tcpdump/token.h | 52 + src/bin/network/tcpdump/udp.h | 88 + src/bin/network/tcpdump/util.c | 530 + src/bin/network/tcpdump/version.c | 1 + src/bin/network/tcpdump/vfprintf.c | 59 + .../network/tcpdump/win32/Include/Arpa/tftp.h | 84 + .../tcpdump/win32/Include/Netinet/in_systm.h | 56 + .../tcpdump/win32/Include/Netinet/ip.h | 177 + src/bin/network/tcpdump/win32/Include/errno.h | 132 + .../network/tcpdump/win32/Include/getopt.h | 138 + .../tcpdump/win32/Include/inetprivate.h | 40 + .../network/tcpdump/win32/Include/telnet.h | 320 + .../network/tcpdump/win32/Include/w32_fzs.h | 48 + src/bin/network/tcpdump/win32/Src/getopt.c | 117 + src/bin/network/tcpdump/win32/prj/GNUmakefile | 162 + src/bin/network/tcpdump/win32/prj/WinDump.dsp | 583 + src/bin/network/tcpdump/win32/prj/WinDump.dsw | 29 + 471 files changed, 173829 insertions(+) create mode 100644 src/bin/network/tcpdump/.cvsignore create mode 100644 src/bin/network/tcpdump/CHANGES create mode 100644 src/bin/network/tcpdump/CREDITS create mode 100644 src/bin/network/tcpdump/FILES create mode 100644 src/bin/network/tcpdump/INSTALL create mode 100644 src/bin/network/tcpdump/Jamfile create mode 100644 src/bin/network/tcpdump/LICENSE create mode 100644 src/bin/network/tcpdump/Makefile create mode 100644 src/bin/network/tcpdump/Makefile-devel-adds create mode 100644 src/bin/network/tcpdump/Makefile.in create mode 100644 src/bin/network/tcpdump/PLATFORMS create mode 100644 src/bin/network/tcpdump/README create mode 100644 src/bin/network/tcpdump/Readme.Win32 create mode 100644 src/bin/network/tcpdump/TODO create mode 100644 src/bin/network/tcpdump/VERSION create mode 100644 src/bin/network/tcpdump/acconfig.h create mode 100644 src/bin/network/tcpdump/aclocal.m4 create mode 100644 src/bin/network/tcpdump/addrtoname.c create mode 100644 src/bin/network/tcpdump/addrtoname.h create mode 100644 src/bin/network/tcpdump/ah.h create mode 100644 src/bin/network/tcpdump/aodv.h create mode 100644 src/bin/network/tcpdump/appletalk.h create mode 100644 src/bin/network/tcpdump/arcnet.h create mode 100644 src/bin/network/tcpdump/atime.awk create mode 100644 src/bin/network/tcpdump/atm.h create mode 100644 src/bin/network/tcpdump/atmuni31.h create mode 100644 src/bin/network/tcpdump/bgp.h create mode 100644 src/bin/network/tcpdump/bootp.h create mode 100644 src/bin/network/tcpdump/bpf_dump.c create mode 100644 src/bin/network/tcpdump/chdlc.h create mode 100755 src/bin/network/tcpdump/config.guess create mode 100644 src/bin/network/tcpdump/config.h create mode 100644 src/bin/network/tcpdump/config.h.in create mode 100644 src/bin/network/tcpdump/config.log create mode 100755 src/bin/network/tcpdump/config.status create mode 100755 src/bin/network/tcpdump/config.sub create mode 100755 src/bin/network/tcpdump/configure create mode 100644 src/bin/network/tcpdump/configure.in create mode 100644 src/bin/network/tcpdump/cpack.c create mode 100644 src/bin/network/tcpdump/cpack.h create mode 100644 src/bin/network/tcpdump/dccp.h create mode 100644 src/bin/network/tcpdump/decnet.h create mode 100644 src/bin/network/tcpdump/decode_prefix.h create mode 100644 src/bin/network/tcpdump/enc.h create mode 100644 src/bin/network/tcpdump/esp.h create mode 100644 src/bin/network/tcpdump/ether.h create mode 100644 src/bin/network/tcpdump/ethertype.h create mode 100644 src/bin/network/tcpdump/extract.h create mode 100644 src/bin/network/tcpdump/fddi.h create mode 100644 src/bin/network/tcpdump/gmpls.c create mode 100644 src/bin/network/tcpdump/gmpls.h create mode 100644 src/bin/network/tcpdump/gmt2local.c create mode 100644 src/bin/network/tcpdump/gmt2local.h create mode 100644 src/bin/network/tcpdump/icmp6.h create mode 100644 src/bin/network/tcpdump/ieee802_11.h create mode 100644 src/bin/network/tcpdump/ieee802_11_radio.h create mode 100644 src/bin/network/tcpdump/igrp.h create mode 100755 src/bin/network/tcpdump/install-sh create mode 100644 src/bin/network/tcpdump/interface.h create mode 100644 src/bin/network/tcpdump/ip.h create mode 100644 src/bin/network/tcpdump/ip6.h create mode 100644 src/bin/network/tcpdump/ipfc.h create mode 100755 src/bin/network/tcpdump/ipproto.c create mode 100644 src/bin/network/tcpdump/ipproto.h create mode 100644 src/bin/network/tcpdump/ipsec_doi.h create mode 100644 src/bin/network/tcpdump/ipx.h create mode 100644 src/bin/network/tcpdump/isakmp.h create mode 100644 src/bin/network/tcpdump/l2tp.h create mode 100755 src/bin/network/tcpdump/l2vpn.c create mode 100755 src/bin/network/tcpdump/l2vpn.h create mode 100644 src/bin/network/tcpdump/lane.h create mode 100644 src/bin/network/tcpdump/lbl/os-osf4.h create mode 100644 src/bin/network/tcpdump/lbl/os-solaris2.h create mode 100644 src/bin/network/tcpdump/lbl/os-sunos4.h create mode 100644 src/bin/network/tcpdump/lbl/os-ultrix4.h create mode 100644 src/bin/network/tcpdump/libpcap/.cvsignore create mode 100644 src/bin/network/tcpdump/libpcap/CHANGES create mode 100644 src/bin/network/tcpdump/libpcap/CREDITS create mode 100755 src/bin/network/tcpdump/libpcap/ChmodBPF/ChmodBPF create mode 100644 src/bin/network/tcpdump/libpcap/ChmodBPF/StartupParameters.plist create mode 100644 src/bin/network/tcpdump/libpcap/FILES create mode 100644 src/bin/network/tcpdump/libpcap/INSTALL.txt create mode 100644 src/bin/network/tcpdump/libpcap/Jamfile create mode 100644 src/bin/network/tcpdump/libpcap/LICENSE create mode 100644 src/bin/network/tcpdump/libpcap/Makefile create mode 100644 src/bin/network/tcpdump/libpcap/Makefile.in create mode 100644 src/bin/network/tcpdump/libpcap/README create mode 100644 src/bin/network/tcpdump/libpcap/README.Win32 create mode 100644 src/bin/network/tcpdump/libpcap/README.aix create mode 100644 src/bin/network/tcpdump/libpcap/README.dag create mode 100644 src/bin/network/tcpdump/libpcap/README.hpux create mode 100644 src/bin/network/tcpdump/libpcap/README.linux create mode 100644 src/bin/network/tcpdump/libpcap/README.macosx create mode 100644 src/bin/network/tcpdump/libpcap/README.septel create mode 100644 src/bin/network/tcpdump/libpcap/README.tru64 create mode 100644 src/bin/network/tcpdump/libpcap/SUNOS4/nit_if.o.sparc create mode 100644 src/bin/network/tcpdump/libpcap/SUNOS4/nit_if.o.sun3 create mode 100644 src/bin/network/tcpdump/libpcap/SUNOS4/nit_if.o.sun4c.4.0.3c create mode 100644 src/bin/network/tcpdump/libpcap/TODO create mode 100644 src/bin/network/tcpdump/libpcap/VERSION create mode 100644 src/bin/network/tcpdump/libpcap/Win32/Include/Gnuc.h create mode 100644 src/bin/network/tcpdump/libpcap/Win32/Include/addrinfo.h create mode 100644 src/bin/network/tcpdump/libpcap/Win32/Include/arpa/nameser.h create mode 100644 src/bin/network/tcpdump/libpcap/Win32/Include/bittypes.h create mode 100644 src/bin/network/tcpdump/libpcap/Win32/Include/cdecl_ext.h create mode 100644 src/bin/network/tcpdump/libpcap/Win32/Include/inetprivate.h create mode 100644 src/bin/network/tcpdump/libpcap/Win32/Include/ip6_misc.h create mode 100644 src/bin/network/tcpdump/libpcap/Win32/Include/net/if.h create mode 100644 src/bin/network/tcpdump/libpcap/Win32/Include/net/netdb.h create mode 100644 src/bin/network/tcpdump/libpcap/Win32/Include/net/paths.h create mode 100644 src/bin/network/tcpdump/libpcap/Win32/Include/sockstorage.h create mode 100644 src/bin/network/tcpdump/libpcap/Win32/Prj/libpcap.dsp create mode 100644 src/bin/network/tcpdump/libpcap/Win32/Prj/libpcap.dsw create mode 100644 src/bin/network/tcpdump/libpcap/Win32/Src/ffs.c create mode 100644 src/bin/network/tcpdump/libpcap/Win32/Src/gai_strerror.c create mode 100644 src/bin/network/tcpdump/libpcap/Win32/Src/getaddrinfo.c create mode 100644 src/bin/network/tcpdump/libpcap/Win32/Src/getnetbynm.c create mode 100644 src/bin/network/tcpdump/libpcap/Win32/Src/getnetent.c create mode 100644 src/bin/network/tcpdump/libpcap/Win32/Src/getopt.c create mode 100644 src/bin/network/tcpdump/libpcap/Win32/Src/getservent.c create mode 100644 src/bin/network/tcpdump/libpcap/Win32/Src/inet_aton.c create mode 100644 src/bin/network/tcpdump/libpcap/Win32/Src/inet_net.c create mode 100644 src/bin/network/tcpdump/libpcap/Win32/Src/inet_pton.c create mode 100644 src/bin/network/tcpdump/libpcap/acconfig.h create mode 100644 src/bin/network/tcpdump/libpcap/aclocal.m4 create mode 100644 src/bin/network/tcpdump/libpcap/arcnet.h create mode 100644 src/bin/network/tcpdump/libpcap/atmuni31.h create mode 100644 src/bin/network/tcpdump/libpcap/bpf/net/bpf_filter.c create mode 100644 src/bin/network/tcpdump/libpcap/bpf_dump.c create mode 100644 src/bin/network/tcpdump/libpcap/bpf_image.c create mode 100755 src/bin/network/tcpdump/libpcap/config.guess create mode 100644 src/bin/network/tcpdump/libpcap/config.h create mode 100644 src/bin/network/tcpdump/libpcap/config.h.in create mode 100644 src/bin/network/tcpdump/libpcap/config.log create mode 100755 src/bin/network/tcpdump/libpcap/config.status create mode 100755 src/bin/network/tcpdump/libpcap/config.sub create mode 100755 src/bin/network/tcpdump/libpcap/configure create mode 100644 src/bin/network/tcpdump/libpcap/configure.in create mode 100644 src/bin/network/tcpdump/libpcap/doc/pcap.html create mode 100644 src/bin/network/tcpdump/libpcap/doc/pcap.txt create mode 100644 src/bin/network/tcpdump/libpcap/doc/pcap.xml create mode 100644 src/bin/network/tcpdump/libpcap/etherent.c create mode 100644 src/bin/network/tcpdump/libpcap/ethertype.h create mode 100644 src/bin/network/tcpdump/libpcap/fad-getad.c create mode 100644 src/bin/network/tcpdump/libpcap/fad-gifc.c create mode 100644 src/bin/network/tcpdump/libpcap/fad-glifc.c create mode 100644 src/bin/network/tcpdump/libpcap/fad-null.c create mode 100644 src/bin/network/tcpdump/libpcap/fad-win32.c create mode 100644 src/bin/network/tcpdump/libpcap/gencode.c create mode 100644 src/bin/network/tcpdump/libpcap/gencode.h create mode 100644 src/bin/network/tcpdump/libpcap/grammar.y create mode 100644 src/bin/network/tcpdump/libpcap/inet.c create mode 100755 src/bin/network/tcpdump/libpcap/install-sh create mode 100644 src/bin/network/tcpdump/libpcap/lbl/os-aix4.h create mode 100644 src/bin/network/tcpdump/libpcap/lbl/os-hpux11.h create mode 100644 src/bin/network/tcpdump/libpcap/lbl/os-osf4.h create mode 100644 src/bin/network/tcpdump/libpcap/lbl/os-osf5.h create mode 100644 src/bin/network/tcpdump/libpcap/lbl/os-solaris2.h create mode 100644 src/bin/network/tcpdump/libpcap/lbl/os-sunos4.h create mode 100644 src/bin/network/tcpdump/libpcap/lbl/os-ultrix4.h create mode 100644 src/bin/network/tcpdump/libpcap/llc.h create mode 100644 src/bin/network/tcpdump/libpcap/missing/snprintf.c create mode 100755 src/bin/network/tcpdump/libpcap/mkdep create mode 100644 src/bin/network/tcpdump/libpcap/msdos/bin2c.c create mode 100644 src/bin/network/tcpdump/libpcap/msdos/common.dj create mode 100644 src/bin/network/tcpdump/libpcap/msdos/makefile create mode 100644 src/bin/network/tcpdump/libpcap/msdos/makefile.dj create mode 100644 src/bin/network/tcpdump/libpcap/msdos/makefile.wc create mode 100644 src/bin/network/tcpdump/libpcap/msdos/ndis2.c create mode 100644 src/bin/network/tcpdump/libpcap/msdos/ndis2.h create mode 100644 src/bin/network/tcpdump/libpcap/msdos/ndis_0.asm create mode 100644 src/bin/network/tcpdump/libpcap/msdos/pkt_rx0.asm create mode 100644 src/bin/network/tcpdump/libpcap/msdos/pkt_rx1.s create mode 100644 src/bin/network/tcpdump/libpcap/msdos/pktdrvr.c create mode 100644 src/bin/network/tcpdump/libpcap/msdos/pktdrvr.h create mode 100644 src/bin/network/tcpdump/libpcap/msdos/readme.dos create mode 100644 src/bin/network/tcpdump/libpcap/nametoaddr.c create mode 120000 src/bin/network/tcpdump/libpcap/net create mode 100644 src/bin/network/tcpdump/libpcap/nlpid.h create mode 100644 src/bin/network/tcpdump/libpcap/optimize.c create mode 100644 src/bin/network/tcpdump/libpcap/packaging/pcap.spec create mode 100644 src/bin/network/tcpdump/libpcap/packaging/pcap.spec.in create mode 100644 src/bin/network/tcpdump/libpcap/pcap-bpf.c create mode 100644 src/bin/network/tcpdump/libpcap/pcap-bpf.h create mode 100644 src/bin/network/tcpdump/libpcap/pcap-dag.c create mode 100644 src/bin/network/tcpdump/libpcap/pcap-dag.h create mode 100644 src/bin/network/tcpdump/libpcap/pcap-dlpi.c create mode 100644 src/bin/network/tcpdump/libpcap/pcap-dos.c create mode 100644 src/bin/network/tcpdump/libpcap/pcap-dos.h create mode 100644 src/bin/network/tcpdump/libpcap/pcap-enet.c create mode 100644 src/bin/network/tcpdump/libpcap/pcap-haiku.cpp create mode 100644 src/bin/network/tcpdump/libpcap/pcap-int.h create mode 100644 src/bin/network/tcpdump/libpcap/pcap-linux.c create mode 100644 src/bin/network/tcpdump/libpcap/pcap-namedb.h create mode 100644 src/bin/network/tcpdump/libpcap/pcap-nit.c create mode 100644 src/bin/network/tcpdump/libpcap/pcap-nit.h create mode 100644 src/bin/network/tcpdump/libpcap/pcap-null.c create mode 100644 src/bin/network/tcpdump/libpcap/pcap-pf.c create mode 100644 src/bin/network/tcpdump/libpcap/pcap-pf.h create mode 100644 src/bin/network/tcpdump/libpcap/pcap-septel.c create mode 100644 src/bin/network/tcpdump/libpcap/pcap-septel.h create mode 100644 src/bin/network/tcpdump/libpcap/pcap-snit.c create mode 100644 src/bin/network/tcpdump/libpcap/pcap-snoop.c create mode 100644 src/bin/network/tcpdump/libpcap/pcap-stdinc.h create mode 100644 src/bin/network/tcpdump/libpcap/pcap-win32.c create mode 100644 src/bin/network/tcpdump/libpcap/pcap.3 create mode 100644 src/bin/network/tcpdump/libpcap/pcap.c create mode 100644 src/bin/network/tcpdump/libpcap/pcap.h create mode 100644 src/bin/network/tcpdump/libpcap/pcap1.h create mode 100644 src/bin/network/tcpdump/libpcap/pf.h create mode 100644 src/bin/network/tcpdump/libpcap/ppp.h create mode 100644 src/bin/network/tcpdump/libpcap/savefile.c create mode 100644 src/bin/network/tcpdump/libpcap/scanner.l create mode 100644 src/bin/network/tcpdump/libpcap/sll.h create mode 100644 src/bin/network/tcpdump/libpcap/sunatmpos.h create mode 100644 src/bin/network/tcpdump/libpcap/version.c create mode 100644 src/bin/network/tcpdump/libpcap/version.h create mode 100644 src/bin/network/tcpdump/llc.h create mode 100644 src/bin/network/tcpdump/machdep.c create mode 100644 src/bin/network/tcpdump/machdep.h create mode 100755 src/bin/network/tcpdump/makemib create mode 100644 src/bin/network/tcpdump/mib.h create mode 100644 src/bin/network/tcpdump/missing/addrinfo.h create mode 100644 src/bin/network/tcpdump/missing/addrsize.h create mode 100644 src/bin/network/tcpdump/missing/bittypes.h create mode 100644 src/bin/network/tcpdump/missing/datalinks.c create mode 100644 src/bin/network/tcpdump/missing/dlnames.c create mode 100644 src/bin/network/tcpdump/missing/getaddrinfo.c create mode 100644 src/bin/network/tcpdump/missing/getnameinfo.c create mode 100644 src/bin/network/tcpdump/missing/inet_aton.c create mode 100644 src/bin/network/tcpdump/missing/inet_ntop.c create mode 100644 src/bin/network/tcpdump/missing/inet_pton.c create mode 100644 src/bin/network/tcpdump/missing/resolv6.h create mode 100644 src/bin/network/tcpdump/missing/resolv_ext.h create mode 100644 src/bin/network/tcpdump/missing/snprintf.c create mode 100644 src/bin/network/tcpdump/missing/sockstorage.h create mode 100644 src/bin/network/tcpdump/missing/strdup.c create mode 100644 src/bin/network/tcpdump/missing/strlcat.c create mode 100644 src/bin/network/tcpdump/missing/strlcpy.c create mode 100644 src/bin/network/tcpdump/missing/strsep.c create mode 100755 src/bin/network/tcpdump/mkdep create mode 100644 src/bin/network/tcpdump/mpls.h create mode 100644 src/bin/network/tcpdump/nameser.h create mode 100644 src/bin/network/tcpdump/netbios.h create mode 100644 src/bin/network/tcpdump/netdissect.h create mode 100644 src/bin/network/tcpdump/nfs.h create mode 100644 src/bin/network/tcpdump/nfsfh.h create mode 100755 src/bin/network/tcpdump/nlpid.c create mode 100644 src/bin/network/tcpdump/nlpid.h create mode 100644 src/bin/network/tcpdump/ntp.h create mode 100644 src/bin/network/tcpdump/oakley.h create mode 100644 src/bin/network/tcpdump/ospf.h create mode 100644 src/bin/network/tcpdump/ospf6.h create mode 100644 src/bin/network/tcpdump/oui.c create mode 100644 src/bin/network/tcpdump/oui.h create mode 100644 src/bin/network/tcpdump/packetdat.awk create mode 100644 src/bin/network/tcpdump/parsenfsfh.c create mode 100644 src/bin/network/tcpdump/pcap-missing.h create mode 100644 src/bin/network/tcpdump/pcap_dump_ftell.c create mode 100644 src/bin/network/tcpdump/pf.h create mode 100644 src/bin/network/tcpdump/pmap_prot.h create mode 100644 src/bin/network/tcpdump/ppp.h create mode 100644 src/bin/network/tcpdump/print-802_11.c create mode 100644 src/bin/network/tcpdump/print-ah.c create mode 100644 src/bin/network/tcpdump/print-aodv.c create mode 100644 src/bin/network/tcpdump/print-ap1394.c create mode 100644 src/bin/network/tcpdump/print-arcnet.c create mode 100644 src/bin/network/tcpdump/print-arp.c create mode 100644 src/bin/network/tcpdump/print-ascii.c create mode 100644 src/bin/network/tcpdump/print-atalk.c create mode 100644 src/bin/network/tcpdump/print-atm.c create mode 100644 src/bin/network/tcpdump/print-beep.c create mode 100644 src/bin/network/tcpdump/print-bfd.c create mode 100644 src/bin/network/tcpdump/print-bgp.c create mode 100644 src/bin/network/tcpdump/print-bootp.c create mode 100644 src/bin/network/tcpdump/print-cdp.c create mode 100644 src/bin/network/tcpdump/print-chdlc.c create mode 100644 src/bin/network/tcpdump/print-cip.c create mode 100644 src/bin/network/tcpdump/print-cnfp.c create mode 100644 src/bin/network/tcpdump/print-dccp.c create mode 100644 src/bin/network/tcpdump/print-decnet.c create mode 100644 src/bin/network/tcpdump/print-dhcp6.c create mode 100644 src/bin/network/tcpdump/print-domain.c create mode 100644 src/bin/network/tcpdump/print-dvmrp.c create mode 100644 src/bin/network/tcpdump/print-eap.c create mode 100644 src/bin/network/tcpdump/print-egp.c create mode 100644 src/bin/network/tcpdump/print-eigrp.c create mode 100644 src/bin/network/tcpdump/print-enc.c create mode 100644 src/bin/network/tcpdump/print-esp.c create mode 100644 src/bin/network/tcpdump/print-ether.c create mode 100644 src/bin/network/tcpdump/print-fddi.c create mode 100644 src/bin/network/tcpdump/print-fr.c create mode 100644 src/bin/network/tcpdump/print-frag6.c create mode 100644 src/bin/network/tcpdump/print-gre.c create mode 100644 src/bin/network/tcpdump/print-hsrp.c create mode 100644 src/bin/network/tcpdump/print-icmp.c create mode 100644 src/bin/network/tcpdump/print-icmp6.c create mode 100644 src/bin/network/tcpdump/print-igmp.c create mode 100644 src/bin/network/tcpdump/print-igrp.c create mode 100644 src/bin/network/tcpdump/print-ip.c create mode 100644 src/bin/network/tcpdump/print-ip6.c create mode 100644 src/bin/network/tcpdump/print-ip6opts.c create mode 100644 src/bin/network/tcpdump/print-ipcomp.c create mode 100644 src/bin/network/tcpdump/print-ipfc.c create mode 100644 src/bin/network/tcpdump/print-ipx.c create mode 100644 src/bin/network/tcpdump/print-isakmp.c create mode 100644 src/bin/network/tcpdump/print-isoclns.c create mode 100644 src/bin/network/tcpdump/print-juniper.c create mode 100644 src/bin/network/tcpdump/print-krb.c create mode 100644 src/bin/network/tcpdump/print-l2tp.c create mode 100644 src/bin/network/tcpdump/print-lane.c create mode 100644 src/bin/network/tcpdump/print-ldp.c create mode 100644 src/bin/network/tcpdump/print-llc.c create mode 100644 src/bin/network/tcpdump/print-lmp.c create mode 100644 src/bin/network/tcpdump/print-lspping.c create mode 100644 src/bin/network/tcpdump/print-lwres.c create mode 100644 src/bin/network/tcpdump/print-mobile.c create mode 100644 src/bin/network/tcpdump/print-mobility.c create mode 100644 src/bin/network/tcpdump/print-mpls.c create mode 100644 src/bin/network/tcpdump/print-msdp.c create mode 100644 src/bin/network/tcpdump/print-netbios.c create mode 100644 src/bin/network/tcpdump/print-nfs.c create mode 100644 src/bin/network/tcpdump/print-ntp.c create mode 100644 src/bin/network/tcpdump/print-null.c create mode 100644 src/bin/network/tcpdump/print-ospf.c create mode 100644 src/bin/network/tcpdump/print-ospf6.c create mode 100644 src/bin/network/tcpdump/print-pflog.c create mode 100644 src/bin/network/tcpdump/print-pgm.c create mode 100644 src/bin/network/tcpdump/print-pim.c create mode 100644 src/bin/network/tcpdump/print-ppp.c create mode 100644 src/bin/network/tcpdump/print-pppoe.c create mode 100644 src/bin/network/tcpdump/print-pptp.c create mode 100644 src/bin/network/tcpdump/print-radius.c create mode 100644 src/bin/network/tcpdump/print-raw.c create mode 100644 src/bin/network/tcpdump/print-rip.c create mode 100644 src/bin/network/tcpdump/print-ripng.c create mode 100644 src/bin/network/tcpdump/print-rsvp.c create mode 100644 src/bin/network/tcpdump/print-rt6.c create mode 100644 src/bin/network/tcpdump/print-rx.c create mode 100644 src/bin/network/tcpdump/print-sctp.c create mode 100644 src/bin/network/tcpdump/print-sip.c create mode 100644 src/bin/network/tcpdump/print-sl.c create mode 100644 src/bin/network/tcpdump/print-sll.c create mode 100644 src/bin/network/tcpdump/print-slow.c create mode 100644 src/bin/network/tcpdump/print-smb.c create mode 100644 src/bin/network/tcpdump/print-snmp.c create mode 100644 src/bin/network/tcpdump/print-stp.c create mode 100644 src/bin/network/tcpdump/print-sunatm.c create mode 100644 src/bin/network/tcpdump/print-sunrpc.c create mode 100644 src/bin/network/tcpdump/print-symantec.c create mode 100755 src/bin/network/tcpdump/print-syslog.c create mode 100644 src/bin/network/tcpdump/print-tcp.c create mode 100644 src/bin/network/tcpdump/print-telnet.c create mode 100644 src/bin/network/tcpdump/print-tftp.c create mode 100644 src/bin/network/tcpdump/print-timed.c create mode 100644 src/bin/network/tcpdump/print-token.c create mode 100644 src/bin/network/tcpdump/print-udp.c create mode 100644 src/bin/network/tcpdump/print-vjc.c create mode 100644 src/bin/network/tcpdump/print-vrrp.c create mode 100644 src/bin/network/tcpdump/print-wb.c create mode 100644 src/bin/network/tcpdump/print-zephyr.c create mode 100644 src/bin/network/tcpdump/route6d.h create mode 100644 src/bin/network/tcpdump/rpc_auth.h create mode 100644 src/bin/network/tcpdump/rpc_msg.h create mode 100644 src/bin/network/tcpdump/rx.h create mode 100644 src/bin/network/tcpdump/sctpConstants.h create mode 100644 src/bin/network/tcpdump/sctpHeader.h create mode 100644 src/bin/network/tcpdump/send-ack.awk create mode 100644 src/bin/network/tcpdump/setsignal.c create mode 100644 src/bin/network/tcpdump/setsignal.h create mode 100644 src/bin/network/tcpdump/slcompress.h create mode 100644 src/bin/network/tcpdump/slip.h create mode 100644 src/bin/network/tcpdump/sll.h create mode 100644 src/bin/network/tcpdump/smb.h create mode 100644 src/bin/network/tcpdump/smbutil.c create mode 100644 src/bin/network/tcpdump/stime.awk create mode 100644 src/bin/network/tcpdump/strcasecmp.c create mode 100644 src/bin/network/tcpdump/tcp.h create mode 100644 src/bin/network/tcpdump/tcpdump-stdinc.h create mode 100644 src/bin/network/tcpdump/tcpdump.1 create mode 100644 src/bin/network/tcpdump/tcpdump.c create mode 100644 src/bin/network/tcpdump/telnet.h create mode 100644 src/bin/network/tcpdump/tests/.cvsignore create mode 100644 src/bin/network/tcpdump/tests/02-sunrise-sunset-esp.puu create mode 100644 src/bin/network/tcpdump/tests/08-sunrise-sunset-aes.puu create mode 100644 src/bin/network/tcpdump/tests/08-sunrise-sunset-esp2.puu create mode 100644 src/bin/network/tcpdump/tests/alltests.sh create mode 100644 src/bin/network/tcpdump/tests/bgp-infinite-loop.pcap create mode 100644 src/bin/network/tcpdump/tests/bgp_vpn_attrset.out create mode 100644 src/bin/network/tcpdump/tests/bgp_vpn_attrset.pcap create mode 100755 src/bin/network/tcpdump/tests/bgp_vpn_attrset.sh create mode 100644 src/bin/network/tcpdump/tests/chdlc-slarp-short.pcap create mode 100644 src/bin/network/tcpdump/tests/chdlc-slarp.pcap create mode 100644 src/bin/network/tcpdump/tests/eapon1.gdbinit create mode 100644 src/bin/network/tcpdump/tests/eapon1.out create mode 100644 src/bin/network/tcpdump/tests/eapon1.puu create mode 100755 src/bin/network/tcpdump/tests/eapon1.sh create mode 100644 src/bin/network/tcpdump/tests/eapon2.puu create mode 100644 src/bin/network/tcpdump/tests/esp-secrets.txt create mode 100644 src/bin/network/tcpdump/tests/esp0.out create mode 100644 src/bin/network/tcpdump/tests/esp0.sh create mode 100644 src/bin/network/tcpdump/tests/esp1.gdbinit create mode 100644 src/bin/network/tcpdump/tests/esp1.out create mode 100644 src/bin/network/tcpdump/tests/esp1.sh create mode 100644 src/bin/network/tcpdump/tests/esp2.gdbinit create mode 100644 src/bin/network/tcpdump/tests/esp2.out create mode 100644 src/bin/network/tcpdump/tests/esp2.sh create mode 100644 src/bin/network/tcpdump/tests/esp3.gdbinit create mode 100644 src/bin/network/tcpdump/tests/esp3.sh create mode 100644 src/bin/network/tcpdump/tests/esp4.gdbinit create mode 100644 src/bin/network/tcpdump/tests/esp4.sh create mode 100644 src/bin/network/tcpdump/tests/esp5.gdbinit create mode 100644 src/bin/network/tcpdump/tests/esp5.out create mode 100644 src/bin/network/tcpdump/tests/esp5.sh create mode 100644 src/bin/network/tcpdump/tests/espudp1.out create mode 100644 src/bin/network/tcpdump/tests/espudp1.puu create mode 100644 src/bin/network/tcpdump/tests/espudp1.sh create mode 100644 src/bin/network/tcpdump/tests/isakmp-delete-segfault.puu create mode 100644 src/bin/network/tcpdump/tests/isakmp-identification-segfault.puu create mode 100644 src/bin/network/tcpdump/tests/isakmp-pointer-loop.puu create mode 100644 src/bin/network/tcpdump/tests/isakmp1.out create mode 100644 src/bin/network/tcpdump/tests/isakmp1.sh create mode 100644 src/bin/network/tcpdump/tests/isakmp2.out create mode 100644 src/bin/network/tcpdump/tests/isakmp2.sh create mode 100644 src/bin/network/tcpdump/tests/isakmp3.out create mode 100644 src/bin/network/tcpdump/tests/isakmp3.sh create mode 100644 src/bin/network/tcpdump/tests/isakmp4.out create mode 100644 src/bin/network/tcpdump/tests/isakmp4.sh create mode 100644 src/bin/network/tcpdump/tests/isakmp4500.puu create mode 100644 src/bin/network/tcpdump/tests/isis-infinite-loop.pcap create mode 100644 src/bin/network/tcpdump/tests/ldp-infinite-loop.pcap create mode 100644 src/bin/network/tcpdump/tests/lmp.out create mode 100644 src/bin/network/tcpdump/tests/lmp.puu create mode 100755 src/bin/network/tcpdump/tests/lmp.sh create mode 100644 src/bin/network/tcpdump/tests/lspping-fec-ldp.pcap create mode 100644 src/bin/network/tcpdump/tests/lspping-fec-rsvp.pcap create mode 100644 src/bin/network/tcpdump/tests/mpls-ldp-hello.out create mode 100644 src/bin/network/tcpdump/tests/mpls-ldp-hello.puu create mode 100755 src/bin/network/tcpdump/tests/mpls-ldp-hello.sh create mode 100644 src/bin/network/tcpdump/tests/mpls-traceroute.pcap create mode 100644 src/bin/network/tcpdump/tests/ospf-gmpls.out create mode 100644 src/bin/network/tcpdump/tests/ospf-gmpls.puu create mode 100755 src/bin/network/tcpdump/tests/ospf-gmpls.sh create mode 100644 src/bin/network/tcpdump/tests/print-A.out create mode 100644 src/bin/network/tcpdump/tests/print-AA.out create mode 100644 src/bin/network/tcpdump/tests/print-capX.out create mode 100644 src/bin/network/tcpdump/tests/print-capXX.out create mode 100644 src/bin/network/tcpdump/tests/print-flags.puu create mode 100755 src/bin/network/tcpdump/tests/print-flags.sh create mode 100644 src/bin/network/tcpdump/tests/print-x.out create mode 100644 src/bin/network/tcpdump/tests/print-xx.out create mode 100644 src/bin/network/tcpdump/tests/rsvp-infinite-loop.pcap create mode 100644 src/bin/network/tcpdump/timed.h create mode 100644 src/bin/network/tcpdump/token.h create mode 100644 src/bin/network/tcpdump/udp.h create mode 100644 src/bin/network/tcpdump/util.c create mode 100644 src/bin/network/tcpdump/version.c create mode 100644 src/bin/network/tcpdump/vfprintf.c create mode 100644 src/bin/network/tcpdump/win32/Include/Arpa/tftp.h create mode 100644 src/bin/network/tcpdump/win32/Include/Netinet/in_systm.h create mode 100644 src/bin/network/tcpdump/win32/Include/Netinet/ip.h create mode 100644 src/bin/network/tcpdump/win32/Include/errno.h create mode 100644 src/bin/network/tcpdump/win32/Include/getopt.h create mode 100644 src/bin/network/tcpdump/win32/Include/inetprivate.h create mode 100644 src/bin/network/tcpdump/win32/Include/telnet.h create mode 100644 src/bin/network/tcpdump/win32/Include/w32_fzs.h create mode 100644 src/bin/network/tcpdump/win32/Src/getopt.c create mode 100644 src/bin/network/tcpdump/win32/prj/GNUmakefile create mode 100644 src/bin/network/tcpdump/win32/prj/WinDump.dsp create mode 100644 src/bin/network/tcpdump/win32/prj/WinDump.dsw diff --git a/src/bin/network/Jamfile b/src/bin/network/Jamfile index 45b4092425..1d70b7f16e 100644 --- a/src/bin/network/Jamfile +++ b/src/bin/network/Jamfile @@ -7,6 +7,7 @@ SubInclude HAIKU_TOP src bin network ifconfig ; #SubInclude HAIKU_TOP src bin network ppp_up ; SubInclude HAIKU_TOP src bin network ping ; SubInclude HAIKU_TOP src bin network route ; +SubInclude HAIKU_TOP src bin network tcpdump ; SubInclude HAIKU_TOP src bin network telnet ; SubInclude HAIKU_TOP src bin network telnetd ; SubInclude HAIKU_TOP src bin network traceroute ; diff --git a/src/bin/network/tcpdump/.cvsignore b/src/bin/network/tcpdump/.cvsignore new file mode 100644 index 0000000000..791f14cdb7 --- /dev/null +++ b/src/bin/network/tcpdump/.cvsignore @@ -0,0 +1,12 @@ +version.c +Makefile +Makefile-devel.in +config.status +config.log +config.cache +config.h +.devel +stamp-h +stamp-h.in +tcpdump +autom4te.cache diff --git a/src/bin/network/tcpdump/CHANGES b/src/bin/network/tcpdump/CHANGES new file mode 100644 index 0000000000..deadb90720 --- /dev/null +++ b/src/bin/network/tcpdump/CHANGES @@ -0,0 +1,819 @@ +$Header: /tcpdump/master/tcpdump/CHANGES,v 1.87.2.12 2006/09/19 18:24:44 ken Exp $ + +Tue. September 19, 2006. ken@xelerance.com. Summary for 3.9.5 tcpdump release + + Fix compiling on AIX (, at end of ENUM) + Updated list of DNS RR typecodes + Use local Ethernet defs on WIN32 + Add support for Frame-Relay ARP + Fixes for compiling under MSVC++ + Add support for parsing Juniper .pcap files + Add support for FRF.16 Multilink Frame-Relay (DLT_MFR) + Rework the OSPFv3 printer + Fix printing for 4.4BSD/NetBSD NFS Filehandles + Add support for Cisco style NLPID encapsulation + Add cisco prop. eigrp related, extended communities + Add support for BGP signaled VPLS + Cleanup the bootp printer + Add support for PPP over Frame-Relay + Add some bounds checking to the IP options code, and clean up + the options output a bit. + Add additional modp groups to ISAKMP printer + Add support for Address-Withdraw and Label-Withdraw Msgs + Add support for the BFD Discriminator TLV + Fixes for 64bit compiling + Add support for PIMv2 checksum verification + Add support for further dissection of the IPCP Compression Option + Add support for Cisco's proposed VQP protocol + Add basic support for keyed authentication TCP option + Lots of minor cosmetic changes to output printers + + +Mon. September 19, 2005. ken@xelerance.com. Summary for 3.9.4 tcpdump release + Decoder support for more Juniper link-layer types + Fix a potential buffer overflow (although it can't occur in + practice). + Fix the handling of unknown management frame types in the 802.11 + printer. + Add FRF.16 support, fix various Frame Relay bugs. + Add support for RSVP integrity objects, update fast-reroute + object printer to latest spec. + Clean up documentation of vlan filter expression, document mpls + filter expression. + Document new pppoed and pppoes filter expressions. + Update diffserver-TE codepoints as per RFC 4124. + Spelling fixes in ICMPv6. + Don't require any fields other than flags to be present in IS-IS + restart signaling TLVs, and only print the system ID in + those TLVs as system IDs, not as node IDs. + Support for DCCP. + +Tue. July 5, 2005. ken@xelerance.com. Summary for 3.9.3 tcpdump release + + Option to chroot() when dropping privs + Fixes for compiling on nearly every platform, + including improved 64bit support + Many new testcases + Support for sending packets + Many compliation fixes on most platforms + Fixes for recent version of GCC to eliminate warnings + Improved Unicode support + + Decoders & DLT Changes, Updates and New: + AES ESP support + Juniper ATM, FRF.15, FRF.16, PPPoE, + ML-FR, ML-PIC, ML-PPP, PL-PPP, LS-PIC + GGSN,ES,MONITOR,SERVICES + L2VPN + Axent Raptor/Symantec Firewall + TCP-MD5 (RFC 2385) + ESP-in-UDP (RFC 3948) + ATM OAM + LMP, LMP Service Discovery + IP over FC + IP over IEEE 1394 + BACnet MS/TP + SS7 + LDP over TCP + LACP, MARKER as per 802.3ad + PGM (RFC 3208) + LSP-PING + G.7041/Y.1303 Generic Framing Procedure + EIGRP-IP, EIGRP-IPX + ICMP6 + Radio - via radiotap + DHCPv6 + HDLC over PPP + +Tue. March 30, 2004. mcr@sandelman.ottawa.on.ca. Summary for 3.8.3 release + + No changes from 3.8.2. Version bumped only to maintain consistency + with libpcap 0.8.3. + +Mon. March 29, 2004. mcr@sandelman.ottawa.on.ca. Summary for 3.8.2 release + + Fixes for print-isakmp.c CVE: CAN-2004-0183, CAN-2004-0184 + http://www.rapid7.com/advisories/R7-0017.html + IP-over-IEEE1394 printing. + some MINGW32 changes. + updates for autoconf 2.5 + fixes for print-aodv.c - check for too short packets + formatting changes to print-ascii for hex output. + check for too short packets: print-bgp.c, print-bootp.c, print-cdp.c, + print-chdlc.c, print-domain.c, print-icmp.c, print-icmp6.c, + print-ip.c, print-lwres.c, print-ospf.c, print-pim.c, + print-ppp.c,print-pppoe.c, print-rsvp.c, print-wb.c + print-ether.c - better handling of unknown types. + print-isoclns.c - additional decoding of types. + print-llc.c - strings for LLC names added. + print-pfloc.c - various enhancements + print-radius.c - better decoding to strings. + +Wed. November 12, 2003. mcr@sandelman.ottawa.on.ca. Summary for 3.8 release + + changed syntax of -E argument so that multiple SAs can be decrypted + fixes for Digital Unix headers and Documentation + __attribute__ fixes + CDP changes from Terry Kennedy . + IPv6 mobility updates from Kazushi Sugyo + Fixes for ASN.1 decoder for 2.100.3 forms. + Added a count of packets received and processed to clarify numbers. + Incorporated WinDUMP patches for Win32 builds. + PPPoE payload length headers. + Fixes for HP C compiler builds. + Use new pcap_breakloop() and pcap_findalldevs() if we can. + BGP output split into multiple lines. + Fixes to 802.11 decoding. + Fixes to PIM decoder. + SuperH is a CPU that can't handle unaligned access. Many fixes for + unaligned access work. + Fixes to Frame-Relay decoder for Q.933/922 frames. + Clarified when Solaris can do captures as non-root. + Added tests/ subdir for examples/regression tests. + New -U flag. -flush stdout after every packet + New -A flag -print ascii only + support for decoding IS-IS inside Cisco HDLC Frames + more verbosity for tftp decoder + mDNS decoder + new BFD decoder + cross compilation patches + RFC 3561 AODV support. + UDP/TCP pseudo-checksum properly for source-route options. + sanitized all files to modified BSD license + Add support for RFC 2625 IP-over-Fibre Channel. + fixes for DECnet support. + Support RFC 2684 bridging of Ethernet, 802.5 Token Ring, and FDDI. + RFC 2684 encapsulation of BPDUs. + +Tuesday, February 25, 2003. fenner@research.att.com. 3.7.2 release + + Fixed infinite loop when parsing malformed isakmp packets. + (reported by iDefense; already fixed in CVS) + Fixed infinite loop when parsing malformed BGP packets. + Fixed buffer overflow with certain malformed NFS packets. + Pretty-print unprintable network names in 802.11 printer. + Handle truncated nbp (appletalk) packets. + Updated DHCPv6 printer to match draft-ietf-dhc-dhcpv6-22.txt + Print IP protocol name even if we don't have a printer for it. + Print IP protocol name or number for fragments. + Print the whole MPLS label stack, not just the top label. + Print request header and file handle for NFS v3 FSINFO and PATHCONF + requests. + Fix NFS packet truncation checks. + Handle "old" DR-Priority and Bidir-Capable PIM HELLO options. + Handle unknown RADIUS attributes properly. + Fix an ASN.1 parsing error that would cause e.g. the OID + 2.100.3 to be misrepresented as 4.20.3 . + +Monday, January 21, 2002. mcr@sandelman.ottawa.on.ca. Summary for 3.7 release +see http://www.tcpdump.org/cvs-log/2002-01-21.10:16:48.html for commit log. + keyword "ipx" added. + Better OSI/802.2 support on Linux. + IEEE 802.11 support, from clenahan@fortresstech.com, achirica@ttd.net. + LLC SAP support for FDDI/token ring/RFC-1483 style ATM + BXXP protocol was replaced by the BEEP protocol; + improvements to SNAP demux. + Changes to "any" interface documentation. + Documentation on pcap_stats() counters. + Fix a memory leak found by Miklos Szeredi - pcap_ether_aton(). + Added MPLS encapsulation decoding per RFC3032. + DNS dissector handles TKEY, TSIG and IXFR. + adaptive SLIP interface patch from Igor Khristophorov + SMB printing has much improved bounds checks + OUI 0x0000f8 decoded as encapsulated ethernet for Cisco-custom bridging + Zephyr support, from Nickolai Zeldovich . + Solaris - devices with digits in them. Stefan Hudson + IPX socket 0x85be is for Cisco EIGRP over IPX. + Improvements to fragmented ESP handling. + SCTP support from Armando L. Caro Jr. + Linux ARPHDR_ATM support fixed. + Added a "netbeui" keyword, which selects NetBEUI packets. + IPv6 ND improvements, MobileIP dissector, 2292bis-02 for RA option. + Handle ARPHDR_HDLC from Marcus Felipe Pereira . + Handle IPX socket 0x553 -> NetBIOS-over-IPX socket, "nwlink-dgm" + Better Linux libc5 compat. + BIND9 lwres dissector added. + MIPS and SPARC get strict alignment macros (affects print-bgp.c) + Apple LocalTalk LINKTYPE_ reserved. + New time stamp formats documented. + DHCP6 updated to draft-22.txt spec. + ICMP types/codes now accept symbolic names. + Add SIGINFO handler from LBL + encrypted CIPE tunnels in IRIX, from Franz Schaefer . + now we are -Wstrict-prototype clean. + NetBSD DLT_PPP_ETHER; adapted from Martin Husemann . + PPPoE dissector cleaned up. + Support for LocalTalk hardware, from Uns Lider . + In dissector, now the caller prints the IP addresses rather than proto. + cjclark@alum.mit.edu: print the IP proto for non-initial fragments. + LLC frames with a DSAP and LSAP of 0xe0 are IPX frames. + Linux cooked frames with a type value of LINUX_SLL_P_802_3 are IPX. + captures on the "any" device won't be done in promiscuous mode + Token Ring support on DLPI - Onno van der Linden + ARCNet support, from NetBSD. + HSRP dissector, from Julian Cowley . + Handle (GRE-encapsulated) PPTP + added -C option to rotate save file every optarg * 1,000,000 bytes. + support for "vrrp" name - NetBSD, by Klaus Klein . + PPTP support, from Motonori Shindo . + IS-IS over PPP support, from Hannes Gredler . + CNFP support for IPv6,format. Harry Raaymakers . + ESP printing updated to RFC2406. + HP-UX can now handle large number of PPAs. + MSDP printer added. + L2TP dissector improvements from Motonori Shindo. + +Tuesday January 9, 2001. mcr@sandelman.ottawa.on.ca. Summary for 3.6 release + Cleaned up documentation. + Promisc mode fixes for Linux + IPsec changes/cleanups. + Alignment fixes for picky architectures + + Removed dependency on native headers for packet dissectors. + Removed Linux specific headers that were shipped + + libpcap changes provide for exchanging capture files between + systems. Save files now have well known PACKET_ values instead of + depending upon system dependant mappings of DLT_* types. + + Support for computing/checking IP and UDP/TCP checksums. + + Updated autoconf stock files. + + IPv6 improvements: dhcp (draft-15), mobile-ip6, ppp, ospf6, + + Added dissector support for: ISOCLNS, Token Ring, IGMPv3, bxxp, + timed, vrrp, radius, chdlc, cnfp, cdp, IEEE802.1d, raw-AppleTalk + + Added filtering support for: VLANs, ESIS, ISIS + + Improvements to: print-telnet, IPTalk, bootp/dhcp, ECN, PPP, + L2TP, PPPoE + + HP-UX 11.0 -- find the right dlpi device. + Solaris 8 - IPv6 works + Linux - Added support for an "any" device to capture on all interfaces + + Security fixes: buffer overrun audit done. Strcpy replaced with + strlcpy, sprintf replaced with snprintf. + Look for lex problems, and warn about them. + + +v3.5 Fri Jan 28 18:00:00 PST 2000 + +Bill Fenner +- switch to config.h for autoconf +- unify RCSID strings +- Updated PIMv1, PIMv2, DVMRP, IGMP parsers, add Cisco Auto-RP parser +- Really fix the RIP printer +- Fix MAC address -> name translation. +- some -Wall -Wformat fixes +- update makemib to parse much of SMIv2 +- Print TCP sequence # with -vv even if you normally wouldn't +- Print as much of IP/TCP/UDP headers as possible even if truncated. + +itojun@iijlab.net +- -X will make a ascii dump. from netbsd. +- telnet command sequence decoder (ff xx xx). from netbsd. +- print-bgp.c: improve options printing. ugly code exists for + unaligned option parsing (need some fix). +- const poisoning in SMB decoder. +- -Wall -Werror clean checks. +- bring in KAME IPv6/IPsec decoding code. + +Assar Westerlund +- SNMPv2 and SNMPv3 printer +- If compiled with libsmi, tcpdump can load MIBs on the fly to decode + SNMP packets. +- Incorporate NFS parsing code from NetBSD. Adds support for nfsv3. +- portability fixes +- permit building in different directories. + +Ken Hornstein +- bring in code at + /afs/transarc.com/public/afs-contrib/tools/tcpdump for parsing + AFS3 packets + +Andrew Tridgell +- SMB printing code + +Love +- print-rx.c: add code for printing MakeDir and StoreStatus. Also + change date format to the right one. + +Michael C. Richardson +- Created tcpdump.org repository + +v3.4 Sat Jul 25 12:40:55 PDT 1998 + +- Hardwire Linux slip support since it's too hard to detect. + +- Redo configuration of "network" libraries (-lsocket and -lnsl) to + deal with IRIX. Thanks to John Hawkinson (jhawk@mit.edu) + +- Added -a which tries to translate network and broadcast addresses to + names. Suggested by Rob van Nieuwkerk (robn@verdi.et.tudelft.nl) + +- Added a configure option to disable gcc. + +- Added a "raw" packet printer. + +- Not having an interface address is no longer fatal. Requested by John + Hawkinson. + +- Rework signal setup to accommodate Linux. + +- OSPF truncation check fix. Also display the type of OSPF packets + using MD5 authentication. Thanks to Brian Wellington + (bwelling@tis.com) + +- Fix truncation check bugs in the Kerberos printer. Reported by Ezra + Peisach (epeisach@mit.edu) + +- Don't catch SIGHUP when invoked with nohup(1). Thanks to Dave Plonka + (plonka@mfa.com) + +- Specify full install target as a way of detecting if install + directory does not exist. Thanks to Dave Plonka. + +- Bit-swap FDDI addresses for BSD/OS too. Thanks to Paul Vixie + (paul@vix.com) + +- Fix off-by-one bug when testing size of ethernet packets. Thanks to + Marty Leisner (leisner@sdsp.mc.xerox.com) + +- Add a local autoconf macro to check for routines in libraries; the + autoconf version is broken (it only puts the library name in the + cache variable name). Thanks to John Hawkinson. + +- Add a local autoconf macro to check for types; the autoconf version + is broken (it uses grep instead of actually compiling a code fragment). + +- Modified to support the new BSD/OS 2.1 PPP and SLIP link layer header + formats. + +- Extend OSF ip header workaround to versions 1 and 2. + +- Fix some signed problems in the nfs printer. As reported by David + Sacerdote (davids@silence.secnet.com) + +- Detect group wheel and use it as the default since BSD/OS' install + can't hack numeric groups. Reported by David Sacerdote. + +- AIX needs special loader options. Thanks to Jonathan I. Kamens + (jik@cam.ov.com) + +- Fixed the nfs printer to print port numbers in decimal. Thanks to + Kent Vander Velden (graphix@iastate.edu) + +- Find installed libpcap in /usr/local/lib when not using gcc. + +- Disallow network masks with non-network bits set. + +- Attempt to detect "egcs" versions of gcc. + +- Add missing closing double quotes when displaying bootp strings. + Reported by Viet-Trung Luu (vluu@picard.math.uwaterloo.ca) + +v3.3 Sat Nov 30 20:56:27 PST 1996 + +- Added Linux support. + +- GRE encapsulated packet printer thanks to John Hawkinson + (jhawk@mit.edu) + +- Rewrite gmt2local() to avoid problematic os dependencies. + +- Suppress nfs truncation message on errors. + +- Add missing m4 quoting in AC_LBL_UNALIGNED_ACCESS autoconf macro. + Reported by Joachim Ott (ott@ardala.han.de) + +- Enable "ip_hl vs. ip_vhl" workaround for OSF4 too. + +- Print arp hardware type in host order. Thanks to Onno van der Linden + (onno@simplex.nl) + +- Avoid solaris compiler warnings. Thanks to Bruce Barnett + (barnett@grymoire.crd.ge.com) + +- Fix rip printer to not print one more route than is actually in the + packet. Thanks to Jean-Luc Richier (Jean-Luc.Richier@imag.fr) and + Bill Fenner (fenner@parc.xerox.com) + +- Use autoconf endian detection since BYTE_ORDER isn't defined on all systems. + +- Fix dvmrp printer truncation checks and add a dvmrp probe printer. + Thanks to Danny J. Mitzel (mitzel@ipsilon.com) + +- Rewrite ospf printer to improve truncation checks. + +- Don't parse tcp options past the EOL. As noted by David Sacerdote + (davids@secnet.com). Also, check tcp options to make sure they ar + actually in the tcp header (in addition to the normal truncation + checks). Fix the SACK code to print the N blocks (instead of the + first block N times). + +- Don't say really small UDP packets are truncated just because they + aren't big enough to be a RPC. As noted by David Sacerdote. + +v3.2.1 Sun Jul 14 03:02:26 PDT 1996 + +- Added rfc1716 icmp codes as suggested by Martin Fredriksson + (martin@msp.se) + +- Print mtu for icmp unreach need frag packets. Thanks to John + Hawkinson (jhawk@mit.edu) + +- Decode icmp router discovery messages. Thanks to Jeffrey Honig + (jch@bsdi.com) + +- Added a printer entry for DLT_IEEE802 as suggested by Tak Kushida + (kushida@trl.ibm.co.jp) + +- Check igmp checksum if possible. Thanks to John Hawkinson. + +- Made changes for SINIX. Thanks to Andrej Borsenkow + (borsenkow.msk@sni.de) + +- Use autoconf's idea of the top level directory in install targets. + Thanks to John Hawkinson. + +- Avoid infinite loop in tcp options printing code. Thanks to Jeffrey + Mogul (mogul@pa.dec.com) + +- Avoid using -lsocket in IRIX 5.2 and earlier since it breaks snoop. + Thanks to John Hawkinson. + +- Added some more packet truncation checks. + +- On systems that have it, use sigset() instead of signal() since + signal() has different semantics on these systems. + +- Fixed some more alignment problems on the alpha. + +- Add code to massage unprintable characters in the domain and ipx + printers. Thanks to John Hawkinson. + +- Added explicit netmask support. Thanks to Steve Nuchia + (steve@research.oknet.com) + +- Add "sca" keyword (for DEC cluster services) as suggested by Terry + Kennedy (terry@spcvxa.spc.edu) + +- Add "atalk" keyword as suggested by John Hawkinson. + +- Added an igrp printer. Thanks to Francis Dupont + (francis.dupont@inria.fr) + +- Print IPX net numbers in hex a la Novell Netware. Thanks to Terry + Kennedy (terry@spcvxa.spc.edu) + +- Fixed snmp extended tag field parsing bug. Thanks to Pascal Hennequin + (pascal.hennequin@hugo.int-evry.fr) + +- Added some ETHERTYPEs missing on some systems. + +- Added truncated packet macros and various checks. + +- Fixed endian problems with the DECnet printer. + +- Use $CC when checking gcc version. Thanks to Carl Lindberg + (carl_lindberg@blacksmith.com) + +- Fixes for AIX (although this system is not yet supported). Thanks to + John Hawkinson. + +- Fix bugs in the autoconf misaligned accesses code fragment. + +- Include sys/param.h to get BYTE_ORDER in a few places. Thanks to + Pavlin Ivanov Radoslavov (pavlin@cs.titech.ac.jp) + +v3.2 Sun Jun 23 02:28:10 PDT 1996 + +- Print new icmp unreachable codes as suggested by Martin Fredriksson + (martin@msp.se). Also print code value when unknown for icmp redirect + and time exceeded. + +- Fix an alignment endian bug in getname(). Thanks to John Hawkinson. + +- Define "new" domain record types if not found in arpa/nameserv.h. + Resulted from a suggestion from John Hawkinson (jhawk@mit.edu). Also + fixed an endian bug when printing mx record and added some new record + types. + +- Added RIP V2 support. Thanks to Jeffrey Honig (jch@bsdi.com) + +- Added T/TCP options printing. As suggested by Richard Stevens + (rstevens@noao.edu) + +- Use autoconf to detect architectures that can't handle misaligned + accesses. + +v3.1 Thu Jun 13 20:59:32 PDT 1996 + +- Changed u_int32/int32 to u_int32_t/int32_t to be consistent with bsd + and bind (as suggested by Charles Hannum). + +- Port to GNU autoconf. + +- Add support for printing DVMRP and PIM traffic thanks to + Havard Eidnes (Havard.Eidnes@runit.sintef.no). + +- Fix AppleTalk, IPX and DECnet byte order problems due to wrong endian + define being referenced. Reported by Terry Kennedy. + +- Minor fixes to the man page thanks to Mark Andrews. + +- Endian fixes to RTP and vat packet dumpers, thanks to Bruce Mah + (bmah@cs.berkeley.edu). + +- Added support for new dns types, thanks to Rainer Orth. + +- Fixed tftp_print() to print the block number for ACKs. + +- Document -dd and -ddd. Resulted from a bug report from Charlie Slater + (cslater@imatek.com). + +- Check return status from malloc/calloc/etc. + +- Check return status from pcap_loop() so we can print an error and + exit with a bad status if there were problems. + +- Bail if ip option length is <= 0. Resulted from a bug report from + Darren Reed (darrenr@vitruvius.arbld.unimelb.edu.au). + +- Print out a little more information for sun rpc packets. + +- Add suport for Kerberos 4 thanks to John Hawkinson (jhawk@mit.edu). + +- Fixed the Fix EXTRACT_SHORT() and EXTRACT_LONG() macros (which were + wrong on little endian machines). + +- Fixed alignment bug in ipx_decode(). Thanks to Matt Crawford + (crawdad@fnal.gov). + +- Fix ntp_print() to not print garbage when the stratum is + "unspecified." Thanks to Deus Ex Machina (root@belle.bork.com). + +- Rewrote tcp options printer code to check for truncation. Added + selective acknowledgment case. + +- Fixed an endian bug in the ospf printer. Thanks to Jeffrey C Honig + (jch@bsdi.com) + +- Fix rip printer to handle 4.4 BSD sockaddr struct which only uses one + octet for the sa_family member. Thanks to Yoshitaka Tokugawa + (toku@dit.co.jp) + +- Don't checksum ip header if we don't have all of it. Thanks to John + Hawkinson (jhawk@mit.edu). + +- Print out hostnames if possible in egp printer. Thanks to Jeffrey + Honig (jhc@bsdi.com) + + +v3.1a1 Wed May 3 19:21:11 PDT 1995 + +- Include time.h when SVR4 is defined to avoid problems under Solaris + 2.3. + +- Fix etheraddr_string() in the ETHER_SERVICE to return the saved + strings, not the local buffer. Thanks to Stefan Petri + (petri@ibr.cs.tu-bs.de). + +- Detect when pcap raises the snaplen (e.g. with snit). Print a warning + that the selected value was not used. Thanks to Pascal Hennequin + (Pascal.Hennequin@hugo.int-evry.fr). + +- Add a truncated packet test to print-nfs.c. Thanks to Pascal Hennequin. + +- BYTEORDER -> BYTE_ORDER Thanks to Terry Kennedy (terry@spcvxa.spc.edu). + +v3.0.3 Sun Oct 1 18:35:00 GMT 1995 + +- Although there never was a 3.0.3 release, the linux boys cleverly + "released" one in late 1995. + +v3.0.2 Thu Apr 20 21:28:16 PDT 1995 + +- Change configuration to not use gcc v2 flags with gcc v1. + +- Redo gmt2local() so that it works under BSDI (which seems to return + an empty timezone struct from gettimeofday()). Based on report from + Terry Kennedy (terry@spcvxa.spc.edu). + +- Change configure to recognize IP[0-9]* as "mips" SGI hardware. Based + on report from Mark Andrews (mandrews@alias.com). + +- Don't pass cc flags to gcc. Resulted from a bug report from Rainer + Orth (ro@techfak.uni-bielefeld.de). + +- Fixed printout of connection id for uncompressed tcp slip packets. + Resulted from a bug report from Richard Stevens (rstevens@noao.edu). + +- Hack around deficiency in Ultrix's make. + +- Add ETHERTYPE_TRAIL define which is missing from irix5. + +v3.0.1 Wed Aug 31 22:42:26 PDT 1994 + +- Fix problems with gcc2 vs. malloc() and read() prototypes under SunOS 4. + +v3.0 Mon Jun 20 19:23:27 PDT 1994 + +- Added support for printing tcp option timestamps thanks to + Mark Andrews (mandrews@alias.com). + +- Reorganize protocol dumpers to take const pointers to packets so they + never change the contents (i.e., they used to do endian conversions + in place). Previously, whenever more than one pass was taken over + the packet, the packet contents would be dumped incorrectly (i.e., + the output form -x would be wrong on little endian machines because + the protocol dumpers would modify the data). Thanks to Charles Hannum + (mycroft@gnu.ai.mit.edu) for reporting this problem. + +- Added support for decnet protocol dumping thanks to Jeff Mogul + (mogul@pa.dec.com). + +- Fix bug that caused length of packet to be incorrectly printed + (off by ether header size) for unknown ethernet types thanks + to Greg Miller (gmiller@kayak.mitre.org). + +- Added support for IPX protocol dumping thanks to Brad Parker + (brad@fcr.com). + +- Added check to verify IP header checksum under -v thanks to + Brad Parker (brad@fcr.com). + +- Move packet capture code to new libpcap library (which is + packaged separately). + +- Prototype everything and assume an ansi compiler. + +- print-arp.c: Print hardware ethernet addresses if they're not + what we expect. + +- print-bootp.c: Decode the cmu vendor field. Add RFC1497 tags. + Many helpful suggestions from Gordon Ross (gwr@jericho.mc.com). + +- print-fddi.c: Improvements. Thanks to Jeffrey Mogul + (mogul@pa.dec.com). + +- print-icmp.c: Byte swap netmask before printing. Thanks to + Richard Stevens (rstevens@noao.edu). Print icmp type when unknown. + +- print-ip.c: Print the inner ip datagram of ip-in-ip encapsulated packets. + By default, only the inner packet is dumped, appended with the token + "(encap)". Under -v, both the inner and output packets are dumped + (on the same line). Note that the filter applies to the original packet, + not the encapsulated packet. So if you run tcpdump on a net with an + IP Multicast tunnel, you cannot filter out the datagrams using the + conventional syntax. (You can filter away all the ip-in-ip traffic + with "not ip proto 4".) + +- print-nfs.c: Keep pending rpc's in circular table. Add generic + nfs header and remove os dependences. Thanks to Jeffrey Mogul. + +- print-ospf.c: Improvements. Thanks to Jeffrey Mogul. + +- tcpdump.c: Add -T flag allows interpretation of "vat", "wb", "rpc" + (sunrpc) and rtp packets. Added "inbound" and "outbound" keywords + Add && and || operators + +v2.2.1 Tue Jun 6 17:57:22 PDT 1992 + +- Fix bug with -c flag. + +v2.2 Fri May 22 17:19:41 PDT 1992 + +- savefile.c: Remove hack that shouldn't have been exported. Add + truncate checks. + +- Added the 'icmp' keyword. For example, 'icmp[0] != 8 and icmp[0] != 0' + matches non-echo/reply ICMP packets. + +- Many improvements to filter code optimizer. + +- Added 'multicast' keyword and extended the 'broadcast' keyword can now be + so that protocol qualifications are allowed. For example, "ip broadcast" + and "ether multicast" are valid filters. + +- Added support for monitoring the loopback interface (i.e. 'tcpdump -i lo'). + Jeffrey Honig (jch@MITCHELL.CIT.CORNELL.EDU) contributed the kernel + patches to netinet/if_loop.c. + +- Added support for the Ungermann-Bass Ethernet on IBM/PC-RTs running AOS. + Contact Jeffrey Honig (jch@MITCHELL.CIT.CORNELL.EDU) for the diffs. + +- Added EGP and OSPF printers, thanks to Jeffrey Honig. + +v2.1 Tue Jan 28 11:00:14 PST 1992 + +- Internal release (never publically exported). + +v2.0.1 Sun Jan 26 21:10:10 PDT + +- Various byte ordering fixes. + +- Add truncation checks. + +- inet.c: Support BSD style SIOCGIFCONF. + +- nametoaddr.c: Handle multi addresses for single host. + +- optimize.c: Rewritten. + +- pcap-bpf.c: don't choke when we get ptraced. only set promiscuous + for broadcast nets. + +- print-atal.c: Fix an alignment bug (thanks to + stanonik@nprdc.navy.mil) Add missing printf() argument. + +- print-bootp.c: First attempt at decoding the vendor buffer. + +- print-domain.c: Fix truncation checks. + +- print-icmp.c: Calculate length of packets from the ip header. + +- print-ip.c: Print frag id in decimal (so it's easier to match up + with non-frags). Add support for ospf, egp and igmp. + +- print-nfs.c: Lots of changes. + +- print-ntp.c: Make some verbose output depend on -v. + +- print-snmp.c: New version from John LoVerso. + +- print-tcp.c: Print rfc1072 tcp options. + +- tcpdump.c: Print "0x" prefix for %x formats. Always print 6 digits + (microseconds) worth of precision. Fix uid bugs. + +- A packet dumper has been added (thanks to Jeff Mogul of DECWRL). + With this option, you can create an architecture independent binary + trace file in real time, without the overhead of the packet printer. + At a later time, the packets can be filtered (again) and printed. + +- BSD is supported. You must have BPF in your kernel. + Since the filtering is now done in the kernel, fewer packets are + dropped. In fact, with BPF and the packet dumper option, a measly + Sun 3/50 can keep up with a busy network. + +- Compressed SLIP packets can now be dumped, provided you use our + SLIP software and BPF. These packets are dumped as any other IP + packet; the compressed headers are dumped with the '-e' option. + +- Machines with little-endian byte ordering are supported (thanks to + Jeff Mogul). + +- Ultrix 4.0 is supported (also thanks to Jeff Mogul). + +- IBM RT and Stanford Enetfilter support has been added by + Rayan Zachariassen . Tcpdump has been tested under + both the vanilla Enetfilter interface, and the extended interface + (#ifdef'd by IBMRTPC) present in the MERIT version of the Enetfilter. + +- TFTP packets are now printed (requests only). + +- BOOTP packets are now printed. + +- SNMP packets are now printed. (thanks to John LoVerso of Xylogics). + +- Sparc architectures, including the Sparcstation-1, are now + supported thanks to Steve McCanne and Craig Leres. + +- SunOS 4 is now supported thanks to Micky Liu of Columbia + University (micky@cunixc.cc.columbia.edu). + +- IP options are now printed. + +- RIP packets are now printed. + +- There's a -v flag that prints out more information than the + default (e.g., it will enable printing of IP ttl, tos and id) + and -q flag that prints out less (e.g., it will disable + interpretation of AppleTalk-in-UDP). + +- The grammar has undergone substantial changes (if you have an + earlier version of tcpdump, you should re-read the manual + entry). + + The most useful change is the addition of an expression + syntax that lets you filter on arbitrary fields or values in the + packet. E.g., "ip[0] > 0x45" would print only packets with IP + options, "tcp[13] & 3 != 0" would print only TCP SYN and FIN + packets. + + The most painful change is that concatenation no longer means + "and" -- e.g., you have to say "host foo and port bar" instead + of "host foo port bar". The up side to this down is that + repeated qualifiers can be omitted, making most filter + expressions shorter. E.g., you can now say "ip host foo and + (bar or baz)" to look at ip traffic between hosts foo and bar or + between hosts foo and baz. [The old way of saying this was "ip + host foo and (ip host bar or ip host baz)".] + +v2.0 Sun Jan 13 12:20:40 PST 1991 + +- Initial public release. diff --git a/src/bin/network/tcpdump/CREDITS b/src/bin/network/tcpdump/CREDITS new file mode 100644 index 0000000000..186867bae5 --- /dev/null +++ b/src/bin/network/tcpdump/CREDITS @@ -0,0 +1,143 @@ +This file lists people who have contributed to tcpdump: + +The current maintainers: + Bill Fenner + David Young + Fulvio Risso + Guy Harris + Hannes Gredler + Jun-ichiro itojun Hagino + Michael Richardson + +Additional people who have contributed patches: + + Alfredo Andres + Albert Chin + Andrew Brown + Andrew Church + Andrew Hintz + Andrew Tridgell + Andy Heffernan + Arkadiusz Miskiewicz + Armando L. Caro Jr. + Arnaldo Carvalho de Melo + Atsushi Onoe + Ben Smithurst + Brent L. Bates + Brian Ginsbach + Bruce M. Simpson + Carles Kishimoto Bisbe + Charlie Lenahan + Charles M. Hannum + Chris Cogdon + Chris G. Demetriou + Chris Jepeway + Craig Rodrigues + Crist J. Clark + Daniel Hagerty + Darren Reed + David Binderman + David Smith + David Young + Don Ebright + Eddie Kohler + Francis Dupont + Francisco Matias Cuenca-Acuna + Frank Volf + Fulvio Risso + George Bakos + Gerald Combs + Gert Doering + Greg Stark + Gilbert Ramirez Jr. + Gisle Vanem + Hannes Viertel + Hank Leininger + Harry Raaymakers + Heinz-Ado Arnolds + Hendrik Scholz + Ian McDonald + Jakob Schlyter + Jan Oravec + Jason R. Thorpe + Jefferson Ogata + Jeffrey Hutzelman + Jesper Peterson + Jim Hutchins + Jonathan Heusser + Tatuya Jinmei + Jørgen Thomsen + Julian Cowley + Kaarthik Sivakumar + Kazushi Sugyo + Kelly Carmichael + Ken Hornstein + Kevin Steves + Klaus Klein + Kris Kennaway + Krzysztof Halasa + Larry Lile + Lennert Buytenhek + Loris Degioanni + Love Hörnquist-Åstrand + Maciej W. Rozycki + Manu Pathak + Marc A. Lehmann + Mark Ellzey Thomas + Marko Kiiskila + Markus Schöpflin + Marshall Rose + Martin Husemann + Michael Madore + Michael Shalayeff + Michael Shields + Michael T. Stolarchuk + Michele "mydecay" Marchetto + Monroe Williams + Motonori Shindo + Nathan J. Williams + Nathaniel Couper-Noles + Neil T. Spring + Niels Provos + Nickolai Zeldovich + Nicolas Ferrero + Noritoshi Demizu + Olaf Kirch + Onno van der Linden + Pascal Hennequin + Pasvorn Boonmark + Paul Mundt + Paul S. Traina + Pavlin Radoslavov + Pekka Savola + Peter Fales + Peter Jeremy + Phil Wood + Rafal Maszkowski + Raphael Raimbault + Rick Cheng + Rick Jones + Rick Watson + Rob Braun + Roderick Schertler + Sami Farin + Scott Rose + Sebastian Krahmer + Sebastien Vincent + Seth Webster + Shinsuke Suzuki + Steinar Haug + Takashi Yamamoto + Terry Kennedy + Timo Koskiahde + Tony Li + Uns Lider + Wesley Griffin + Wilbert de Graaf + Yen Yen Lim + Yoshifumi Nishida + +The original LBL crew: + Steve McCanne + Craig Leres + Van Jacobson diff --git a/src/bin/network/tcpdump/FILES b/src/bin/network/tcpdump/FILES new file mode 100644 index 0000000000..d6c110b21e --- /dev/null +++ b/src/bin/network/tcpdump/FILES @@ -0,0 +1,248 @@ +CHANGES +CREDITS +FILES +INSTALL +LICENSE +Makefile.in +README +Readme.Win32 +VERSION +acconfig.h +aclocal.m4 +addrtoname.c +addrtoname.h +ah.h +aodv.h +appletalk.h +arcnet.h +atime.awk +atm.h +atmuni31.h +bootp.h +bpf_dump.c +bgp.h +chdlc.h +config.guess +config.h.in +config.sub +configure +configure.in +cpack.c +cpack.h +dccp.h +decnet.h +decode_prefix.h +enc.h +esp.h +ether.h +ethertype.h +extract.h +fddi.h +gmpls.c +gmpls.h +gmt2local.c +gmt2local.h +icmp6.h +ieee802_11.h +ieee802_11_radio.h +igrp.h +install-sh +interface.h +ip.h +ip6.h +ipfc.h +ipproto.c +ipproto.h +ipsec_doi.h +ipx.h +isakmp.h +l2tp.h +l2vpn.c +l2vpn.h +lane.h +lbl/os-osf4.h +lbl/os-solaris2.h +lbl/os-sunos4.h +lbl/os-ultrix4.h +llc.h +machdep.c +machdep.h +makemib +mib.h +missing/addrinfo.h +missing/addrsize.h +missing/bittypes.h +missing/dlnames.c +missing/datalinks.c +missing/getaddrinfo.c +missing/getnameinfo.c +missing/inet_aton.c +missing/inet_ntop.c +missing/inet_pton.c +missing/resolv6.h +missing/resolv_ext.h +missing/snprintf.c +missing/sockstorage.h +missing/strdup.c +missing/strlcat.c +missing/strlcpy.c +missing/strsep.c +mkdep +mpls.h +nameser.h +netbios.h +netdissect.h +nfs.h +nfsfh.h +nlpid.c +nlpid.h +ntp.h +oakley.h +ospf.h +ospf6.h +oui.c +oui.h +packetdat.awk +parsenfsfh.c +pcap_dump_ftell.c +pcap-missing.h +pf.h +pmap_prot.h +ppp.h +print-802_11.c +print-ah.c +print-aodv.c +print-ap1394.c +print-arcnet.c +print-arp.c +print-ascii.c +print-atalk.c +print-atm.c +print-beep.c +print-bfd.c +print-bgp.c +print-bootp.c +print-cdp.c +print-chdlc.c +print-cip.c +print-cnfp.c +print-dccp.c +print-decnet.c +print-dhcp6.c +print-domain.c +print-dvmrp.c +print-eap.c +print-egp.c +print-enc.c +print-esp.c +print-eigrp.c +print-ether.c +print-fddi.c +print-fr.c +print-frag6.c +print-gre.c +print-hsrp.c +print-icmp.c +print-icmp6.c +print-igmp.c +print-igrp.c +print-ip.c +print-ip6.c +print-ip6opts.c +print-ipcomp.c +print-ipfc.c +print-ipx.c +print-isakmp.c +print-isoclns.c +print-juniper.c +print-krb.c +print-l2tp.c +print-lane.c +print-ldp.c +print-llc.c +print-lmp.c +print-lspping.c +print-lwres.c +print-mobile.c +print-mobility.c +print-mpls.c +print-msdp.c +print-netbios.c +print-nfs.c +print-ntp.c +print-null.c +print-ospf.c +print-ospf6.c +print-pflog.c +print-pgm.c +print-pim.c +print-ppp.c +print-pppoe.c +print-pptp.c +print-radius.c +print-raw.c +print-rip.c +print-ripng.c +print-rsvp.c +print-rt6.c +print-rx.c +print-sctp.c +print-sip.c +print-sl.c +print-sll.c +print-slow.c +print-smb.c +print-snmp.c +print-stp.c +print-sunatm.c +print-sunrpc.c +print-symantec.c +print-syslog.c +print-tcp.c +print-telnet.c +print-tftp.c +print-timed.c +print-token.c +print-udp.c +print-vjc.c +print-vrrp.c +print-wb.c +print-zephyr.c +route6d.h +rpc_auth.h +rpc_msg.h +rx.h +sctpConstants.h +sctpHeader.h +send-ack.awk +setsignal.c +setsignal.h +slcompress.h +slip.h +sll.h +smb.h +smbutil.c +stime.awk +strcasecmp.c +tcp.h +tcpdump.1 +tcpdump.c +tcpdump-stdinc.h +telnet.h +timed.h +token.h +udp.h +util.c +vfprintf.c +win32/Include/Arpa/tftp.h +win32/Include/errno.h +win32/Include/getopt.h +win32/Include/inetprivate.h +win32/Include/telnet.h +win32/Include/w32_fzs.h +win32/Include/Netinet/in_systm.h +win32/Include/Netinet/ip.h +win32/Src/getopt.c +win32/prj/GNUmakefile +win32/prj/WinDump.dsp +win32/prj/WinDump.dsw diff --git a/src/bin/network/tcpdump/INSTALL b/src/bin/network/tcpdump/INSTALL new file mode 100644 index 0000000000..c55f2d041c --- /dev/null +++ b/src/bin/network/tcpdump/INSTALL @@ -0,0 +1,251 @@ +@(#) $Header: /tcpdump/master/tcpdump/INSTALL,v 1.63.2.4 2005/09/20 06:05:35 guy Exp $ (LBL) + +If you have not built libpcap, do so first. See the README +file in this directory for the ftp location. + +You will need an ANSI C compiler to build tcpdump. The configure script +will abort if your compiler is not ANSI compliant. If this happens, use +the GNU C compiler, available via anonymous ftp: + + ftp://ftp.gnu.org/pub/gnu/gcc/ + +After libpcap has been built (either install it with "make install" or +make sure both the libpcap and tcpdump source trees are in the same +directory), run ./configure (a shell script). "configure" will +determine your system attributes and generate an appropriate Makefile +from Makefile.in. Now build tcpdump by running "make". + +If everything builds ok, su and type "make install". This will install +tcpdump and the manual entry. By default, tcpdump is installed with +group execute permissions. The group used depends on your os. In +addition, BPF packet access is controlled by permissions to +/dev/bpf0. In any case, DO NOT give untrusted users the capability of +running tcpdump. Tcpdump can capture any traffic on your net, +including passwords. + +Note that most systems ship tcpdump, but usually an older version. +Remember to remove or rename the installed binary when upgrading. + +If you use Linux, this version of libpcap is known to compile and run +with 2.0.25 and more modern, and 2.2 and later, kernels. It is +guaranteed not to work with 1.X kernels. + +If your system is not one which we have tested tcpdump on, you may have +to modify the configure script and Makefile.in. Please send us patches +for any modifications you need to make. + +Please see "PLATFORMS" for notes about tested platforms. + + +FILES +----- +CHANGES - description of differences between releases +CREDITS - people that have helped tcpdump along +FILES - list of files exported as part of the distribution +INSTALL - this file +LICENSE - the license under which tcpdump is distributed +Makefile.in - compilation rules (input to the configure script) +README - description of distribution +Readme.Win32 - notes on building tcpdump on Win32 systems (with WinPcap) +VERSION - version of this release +acconfig.h - autoconf input +aclocal.m4 - autoconf macros +addrtoname.c - address to hostname routines +addrtoname.h - address to hostname definitions +ah.h - IPSEC Authentication Header definitions +aodv.h - AODV definitions +appletalk.h - AppleTalk definitions +arcnet.h - ARCNET definitions +atime.awk - TCP ack awk script +atm.h - ATM traffic type definitions +atmuni31.h - ATM Q.2931 definitions +bgp.h - BGP declarations +bootp.h - BOOTP definitions +bpf_dump.c - BPF program printing routines, in case libpcap doesn't + have them +chdlc.h - Cisco HDLC definitions +cpack.c - functions to extract packed data +cpack.h - declarations of functions to extract packed data +config.guess - autoconf support +config.h.in - autoconf input +config.sub - autoconf support +configure - configure script (run this first) +configure.in - configure script source +dccp.h - DCCP definitions +decnet.h - DECnet definitions +decode_prefix.h - Declarations of "decode_prefix{4,6}()" +enc.h - OpenBSD IPsec encapsulation BPF layer definitions +esp.h - IPSEC Encapsulating Security Payload definitions +ether.h - Ethernet definitions +ethertype.h - Ethernet type value definitions +extract.h - alignment definitions +fddi.h - Fiber Distributed Data Interface definitions +gmpls.c - GMPLS definitions +gmpls.h - GMPLS declarations +gmt2local.c - time conversion routines +gmt2local.h - time conversion prototypes +icmp6.h - ICMPv6 definitiions +ieee802_11.h - IEEE 802.11 definitions +ieee802_11_radio.h - radiotap header definitions +igrp.h - Interior Gateway Routing Protocol definitions +install-sh - BSD style install script +interface.h - globals, prototypes and definitions +ip.h - IP definitions +ip6.h - IPv6 definitions +ipfc.h - IP-over-Fibre Channel definitions +ipproto.c - IP protocol type value-to-name table +ipproto.h - IP protocol type value definitions +ipsec_doi.h - ISAKMP packet definitions - RFC2407 +ipx.h - IPX definitions +isakmp.h - ISAKMP packet definitions - RFC2408 +l2vpn.c - L2VPN encapsulation value-to-name table +l2vpn.h - L2VPN encapsulation definitions +l2tp.h - Layer Two Tunneling Protocol definitions +lane.h - ATM LANE definitions +lbl/os-*.h - OS-dependent defines and prototypes +llc.h - LLC definitions +machdep.c - machine dependent routines +machdep.h - machine dependent definitions +makemib - mib to header script +mib.h - mib definitions +missing/* - replacements for missing library functions +mkdep - construct Makefile dependency list +mpls.h - MPLS definitions +nameser.h - DNS definitions +netbios.h - NETBIOS definitions +netdissect.h - definitions and declarations for tcpdump-as-library + (under development) +nfs.h - Network File System V2 definitions +nfsfh.h - Network File System file handle definitions +nlpid.c - OSI NLPID value-to-name table +nlpid.h - OSI NLPID definitions +ntp.h - Network Time Protocol definitions +oakley.h - ISAKMP packet definitions - RFC2409 +ospf.h - Open Shortest Path First definitions +ospf6.h - IPv6 Open Shortest Path First definitions +packetdat.awk - TCP chunk summary awk script +parsenfsfh.c - Network File System file parser routines +pcap_dump_ftell.c - pcap_dump_ftell() implementation, in case libpcap + doesn't have it +pcap-missing.h - declarations of functions possibly missing from libpcap +pf.h - OpenBSD PF definitions +pmap_prot.h - definitions for ONC RPC portmapper protocol +ppp.h - Point to Point Protocol definitions +print-802_11.c - IEEE 802.11 printer routines +print-ap1394.c - Apple IP-over-IEEE 1394 printer routines +print-ah.c - IPSEC Authentication Header printer routines +print-aodv.c - AODV printer routines +print-arcnet.c - ARCNET printer routines +print-arp.c - Address Resolution Protocol printer routines +print-ascii.c - ASCII packet dump routines +print-atalk.c - AppleTalk printer routines +print-atm.c - ATM printer routines +print-bgp.c - Border Gateway Protocol printer routines +print-bootp.c - BOOTP and IPv4 DHCP printer routines +print-beep.c - BEEP printer routines +print-cdp.c - Cisco Discovery Protocol printer routines +print-chdlc.c - Cisco HDLC printer routines +print-cip.c - Classical-IP over ATM routines +print-cnfp.c - Cisco NetFlow printer routines +print-dccp.c - DCCP printer routines +print-decnet.c - DECnet printer routines +print-dhcp6.c - IPv6 DHCP printer routines +print-domain.c - Domain Name System printer routines +print-dvmrp.c - Distance Vector Multicast Routing Protocol printer routines +print-eap.c - EAP printer routines +print-enc.c - OpenBSD IPsec encapsulation BPF layer printer routines +print-egp.c - External Gateway Protocol printer routines +print-esp.c - IPSEC Encapsulating Security Payload printer routines +print-ether.c - Ethernet printer routines +print-fddi.c - Fiber Distributed Data Interface printer routines +print-fr.c - Frame Relay printer routines +print-frag6.c - IPv6 fragmentation header printer routines +print-gre.c - Generic Routing Encapsulation printer routines +print-hsrp.c - Cisco Hot Standby Router Protocol printer routines +print-icmp.c - Internet Control Message Protocol printer routines +print-icmp6.c - IPv6 Internet Control Message Protocol printer routines +print-igmp.c - Internet Group Management Protocol printer routines +print-igrp.c - Interior Gateway Routing Protocol printer routines +print-ip.c - IP printer routines +print-ip6.c - IPv6 printer routines +print-ip6opts.c - IPv6 header option printer routines +print-ipcomp.c - IP Payload Compression Protocol printer routines +print-ipx.c - IPX printer routines +print-isakmp.c - Internet Security Association and Key Management Protocol +print-isoclns.c - ISO CLNS, ESIS, and ISIS printer routines +print-krb.c - Kerberos printer routines +print-l2tp.c - Layer Two Tunneling Protocol printer routines +print-lane.c - ATM LANE printer routines +print-llc.c - IEEE 802.2 LLC printer routines +print-lspping.c - LSPPING printer routines +print-lwres.c - Lightweight Resolver protocol printer routines +print-mobile.c - IPv4 mobility printer routines +print-mobility.c - IPv6 mobility printer routines +print-mpls.c - Multi-Protocol Label Switching printer routines +print-msdp.c - Multicast Source Discovery Protocol printer routines +print-netbios.c - NetBIOS frame protocol printer routines +print-nfs.c - Network File System printer routines +print-ntp.c - Network Time Protocol printer routines +print-null.c - BSD loopback device printer routines +print-ospf.c - Open Shortest Path First printer routines +print-ospf6.c - IPv6 Open Shortest Path First printer routines +print-pflog.c - OpenBSD packet filter log file printer routines +print-pgm.c - Pragmatic General Multicast printer routines +print-pim.c - Protocol Independent Multicast printer routines +print-ppp.c - Point to Point Protocol printer routines +print-pppoe.c - PPP-over-Ethernet printer routines +print-pptp.c - Point-to-Point Tunnelling Protocol printer routines +print-radius.c - Radius protocol printer routines +print-raw.c - Raw IP printer routines +print-rip.c - Routing Information Protocol printer routines +print-ripng.c - IPv6 Routing Information Protocol printer routines +print-rsvp.c - Resource reSerVation Protocol (RSVP) printer routines +print-rt6.c - IPv6 routing header printer routines +print-rx.c - AFS RX printer routines +print-sctp.c - Stream Control Transmission Protocol printer routines +print-sip.c - SIP printer routines +print-sl.c - Compressed Serial Line Internet Protocol printer routines +print-sll.c - Linux "cooked" capture printer routines +print-slow.c - IEEE "slow protocol" (802.3ad) printer routines +print-smb.c - SMB/CIFS printer routines +print-snmp.c - Simple Network Management Protocol printer routines +print-stp.c - IEEE 802.1d spanning tree protocol printer routines +print-sunatm.c - SunATM DLPI capture printer routines +print-sunrpc.c - Sun Remote Procedure Call printer routines +print-symantec.c - Symantec Enterprise Firewall printer routines +print-tcp.c - TCP printer routines +print-telnet.c - Telnet option printer routines +print-tftp.c - Trivial File Transfer Protocol printer routines +print-timed.c - BSD time daemon protocol printer routines +print-token.c - Token Ring printer routines +print-udp.c - UDP printer routines +print-vjc.c - PPP Van Jacobson compression (RFC1144) printer routines +print-vrrp.c - Virtual Router Redundancy Protocol +print-wb.c - White Board printer routines +print-zephyr.c - Zephyr printer routines +route6d.h - packet definition for IPv6 Routing Information Protocol +rpc_auth.h - definitions for ONC RPC authentication +rpc_msg.h - definitions for ONC RPC messages +rx.h - AFS RX definitions +sctpConstants.h - Stream Control Transmission Protocol constant definitions +sctpHeader.h - Stream Control Transmission Protocol packet definitions +send-ack.awk - unidirectional tcp send/ack awk script +setsignal.c - OS-independent signal routines +setsignal.h - OS-independent signal prototypes +slcompress.h - SLIP/PPP Van Jacobson compression (RFC1144) definitions +slip.h - SLIP definitions +sll.h - Linux "cooked" capture definitions +smb.h - SMB/CIFS definitions +smbutil.c - SMB/CIFS utility routines +stime.awk - TCP send awk script +strcasecmp.c - missing routine +tcp.h - TCP definitions +tcpdump.1 - manual entry +tcpdump.c - main program +telnet.h - Telnet definitions +timed.h - BSD time daemon protocol definitions +token.h - Token Ring definitions +udp.h - UDP definitions +util.c - utility routines +vfprintf.c - emulation routine +win32 - headers and routines for building on Win32 systems diff --git a/src/bin/network/tcpdump/Jamfile b/src/bin/network/tcpdump/Jamfile new file mode 100644 index 0000000000..06d39cd075 --- /dev/null +++ b/src/bin/network/tcpdump/Jamfile @@ -0,0 +1,130 @@ +SubDir HAIKU_TOP src bin network tcpdump ; + +UseHeaders [ FDirName $(HAIKU_TOP) headers compatibility bsd ] : true ; +UseHeaders [ FDirName $(SUBDIR) ] : true ; +UseHeaders [ FDirName $(SUBDIR) libpcap ] : true ; + +local defines = [ FDefines HAVE_CONFIG_H=1 _U_=\"__attribute__((unused))\" ] ; + +SubDirCcFlags $(defines) ; +SubDirC++Flags $(defines) ; + +BinCommand tcpdump : + addrtoname.c + cpack.c + gmpls.c + oui.c + gmt2local.c + ipproto.c + nlpid.c + l2vpn.c + machdep.c + parsenfsfh.c + print-802_11.c + print-ah.c + print-aodv.c + print-ap1394.c + print-arcnet.c + print-arp.c + print-ascii.c + print-atalk.c + print-atm.c + print-beep.c + print-bfd.c + print-bgp.c + print-bootp.c + print-cdp.c + print-chdlc.c + print-cip.c + print-cnfp.c + print-dccp.c + print-decnet.c + #print-dhcp6.c + print-domain.c + print-dvmrp.c + print-eap.c + print-egp.c + print-eigrp.c + print-enc.c + print-esp.c + print-ether.c + print-fddi.c + print-fr.c + #print-frag6.c + print-gre.c + print-hsrp.c + print-icmp.c + #print-icmp6.c + print-igmp.c + print-igrp.c + print-ip.c + #print-ip6.c + #print-ip6opts.c + print-ipcomp.c + print-ipfc.c + print-ipx.c + print-isakmp.c + print-isoclns.c + print-juniper.c + print-krb.c + print-l2tp.c + print-lane.c + print-ldp.c + print-llc.c + print-lmp.c + print-lspping.c + print-lwres.c + print-mobile.c + print-mobility.c + print-mpls.c + print-msdp.c + print-netbios.c + print-nfs.c + print-ntp.c + print-null.c + print-ospf.c + #print-ospf6.c + print-pflog.c + print-pgm.c + print-pim.c + print-ppp.c + print-pppoe.c + print-pptp.c + print-radius.c + print-raw.c + print-rip.c + print-ripng.c + print-rsvp.c + #print-rt6.c + print-rx.c + print-sctp.c + print-sip.c + print-sl.c + print-sll.c + print-slow.c + print-smb.c + print-snmp.c + print-stp.c + print-sunatm.c + print-sunrpc.c + print-symantec.c + print-syslog.c + print-tcp.c + print-telnet.c + print-tftp.c + print-timed.c + print-token.c + print-udp.c + print-vjc.c + print-vrrp.c + print-wb.c + print-zephyr.c + setsignal.c + smbutil.c + tcpdump.c + util.c + version.c + : libpcap.a $(NETWORK_LIBS) +; + +SubInclude HAIKU_TOP src bin network tcpdump libpcap ; diff --git a/src/bin/network/tcpdump/LICENSE b/src/bin/network/tcpdump/LICENSE new file mode 100644 index 0000000000..dea5f7d54d --- /dev/null +++ b/src/bin/network/tcpdump/LICENSE @@ -0,0 +1,19 @@ +License: BSD + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + 3. The names of the authors may not be used to endorse or promote + products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. diff --git a/src/bin/network/tcpdump/Makefile b/src/bin/network/tcpdump/Makefile new file mode 100644 index 0000000000..0cedd3b4be --- /dev/null +++ b/src/bin/network/tcpdump/Makefile @@ -0,0 +1,201 @@ +# Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997 +# The Regents of the University of California. All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that: (1) source code distributions +# retain the above copyright notice and this paragraph in its entirety, (2) +# distributions including binary code include the above copyright notice and +# this paragraph in its entirety in the documentation or other materials +# provided with the distribution, and (3) all advertising materials mentioning +# features or use of this software display the following acknowledgement: +# ``This product includes software developed by the University of California, +# Lawrence Berkeley Laboratory and its contributors.'' Neither the name of +# the University nor the names of its contributors may be used to endorse +# or promote products derived from this software without specific prior +# written permission. +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +# +# @(#) $Header: /tcpdump/master/tcpdump/Makefile.in,v 1.293.2.3 2005/09/20 06:05:36 guy Exp $ (LBL) + +# +# Various configurable paths (remember to edit Makefile.in, not Makefile) +# + +# Top level hierarchy +prefix = /usr/local +exec_prefix = ${prefix} +# Pathname of directory to install the binary +sbindir = ${exec_prefix}/sbin +# Pathname of directory to install the man page +mandir = ${prefix}/man + +# VPATH +srcdir = . + + +# +# You shouldn't need to edit anything below here. +# + +CC = gcc +PROG = tcpdump +CCOPT = -O2 +INCLS = -I. -I$(srcdir)/missing +DEFS = -DHAVE_CONFIG_H -I$(srcdir)/missing -D_U_="__attribute__((unused))" + +# Standard CFLAGS +CFLAGS = $(CCOPT) $(DEFS) $(INCLS) + +# Standard LDFLAGS +LDFLAGS = + +# Standard LIBS +LIBS = -lpcap -lsocket + +INSTALL = /bin/install -c +INSTALL_PROGRAM = ${INSTALL} +INSTALL_DATA = ${INSTALL} -m 644 + +# Explicitly define compilation rule since SunOS 4's make doesn't like gcc. +# Also, gcc does not remove the .o before forking 'as', which can be a +# problem if you don't own the file but can write to the directory. +.c.o: + @rm -f $@ + $(CC) $(CFLAGS) -c $(srcdir)/$*.c + +CSRC = addrtoname.c cpack.c gmpls.c oui.c gmt2local.c ipproto.c \ + nlpid.c l2vpn.c machdep.c parsenfsfh.c \ + print-802_11.c print-ap1394.c print-ah.c print-arcnet.c \ + print-aodv.c print-arp.c print-ascii.c print-atalk.c print-atm.c \ + print-beep.c print-bfd.c print-bgp.c print-bootp.c print-cdp.c \ + print-chdlc.c print-cip.c print-cnfp.c print-dccp.c print-decnet.c \ + print-domain.c print-dvmrp.c print-enc.c print-egp.c \ + print-eap.c print-eigrp.c\ + print-esp.c print-ether.c print-fddi.c print-fr.c \ + print-gre.c print-hsrp.c print-icmp.c print-igmp.c \ + print-igrp.c print-ip.c print-ipcomp.c print-ipfc.c \ + print-ipx.c print-isakmp.c print-isoclns.c print-juniper.c print-krb.c \ + print-l2tp.c print-lane.c print-ldp.c print-llc.c \ + print-lmp.c print-lspping.c \ + print-lwres.c print-mobile.c print-mpls.c print-msdp.c \ + print-nfs.c print-ntp.c print-null.c print-ospf.c \ + print-pflog.c print-pgm.c print-pim.c print-ppp.c print-pppoe.c \ + print-pptp.c print-radius.c print-raw.c print-rip.c \ + print-rsvp.c print-rx.c print-sctp.c print-sip.c print-sl.c print-sll.c \ + print-slow.c print-snmp.c print-stp.c print-sunatm.c print-sunrpc.c \ + print-symantec.c print-syslog.c print-tcp.c print-telnet.c print-tftp.c \ + print-timed.c print-token.c print-udp.c print-vjc.c print-vrrp.c \ + print-wb.c print-zephyr.c setsignal.c tcpdump.c util.c + +LOCALSRC = print-smb.c smbutil.c +GENSRC = version.c +LIBOBJS = strsep$U.o datalinks$U.o dlnames$U.o pcap_dump_ftell$U.o inet_ntop$U.o inet_pton$U.o inet_aton$U.o bpf_dump$U.o + +SRC = $(CSRC) $(GENSRC) $(LOCALSRC) + +# We would like to say "OBJ = $(SRC:.c=.o)" but Ultrix's make cannot +# hack the extra indirection +OBJ = $(CSRC:.c=.o) $(GENSRC:.c=.o) $(LOCALSRC:.c=.o) $(LIBOBJS) +HDR = addrtoname.h appletalk.h bootp.h cpack.h dccp.h decnet.h \ + ethertype.h extract.h fddi.h gmt2local.h igrp.h interface.h \ + ipx.h llc.h machdep.h mib.h nfsfh.h nfsv2.h ntp.h ospf.h \ + setsignal.h \ + gnuc.h ipsec_doi.h isakmp.h l2tp.h nameser.h \ + netbios.h oakley.h ospf6.h pf.h ppp.h route6d.h + +TAGHDR = \ + /usr/include/arpa/tftp.h \ + /usr/include/net/if_arp.h \ + /usr/include/net/slip.h \ + /usr/include/netinet/if_ether.h \ + /usr/include/netinet/in.h \ + /usr/include/netinet/ip_icmp.h \ + /usr/include/netinet/tcp.h \ + /usr/include/netinet/udp.h \ + /usr/include/protocols/routed.h + +TAGFILES = $(SRC) $(HDR) $(TAGHDR) + +CLEANFILES = $(PROG) $(OBJ) $(GENSRC) + +all: $(PROG) + +$(PROG): $(OBJ) + @rm -f $@ + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJ) $(LIBS) + +datalinks.o: $(srcdir)/missing/datalinks.c + $(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/datalinks.c +dlnames.o: $(srcdir)/missing/dlnames.c + $(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/dlnames.c +getnameinfo.o: $(srcdir)/missing/getnameinfo.c + $(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/getnameinfo.c +getaddrinfo.o: $(srcdir)/missing/getaddrinfo.c + $(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/getaddrinfo.c +inet_pton.o: $(srcdir)/missing/inet_pton.c + $(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/inet_pton.c +inet_ntop.o: $(srcdir)/missing/inet_ntop.c + $(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/inet_ntop.c +inet_aton.o: $(srcdir)/missing/inet_aton.c + $(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/inet_aton.c +snprintf.o: $(srcdir)/missing/snprintf.c + $(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/snprintf.c +strlcat.o: $(srcdir)/missing/strlcat.c + $(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/strlcat.c +strlcpy.o: $(srcdir)/missing/strlcpy.c + $(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/strlcpy.c +strsep.o: $(srcdir)/missing/strsep.c + $(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/strsep.c + +version.o: version.c + $(CC) $(CFLAGS) -c version.c + +version.c: $(srcdir)/VERSION + @rm -f $@ + sed -e 's/.*/char version[] = "&";/' $(srcdir)/VERSION > $@ + +install: + [ -d $(DESTDIR)$(sbindir) ] || \ + (mkdir -p $(DESTDIR)$(sbindir); chmod 755 $(DESTDIR)$(sbindir)) + $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(sbindir)/$(PROG) + [ -d $(DESTDIR)$(mandir)/man1 ] || \ + (mkdir -p $(DESTDIR)$(mandir)/man1; chmod 755 $(DESTDIR)$(mandir)/man1) + $(INSTALL_DATA) $(srcdir)/$(PROG).1 $(DESTDIR)$(mandir)/man1/$(PROG).1 + +uninstall: + rm -f $(DESTDIR)$(sbindir)/$(PROG) + rm -f $(DESTDIR)$(mandir)/man1/$(PROG).1 + +lint: $(GENSRC) + lint -hbxn $(SRC) | \ + grep -v 'struct/union .* never defined' | \ + grep -v 'possible pointer alignment problem' + +clean: + rm -f $(CLEANFILES) + +distclean: + rm -f $(CLEANFILES) Makefile config.cache config.log config.status \ + config.h gnuc.h os-proto.h stamp-h stamp-h.in + +tags: $(TAGFILES) + ctags -wtd $(TAGFILES) + +tar: + @cwd=`pwd` ; dir=`basename $$cwd` ; name=$(PROG)-`cat VERSION` ; \ + list="" ; tar="tar chf" ; \ + for i in `cat FILES` ; do list="$$list $$name/$$i" ; done; \ + echo \ + "rm -f ../$$name; ln -s $$dir ../$$name" ; \ + rm -f ../$$name; ln -s $$dir ../$$name ; \ + echo \ + "(cd .. ; $$tar - [lots of files]) | compress > /tmp/$$name.tar.Z" ; \ + (cd .. ; $$tar - $$list) | compress > /tmp/$$name.tar.Z ; \ + echo \ + "rm -f ../$$name" ; \ + rm -f ../$$name + +depend: $(GENSRC) + ${srcdir}/mkdep -c $(CC) $(DEFS) $(INCLS) $(SRC) diff --git a/src/bin/network/tcpdump/Makefile-devel-adds b/src/bin/network/tcpdump/Makefile-devel-adds new file mode 100644 index 0000000000..512a119979 --- /dev/null +++ b/src/bin/network/tcpdump/Makefile-devel-adds @@ -0,0 +1,22 @@ +# +# Auto-regenerate configure script or Makefile when things change. +# From autoconf.info . Works best with GNU Make. +# +${srcdir}/configure: configure.in + cd ${srcdir} && autoconf + +# autoheader might not change config.h.in, so touch a stamp file. +${srcdir}/config.h.in: ${srcdir}/stamp-h.in +${srcdir}/stamp-h.in: configure.in acconfig.h + cd ${srcdir} && autoheader + echo timestamp > ${srcdir}/stamp-h.in + +config.h: stamp-h +stamp-h: ${srcdir}/config.h.in config.status + ./config.status + +Makefile: Makefile.in config.status + ./config.status + +config.status: ${srcdir}/configure + ./config.status --recheck diff --git a/src/bin/network/tcpdump/Makefile.in b/src/bin/network/tcpdump/Makefile.in new file mode 100644 index 0000000000..c96d877764 --- /dev/null +++ b/src/bin/network/tcpdump/Makefile.in @@ -0,0 +1,201 @@ +# Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997 +# The Regents of the University of California. All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that: (1) source code distributions +# retain the above copyright notice and this paragraph in its entirety, (2) +# distributions including binary code include the above copyright notice and +# this paragraph in its entirety in the documentation or other materials +# provided with the distribution, and (3) all advertising materials mentioning +# features or use of this software display the following acknowledgement: +# ``This product includes software developed by the University of California, +# Lawrence Berkeley Laboratory and its contributors.'' Neither the name of +# the University nor the names of its contributors may be used to endorse +# or promote products derived from this software without specific prior +# written permission. +# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. +# +# @(#) $Header: /tcpdump/master/tcpdump/Makefile.in,v 1.293.2.3 2005/09/20 06:05:36 guy Exp $ (LBL) + +# +# Various configurable paths (remember to edit Makefile.in, not Makefile) +# + +# Top level hierarchy +prefix = @prefix@ +exec_prefix = @exec_prefix@ +# Pathname of directory to install the binary +sbindir = @sbindir@ +# Pathname of directory to install the man page +mandir = @mandir@ + +# VPATH +srcdir = @srcdir@ +VPATH = @srcdir@ + +# +# You shouldn't need to edit anything below here. +# + +CC = @CC@ +PROG = tcpdump +CCOPT = @V_CCOPT@ +INCLS = -I. @V_INCLS@ +DEFS = @DEFS@ @CPPFLAGS@ @V_DEFS@ + +# Standard CFLAGS +CFLAGS = $(CCOPT) $(DEFS) $(INCLS) + +# Standard LDFLAGS +LDFLAGS = @LDFLAGS@ + +# Standard LIBS +LIBS = @LIBS@ + +INSTALL = @INSTALL@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_DATA = @INSTALL_DATA@ + +# Explicitly define compilation rule since SunOS 4's make doesn't like gcc. +# Also, gcc does not remove the .o before forking 'as', which can be a +# problem if you don't own the file but can write to the directory. +.c.o: + @rm -f $@ + $(CC) $(CFLAGS) -c $(srcdir)/$*.c + +CSRC = addrtoname.c cpack.c gmpls.c oui.c gmt2local.c ipproto.c \ + nlpid.c l2vpn.c machdep.c parsenfsfh.c \ + print-802_11.c print-ap1394.c print-ah.c print-arcnet.c \ + print-aodv.c print-arp.c print-ascii.c print-atalk.c print-atm.c \ + print-beep.c print-bfd.c print-bgp.c print-bootp.c print-cdp.c \ + print-chdlc.c print-cip.c print-cnfp.c print-dccp.c print-decnet.c \ + print-domain.c print-dvmrp.c print-enc.c print-egp.c \ + print-eap.c print-eigrp.c\ + print-esp.c print-ether.c print-fddi.c print-fr.c \ + print-gre.c print-hsrp.c print-icmp.c print-igmp.c \ + print-igrp.c print-ip.c print-ipcomp.c print-ipfc.c \ + print-ipx.c print-isakmp.c print-isoclns.c print-juniper.c print-krb.c \ + print-l2tp.c print-lane.c print-ldp.c print-llc.c \ + print-lmp.c print-lspping.c \ + print-lwres.c print-mobile.c print-mpls.c print-msdp.c \ + print-nfs.c print-ntp.c print-null.c print-ospf.c \ + print-pflog.c print-pgm.c print-pim.c print-ppp.c print-pppoe.c \ + print-pptp.c print-radius.c print-raw.c print-rip.c \ + print-rsvp.c print-rx.c print-sctp.c print-sip.c print-sl.c print-sll.c \ + print-slow.c print-snmp.c print-stp.c print-sunatm.c print-sunrpc.c \ + print-symantec.c print-syslog.c print-tcp.c print-telnet.c print-tftp.c \ + print-timed.c print-token.c print-udp.c print-vjc.c print-vrrp.c \ + print-wb.c print-zephyr.c setsignal.c tcpdump.c util.c + +LOCALSRC = @LOCALSRC@ +GENSRC = version.c +LIBOBJS = @LIBOBJS@ + +SRC = $(CSRC) $(GENSRC) $(LOCALSRC) + +# We would like to say "OBJ = $(SRC:.c=.o)" but Ultrix's make cannot +# hack the extra indirection +OBJ = $(CSRC:.c=.o) $(GENSRC:.c=.o) $(LOCALSRC:.c=.o) $(LIBOBJS) +HDR = addrtoname.h appletalk.h bootp.h cpack.h dccp.h decnet.h \ + ethertype.h extract.h fddi.h gmt2local.h igrp.h interface.h \ + ipx.h llc.h machdep.h mib.h nfsfh.h nfsv2.h ntp.h ospf.h \ + setsignal.h \ + gnuc.h ipsec_doi.h isakmp.h l2tp.h nameser.h \ + netbios.h oakley.h ospf6.h pf.h ppp.h route6d.h + +TAGHDR = \ + /usr/include/arpa/tftp.h \ + /usr/include/net/if_arp.h \ + /usr/include/net/slip.h \ + /usr/include/netinet/if_ether.h \ + /usr/include/netinet/in.h \ + /usr/include/netinet/ip_icmp.h \ + /usr/include/netinet/tcp.h \ + /usr/include/netinet/udp.h \ + /usr/include/protocols/routed.h + +TAGFILES = $(SRC) $(HDR) $(TAGHDR) + +CLEANFILES = $(PROG) $(OBJ) $(GENSRC) + +all: $(PROG) + +$(PROG): $(OBJ) @V_PCAPDEP@ + @rm -f $@ + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJ) $(LIBS) + +datalinks.o: $(srcdir)/missing/datalinks.c + $(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/datalinks.c +dlnames.o: $(srcdir)/missing/dlnames.c + $(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/dlnames.c +getnameinfo.o: $(srcdir)/missing/getnameinfo.c + $(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/getnameinfo.c +getaddrinfo.o: $(srcdir)/missing/getaddrinfo.c + $(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/getaddrinfo.c +inet_pton.o: $(srcdir)/missing/inet_pton.c + $(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/inet_pton.c +inet_ntop.o: $(srcdir)/missing/inet_ntop.c + $(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/inet_ntop.c +inet_aton.o: $(srcdir)/missing/inet_aton.c + $(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/inet_aton.c +snprintf.o: $(srcdir)/missing/snprintf.c + $(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/snprintf.c +strlcat.o: $(srcdir)/missing/strlcat.c + $(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/strlcat.c +strlcpy.o: $(srcdir)/missing/strlcpy.c + $(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/strlcpy.c +strsep.o: $(srcdir)/missing/strsep.c + $(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/strsep.c + +version.o: version.c + $(CC) $(CFLAGS) -c version.c + +version.c: $(srcdir)/VERSION + @rm -f $@ + sed -e 's/.*/char version[] = "&";/' $(srcdir)/VERSION > $@ + +install: + [ -d $(DESTDIR)$(sbindir) ] || \ + (mkdir -p $(DESTDIR)$(sbindir); chmod 755 $(DESTDIR)$(sbindir)) + $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(sbindir)/$(PROG) + [ -d $(DESTDIR)$(mandir)/man1 ] || \ + (mkdir -p $(DESTDIR)$(mandir)/man1; chmod 755 $(DESTDIR)$(mandir)/man1) + $(INSTALL_DATA) $(srcdir)/$(PROG).1 $(DESTDIR)$(mandir)/man1/$(PROG).1 + +uninstall: + rm -f $(DESTDIR)$(sbindir)/$(PROG) + rm -f $(DESTDIR)$(mandir)/man1/$(PROG).1 + +lint: $(GENSRC) + lint -hbxn $(SRC) | \ + grep -v 'struct/union .* never defined' | \ + grep -v 'possible pointer alignment problem' + +clean: + rm -f $(CLEANFILES) + +distclean: + rm -f $(CLEANFILES) Makefile config.cache config.log config.status \ + config.h gnuc.h os-proto.h stamp-h stamp-h.in + +tags: $(TAGFILES) + ctags -wtd $(TAGFILES) + +tar: + @cwd=`pwd` ; dir=`basename $$cwd` ; name=$(PROG)-`cat VERSION` ; \ + list="" ; tar="tar chf" ; \ + for i in `cat FILES` ; do list="$$list $$name/$$i" ; done; \ + echo \ + "rm -f ../$$name; ln -s $$dir ../$$name" ; \ + rm -f ../$$name; ln -s $$dir ../$$name ; \ + echo \ + "(cd .. ; $$tar - [lots of files]) | compress > /tmp/$$name.tar.Z" ; \ + (cd .. ; $$tar - $$list) | compress > /tmp/$$name.tar.Z ; \ + echo \ + "rm -f ../$$name" ; \ + rm -f ../$$name + +depend: $(GENSRC) + ${srcdir}/mkdep -c $(CC) $(DEFS) $(INCLS) $(SRC) diff --git a/src/bin/network/tcpdump/PLATFORMS b/src/bin/network/tcpdump/PLATFORMS new file mode 100644 index 0000000000..2e1aedf773 --- /dev/null +++ b/src/bin/network/tcpdump/PLATFORMS @@ -0,0 +1,9 @@ +== Tested platforms == +NetBSD 1.5/i386 (mcr - 2002/1/1) +Debian Linux (woody/i386) (mcr - 2002/1/1) + +--- +RedHat Linux 6.1/i386 (assar) +FreeBSD 2.2.8/i386 (itojun) + + diff --git a/src/bin/network/tcpdump/README b/src/bin/network/tcpdump/README new file mode 100644 index 0000000000..17df49d4db --- /dev/null +++ b/src/bin/network/tcpdump/README @@ -0,0 +1,234 @@ +@(#) $Header: /tcpdump/master/tcpdump/README,v 1.65 2004/10/12 02:01:59 guy Exp $ (LBL) + +TCPDUMP 3.9 +Now maintained by "The Tcpdump Group" +See www.tcpdump.org + +Please send inquiries/comments/reports to tcpdump-workers@tcpdump.org + +Anonymous CVS is available via: + cvs -d :pserver:cvs.tcpdump.org:/tcpdump/master login + (password "anoncvs") + cvs -d :pserver:cvs.tcpdump.org:/tcpdump/master checkout tcpdump + +Version 3.9 of TCPDUMP can be retrived with the CVS tag "tcpdump_3_9rel1": + cvs -d :pserver:cvs.tcpdump.org:/tcpdump/master checkout -r tcpdump_3_9rel1 tcpdump + +Please send patches against the master copy to patches@tcpdump.org. + +formerly from Lawrence Berkeley National Laboratory + Network Research Group + ftp://ftp.ee.lbl.gov/tcpdump.tar.Z (3.4) + +This directory contains source code for tcpdump, a tool for network +monitoring and data acquisition. This software was originally +developed by the Network Research Group at the Lawrence Berkeley +National Laboratory. The original distribution is available via +anonymous ftp to ftp.ee.lbl.gov, in tcpdump.tar.Z. More recent +development is performed at tcpdump.org, http://www.tcpdump.org/ + +Tcpdump uses libpcap, a system-independent interface for user-level +packet capture. Before building tcpdump, you must first retrieve and +build libpcap, also originally from LBL and now being maintained by +tcpdump.org; see http://www.tcpdump.org/ . + +Once libpcap is built (either install it or make sure it's in +../libpcap), you can build tcpdump using the procedure in the INSTALL +file. + +The program is loosely based on SMI's "etherfind" although none of the +etherfind code remains. It was originally written by Van Jacobson as +part of an ongoing research project to investigate and improve tcp and +internet gateway performance. The parts of the program originally +taken from Sun's etherfind were later re-written by Steven McCanne of +LBL. To insure that there would be no vestige of proprietary code in +tcpdump, Steve wrote these pieces from the specification given by the +manual entry, with no access to the source of tcpdump or etherfind. + +Over the past few years, tcpdump has been steadily improved by the +excellent contributions from the Internet community (just browse +through the CHANGES file). We are grateful for all the input. + +Richard Stevens gives an excellent treatment of the Internet protocols +in his book ``TCP/IP Illustrated, Volume 1''. If you want to learn more +about tcpdump and how to interpret its output, pick up this book. + +Some tools for viewing and analyzing tcpdump trace files are available +from the Internet Traffic Archive: + + http://www.acm.org/sigcomm/ITA/ + +Another tool that tcpdump users might find useful is tcpslice: + + ftp://ftp.ee.lbl.gov/tcpslice.tar.Z + +It is a program that can be used to extract portions of tcpdump binary +trace files. See the above distribution for further details and +documentation. + +Problems, bugs, questions, desirable enhancements, etc. should be sent +to the address "tcpdump-workers@tcpdump.org". Bugs, support requests, +and feature requests may also be submitted on the SourceForge site for +tcpdump at + + http://sourceforge.net/projects/tcpdump/ + +Source code contributions, etc. should be sent to the email address +"patches@tcpdump.org", or submitted as patches on the SourceForge site +for tcpdump. + +Current versions can be found at www.tcpdump.org, or the SourceForge +site for tcpdump. + + - The TCPdump team + +original text by: Steve McCanne, Craig Leres, Van Jacobson + +------------------------------------- +This directory also contains some short awk programs intended as +examples of ways to reduce tcpdump data when you're tracking +particular network problems: + +send-ack.awk + Simplifies the tcpdump trace for an ftp (or other unidirectional + tcp transfer). Since we assume that one host only sends and + the other only acks, all address information is left off and + we just note if the packet is a "send" or an "ack". + + There is one output line per line of the original trace. + Field 1 is the packet time in decimal seconds, relative + to the start of the conversation. Field 2 is delta-time + from last packet. Field 3 is packet type/direction. + "Send" means data going from sender to receiver, "ack" + means an ack going from the receiver to the sender. A + preceding "*" indicates that the data is a retransmission. + A preceding "-" indicates a hole in the sequence space + (i.e., missing packet(s)), a "#" means an odd-size (not max + seg size) packet. Field 4 has the packet flags + (same format as raw trace). Field 5 is the sequence + number (start seq. num for sender, next expected seq number + for acks). The number in parens following an ack is + the delta-time from the first send of the packet to the + ack. A number in parens following a send is the + delta-time from the first send of the packet to the + current send (on duplicate packets only). Duplicate + sends or acks have a number in square brackets showing + the number of duplicates so far. + + Here is a short sample from near the start of an ftp: + 3.00 0.20 send . 512 + 3.20 0.20 ack . 1024 (0.20) + 3.20 0.00 send P 1024 + 3.40 0.20 ack . 1536 (0.20) + 3.80 0.40 * send . 0 (3.80) [2] + 3.82 0.02 * ack . 1536 (0.62) [2] + Three seconds into the conversation, bytes 512 through 1023 + were sent. 200ms later they were acked. Shortly thereafter + bytes 1024-1535 were sent and again acked after 200ms. + Then, for no apparent reason, 0-511 is retransmitted, 3.8 + seconds after its initial send (the round trip time for this + ftp was 1sec, +-500ms). Since the receiver is expecting + 1536, 1536 is re-acked when 0 arrives. + +packetdat.awk + Computes chunk summary data for an ftp (or similar + unidirectional tcp transfer). [A "chunk" refers to + a chunk of the sequence space -- essentially the packet + sequence number divided by the max segment size.] + + A summary line is printed showing the number of chunks, + the number of packets it took to send that many chunks + (if there are no lost or duplicated packets, the number + of packets should equal the number of chunks) and the + number of acks. + + Following the summary line is one line of information + per chunk. The line contains eight fields: + 1 - the chunk number + 2 - the start sequence number for this chunk + 3 - time of first send + 4 - time of last send + 5 - time of first ack + 6 - time of last ack + 7 - number of times chunk was sent + 8 - number of times chunk was acked + (all times are in decimal seconds, relative to the start + of the conversation.) + + As an example, here is the first part of the output for + an ftp trace: + + # 134 chunks. 536 packets sent. 508 acks. + 1 1 0.00 5.80 0.20 0.20 4 1 + 2 513 0.28 6.20 0.40 0.40 4 1 + 3 1025 1.16 6.32 1.20 1.20 4 1 + 4 1561 1.86 15.00 2.00 2.00 6 1 + 5 2049 2.16 15.44 2.20 2.20 5 1 + 6 2585 2.64 16.44 2.80 2.80 5 1 + 7 3073 3.00 16.66 3.20 3.20 4 1 + 8 3609 3.20 17.24 3.40 5.82 4 11 + 9 4097 6.02 6.58 6.20 6.80 2 5 + + This says that 134 chunks were transferred (about 70K + since the average packet size was 512 bytes). It took + 536 packets to transfer the data (i.e., on the average + each chunk was transmitted four times). Looking at, + say, chunk 4, we see it represents the 512 bytes of + sequence space from 1561 to 2048. It was first sent + 1.86 seconds into the conversation. It was last + sent 15 seconds into the conversation and was sent + a total of 6 times (i.e., it was retransmitted every + 2 seconds on the average). It was acked once, 140ms + after it first arrived. + +stime.awk +atime.awk + Output one line per send or ack, respectively, in the form +