|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| lbl/ | | 03-May-2024 | - | 302 | 205 |
| missing/ | | 03-May-2024 | - | 1,753 | 1,151 |
| tests/ | | 03-May-2024 | - | 31,256 | 30,537 |
| win32/ | | 03-May-2024 | - | 5,170 | 4,860 |
| .gitattributes | D | 03-May-2024 | 573 | 27 | 23 |
| .gitignore | D | 03-May-2024 | 179 | 19 | 18 |
| Android.mk | D | 03-May-2024 | 4.5 KiB | 195 | 182 |
| CHANGES | D | 03-May-2024 | 52.3 KiB | 1,321 | 1,072 |
| CONTRIBUTING | D | 03-May-2024 | 3.8 KiB | 104 | 76 |
| CREDITS | D | 03-May-2024 | 14.3 KiB | 235 | 229 |
| CleanSpec.mk | D | 03-May-2024 | 2.2 KiB | 50 | 0 |
| INSTALL.txt | D | 03-May-2024 | 5.2 KiB | 123 | 114 |
| LICENSE | D | 03-May-2024 | 873 | 20 | 16 |
| MODULE_LICENSE_BSD | D | 03-May-2024 | 0 | | |
| Makefile-devel-adds | D | 03-May-2024 | 614 | 23 | 18 |
| Makefile.in | D | 03-May-2024 | 9.9 KiB | 463 | 385 |
| NOTICE | D | 03-May-2024 | 873 | 20 | 16 |
| PLATFORMS | D | 03-May-2024 | 172 | 10 | 6 |
| README | D | 03-May-2024 | 9.5 KiB | 244 | 192 |
| README.md | D | 03-May-2024 | 9.5 KiB | 244 | 192 |
| README.version | D | 03-May-2024 | 93 | 4 | 3 |
| Readme.Win32 | D | 03-May-2024 | 1 KiB | 24 | 19 |
| VERSION | D | 03-May-2024 | 6 | 2 | 1 |
| aclocal.m4 | D | 03-May-2024 | 40.4 KiB | 1,362 | 1,292 |
| addrtoname.c | D | 03-May-2024 | 32.6 KiB | 1,274 | 1,024 |
| addrtoname.h | D | 03-May-2024 | 2.8 KiB | 62 | 29 |
| addrtostr.c | D | 03-May-2024 | 5.7 KiB | 215 | 133 |
| addrtostr.h | D | 03-May-2024 | 2 KiB | 43 | 2 |
| af.c | D | 03-May-2024 | 2 KiB | 59 | 38 |
| af.h | D | 03-May-2024 | 1.8 KiB | 56 | 27 |
| ah.h | D | 03-May-2024 | 2.3 KiB | 58 | 16 |
| appletalk.h | D | 03-May-2024 | 4.1 KiB | 167 | 103 |
| ascii_strcasecmp.c | D | 03-May-2024 | 3.5 KiB | 106 | 66 |
| ascii_strcasecmp.h | D | 03-May-2024 | 1.5 KiB | 34 | 6 |
| atime.awk | D | 03-May-2024 | 529 | 19 | 9 |
| atm.h | D | 03-May-2024 | 1.1 KiB | 32 | 6 |
| bpf_dump.c | D | 03-May-2024 | 1.9 KiB | 62 | 35 |
| chdlc.h | D | 03-May-2024 | 1.3 KiB | 27 | 5 |
| checksum.c | D | 03-May-2024 | 5.3 KiB | 190 | 118 |
| config.guess | D | 03-May-2024 | 42.3 KiB | 1,436 | 1,243 |
| config.h | D | 03-May-2024 | 12 KiB | 396 | 70 |
| config.h.in | D | 03-May-2024 | 11.4 KiB | 395 | 269 |
| config.sub | D | 03-May-2024 | 35.2 KiB | 1,808 | 1,670 |
| configure | D | 03-May-2024 | 257.3 KiB | 9,651 | 7,584 |
| configure.in | D | 03-May-2024 | 25.2 KiB | 1,004 | 931 |
| cpack.c | D | 03-May-2024 | 3.9 KiB | 156 | 81 |
| cpack.h | D | 03-May-2024 | 2.4 KiB | 57 | 20 |
| ether.h | D | 03-May-2024 | 2.3 KiB | 58 | 8 |
| ethertype.h | D | 03-May-2024 | 5.6 KiB | 204 | 163 |
| extract.h | D | 03-May-2024 | 9.8 KiB | 245 | 126 |
| getopt_long.h | D | 03-May-2024 | 2.4 KiB | 67 | 18 |
| gmpls.c | D | 03-May-2024 | 5.8 KiB | 193 | 145 |
| gmpls.h | D | 03-May-2024 | 1.4 KiB | 34 | 17 |
| gmt2local.c | D | 03-May-2024 | 2 KiB | 67 | 28 |
| gmt2local.h | D | 03-May-2024 | 1.2 KiB | 26 | 4 |
| in_cksum.c | D | 03-May-2024 | 6.4 KiB | 201 | 90 |
| install-sh | D | 03-May-2024 | 5.4 KiB | 251 | 152 |
| interface.h | D | 03-May-2024 | 2.3 KiB | 80 | 42 |
| ip.h | D | 03-May-2024 | 5.7 KiB | 165 | 83 |
| ip6.h | D | 03-May-2024 | 7.6 KiB | 203 | 95 |
| ipproto.c | D | 03-May-2024 | 1.7 KiB | 57 | 37 |
| ipproto.h | D | 03-May-2024 | 4.6 KiB | 146 | 97 |
| l2vpn.c | D | 03-May-2024 | 3.4 KiB | 96 | 63 |
| l2vpn.h | D | 03-May-2024 | 782 | 18 | 2 |
| llc.h | D | 03-May-2024 | 3.7 KiB | 123 | 84 |
| machdep.c | D | 03-May-2024 | 2.6 KiB | 75 | 31 |
| machdep.h | D | 03-May-2024 | 1.2 KiB | 26 | 4 |
| makemib | D | 03-May-2024 | 6.4 KiB | 248 | 186 |
| mib.h | D | 03-May-2024 | 26.3 KiB | 1,461 | 1,450 |
| mkdep | D | 03-May-2024 | 2.4 KiB | 113 | 66 |
| mpls.h | D | 03-May-2024 | 1.9 KiB | 42 | 12 |
| nameser.h | D | 03-May-2024 | 10.8 KiB | 301 | 172 |
| netdissect-stdinc.h | D | 03-May-2024 | 9.8 KiB | 405 | 222 |
| netdissect.c | D | 03-May-2024 | 3.4 KiB | 147 | 77 |
| netdissect.h | D | 03-May-2024 | 30.2 KiB | 664 | 439 |
| nfs.h | D | 03-May-2024 | 13.4 KiB | 439 | 312 |
| nfsfh.h | D | 03-May-2024 | 2.6 KiB | 67 | 13 |
| nlpid.c | D | 03-May-2024 | 1.3 KiB | 42 | 24 |
| nlpid.h | D | 03-May-2024 | 1.3 KiB | 33 | 16 |
| openflow.h | D | 03-May-2024 | 2.1 KiB | 52 | 15 |
| ospf.h | D | 03-May-2024 | 10.2 KiB | 326 | 221 |
| oui.c | D | 03-May-2024 | 3.8 KiB | 105 | 74 |
| oui.h | D | 03-May-2024 | 4.1 KiB | 92 | 64 |
| packetdat.awk | D | 03-May-2024 | 1.4 KiB | 62 | 47 |
| parsenfsfh.c | D | 03-May-2024 | 12.9 KiB | 483 | 296 |
| pcap-missing.h | D | 03-May-2024 | 1.8 KiB | 50 | 16 |
| pcap_dump_ftell.c | D | 03-May-2024 | 1.3 KiB | 32 | 8 |
| ppp.h | D | 03-May-2024 | 3.1 KiB | 69 | 45 |
| print-802_11.c | D | 03-May-2024 | 91.5 KiB | 3,379 | 2,382 |
| print-802_15_4.c | D | 03-May-2024 | 3.8 KiB | 182 | 134 |
| print-ah.c | D | 03-May-2024 | 2 KiB | 65 | 30 |
| print-ahcp.c | D | 03-May-2024 | 10.7 KiB | 412 | 327 |
| print-aodv.c | D | 03-May-2024 | 15.8 KiB | 533 | 432 |
| print-aoe.c | D | 03-May-2024 | 11.1 KiB | 431 | 322 |
| print-ap1394.c | D | 03-May-2024 | 4 KiB | 126 | 70 |
| print-arcnet.c | D | 03-May-2024 | 8.8 KiB | 361 | 217 |
| print-arp.c | D | 03-May-2024 | 13.3 KiB | 426 | 305 |
| print-ascii.c | D | 03-May-2024 | 6.2 KiB | 210 | 142 |
| print-atalk.c | D | 03-May-2024 | 16.8 KiB | 662 | 512 |
| print-atm.c | D | 03-May-2024 | 16.8 KiB | 556 | 361 |
| print-babel.c | D | 03-May-2024 | 23.7 KiB | 718 | 594 |
| print-beep.c | D | 03-May-2024 | 1.5 KiB | 61 | 33 |
| print-bfd.c | D | 03-May-2024 | 16.2 KiB | 407 | 249 |
| print-bgp.c | D | 03-May-2024 | 97.7 KiB | 2,837 | 2,318 |
| print-bootp.c | D | 03-May-2024 | 30 KiB | 1,094 | 863 |
| print-bt.c | D | 03-May-2024 | 2.2 KiB | 72 | 29 |
| print-calm-fast.c | D | 03-May-2024 | 1.8 KiB | 76 | 31 |
| print-carp.c | D | 03-May-2024 | 2.4 KiB | 84 | 40 |
| print-cdp.c | D | 03-May-2024 | 11.2 KiB | 405 | 309 |
| print-cfm.c | D | 03-May-2024 | 21.8 KiB | 718 | 530 |
| print-chdlc.c | D | 03-May-2024 | 5.8 KiB | 207 | 141 |
| print-cip.c | D | 03-May-2024 | 2.5 KiB | 109 | 50 |
| print-cnfp.c | D | 03-May-2024 | 13.7 KiB | 478 | 343 |
| print-dccp.c | D | 03-May-2024 | 16.4 KiB | 660 | 535 |
| print-decnet.c | D | 03-May-2024 | 38.3 KiB | 1,272 | 1,104 |
| print-dhcp6.c | D | 03-May-2024 | 23.2 KiB | 829 | 708 |
| print-domain.c | D | 03-May-2024 | 18.2 KiB | 749 | 638 |
| print-dtp.c | D | 03-May-2024 | 3 KiB | 129 | 76 |
| print-dvmrp.c | D | 03-May-2024 | 8.9 KiB | 368 | 293 |
| print-eap.c | D | 03-May-2024 | 8.9 KiB | 295 | 214 |
| print-egp.c | D | 03-May-2024 | 8.7 KiB | 377 | 319 |
| print-eigrp.c | D | 03-May-2024 | 17.1 KiB | 476 | 375 |
| print-enc.c | D | 03-May-2024 | 4.2 KiB | 139 | 56 |
| print-esp.c | D | 03-May-2024 | 17.5 KiB | 754 | 503 |
| print-ether.c | D | 03-May-2024 | 12.9 KiB | 464 | 312 |
| print-fddi.c | D | 03-May-2024 | 10.5 KiB | 346 | 203 |
| print-forces.c | D | 03-May-2024 | 45 KiB | 1,761 | 1,407 |
| print-fr.c | D | 03-May-2024 | 31.7 KiB | 1,143 | 721 |
| print-frag6.c | D | 03-May-2024 | 2.4 KiB | 70 | 38 |
| print-ftp.c | D | 03-May-2024 | 973 | 33 | 13 |
| print-geneve.c | D | 03-May-2024 | 6.1 KiB | 238 | 156 |
| print-geonet.c | D | 03-May-2024 | 6.7 KiB | 287 | 204 |
| print-gre.c | D | 03-May-2024 | 9.7 KiB | 423 | 322 |
| print-hncp.c | D | 03-May-2024 | 26 KiB | 856 | 707 |
| print-hsrp.c | D | 03-May-2024 | 4.6 KiB | 136 | 73 |
| print-http.c | D | 03-May-2024 | 1.5 KiB | 78 | 54 |
| print-icmp.c | D | 03-May-2024 | 22.4 KiB | 699 | 523 |
| print-icmp6.c | D | 03-May-2024 | 59.5 KiB | 1,954 | 1,624 |
| print-igmp.c | D | 03-May-2024 | 10.1 KiB | 342 | 275 |
| print-igrp.c | D | 03-May-2024 | 4.6 KiB | 156 | 107 |
| print-ip.c | D | 03-May-2024 | 16.7 KiB | 721 | 519 |
| print-ip6.c | D | 03-May-2024 | 10.4 KiB | 413 | 271 |
| print-ip6opts.c | D | 03-May-2024 | 5.5 KiB | 214 | 163 |
| print-ipcomp.c | D | 03-May-2024 | 2.3 KiB | 70 | 25 |
| print-ipfc.c | D | 03-May-2024 | 4.4 KiB | 146 | 65 |
| print-ipnet.c | D | 03-May-2024 | 2.5 KiB | 118 | 80 |
| print-ipx.c | D | 03-May-2024 | 6.4 KiB | 239 | 179 |
| print-isakmp.c | D | 03-May-2024 | 80.6 KiB | 3,097 | 2,446 |
| print-isoclns.c | D | 03-May-2024 | 104.6 KiB | 3,147 | 2,565 |
| print-juniper.c | D | 03-May-2024 | 47.6 KiB | 1,470 | 1,218 |
| print-krb.c | D | 03-May-2024 | 6.3 KiB | 259 | 195 |
| print-l2tp.c | D | 03-May-2024 | 22.6 KiB | 750 | 625 |
| print-lane.c | D | 03-May-2024 | 3 KiB | 125 | 69 |
| print-ldp.c | D | 03-May-2024 | 23.9 KiB | 699 | 504 |
| print-lisp.c | D | 03-May-2024 | 15.2 KiB | 450 | 281 |
| print-llc.c | D | 03-May-2024 | 16.7 KiB | 615 | 389 |
| print-lldp.c | D | 03-May-2024 | 57.2 KiB | 1,658 | 1,356 |
| print-lmp.c | D | 03-May-2024 | 29.1 KiB | 872 | 682 |
| print-loopback.c | D | 03-May-2024 | 3.6 KiB | 137 | 83 |
| print-lspping.c | D | 03-May-2024 | 51.6 KiB | 1,085 | 688 |
| print-lwapp.c | D | 03-May-2024 | 13 KiB | 350 | 234 |
| print-lwres.c | D | 03-May-2024 | 14.1 KiB | 596 | 412 |
| print-m3ua.c | D | 03-May-2024 | 10.9 KiB | 340 | 239 |
| print-medsa.c | D | 03-May-2024 | 5.6 KiB | 197 | 130 |
| print-mobile.c | D | 03-May-2024 | 3.3 KiB | 104 | 50 |
| print-mobility.c | D | 03-May-2024 | 9.5 KiB | 337 | 254 |
| print-mpcp.c | D | 03-May-2024 | 7.9 KiB | 260 | 196 |
| print-mpls.c | D | 03-May-2024 | 5.3 KiB | 223 | 127 |
| print-mptcp.c | D | 03-May-2024 | 13 KiB | 431 | 323 |
| print-msdp.c | D | 03-May-2024 | 2.7 KiB | 104 | 70 |
| print-msnlb.c | D | 03-May-2024 | 2.4 KiB | 66 | 28 |
| print-nflog.c | D | 03-May-2024 | 4.4 KiB | 169 | 103 |
| print-nfs.c | D | 03-May-2024 | 42.7 KiB | 1,711 | 1,403 |
| print-nsh.c | D | 03-May-2024 | 5.4 KiB | 186 | 126 |
| print-ntp.c | D | 03-May-2024 | 13.3 KiB | 428 | 262 |
| print-null.c | D | 03-May-2024 | 4 KiB | 148 | 66 |
| print-olsr.c | D | 03-May-2024 | 23.3 KiB | 717 | 493 |
| print-openflow-1.0.c | D | 03-May-2024 | 76.6 KiB | 2,561 | 1,998 |
| print-openflow.c | D | 03-May-2024 | 4.8 KiB | 143 | 82 |
| print-ospf.c | D | 03-May-2024 | 39.5 KiB | 1,210 | 997 |
| print-ospf6.c | D | 03-May-2024 | 29.7 KiB | 1,011 | 798 |
| print-otv.c | D | 03-May-2024 | 2.1 KiB | 73 | 30 |
| print-pflog.c | D | 03-May-2024 | 4.8 KiB | 186 | 129 |
| print-pgm.c | D | 03-May-2024 | 19.9 KiB | 785 | 653 |
| print-pim.c | D | 03-May-2024 | 31.6 KiB | 1,158 | 882 |
| print-pktap.c | D | 03-May-2024 | 5.1 KiB | 170 | 93 |
| print-ppi.c | D | 03-May-2024 | 2.6 KiB | 130 | 87 |
| print-ppp.c | D | 03-May-2024 | 46 KiB | 1,868 | 1,483 |
| print-pppoe.c | D | 03-May-2024 | 5.7 KiB | 202 | 142 |
| print-pptp.c | D | 03-May-2024 | 25.9 KiB | 1,007 | 810 |
| print-radius.c | D | 03-May-2024 | 35.2 KiB | 998 | 774 |
| print-raw.c | D | 03-May-2024 | 1.5 KiB | 46 | 13 |
| print-resp.c | D | 03-May-2024 | 16.4 KiB | 539 | 305 |
| print-rip.c | D | 03-May-2024 | 9.2 KiB | 274 | 188 |
| print-ripng.c | D | 03-May-2024 | 5.7 KiB | 175 | 110 |
| print-rpki-rtr.c | D | 03-May-2024 | 8.8 KiB | 372 | 234 |
| print-rrcp.c | D | 03-May-2024 | 4.6 KiB | 130 | 88 |
| print-rsvp.c | D | 03-May-2024 | 77.3 KiB | 1,973 | 1,663 |
| print-rt6.c | D | 03-May-2024 | 2.6 KiB | 94 | 54 |
| print-rtsp.c | D | 03-May-2024 | 1.2 KiB | 48 | 27 |
| print-rx.c | D | 03-May-2024 | 66.5 KiB | 2,888 | 2,138 |
| print-sctp.c | D | 03-May-2024 | 23.1 KiB | 818 | 571 |
| print-sflow.c | D | 03-May-2024 | 31.5 KiB | 992 | 781 |
| print-sip.c | D | 03-May-2024 | 1.3 KiB | 55 | 31 |
| print-sl.c | D | 03-May-2024 | 6.3 KiB | 256 | 174 |
| print-sll.c | D | 03-May-2024 | 8.9 KiB | 311 | 137 |
| print-slow.c | D | 03-May-2024 | 25.2 KiB | 745 | 575 |
| print-smb.c | D | 03-May-2024 | 42.9 KiB | 1,499 | 1,232 |
| print-smtp.c | D | 03-May-2024 | 983 | 33 | 13 |
| print-snmp.c | D | 03-May-2024 | 43.2 KiB | 1,940 | 1,458 |
| print-stp.c | D | 03-May-2024 | 17.1 KiB | 509 | 342 |
| print-sunatm.c | D | 03-May-2024 | 3.3 KiB | 109 | 50 |
| print-sunrpc.c | D | 03-May-2024 | 7.8 KiB | 251 | 123 |
| print-symantec.c | D | 03-May-2024 | 3.8 KiB | 115 | 66 |
| print-syslog.c | D | 03-May-2024 | 4 KiB | 147 | 101 |
| print-tcp.c | D | 03-May-2024 | 35.5 KiB | 921 | 709 |
| print-telnet.c | D | 03-May-2024 | 15 KiB | 557 | 412 |
| print-tftp.c | D | 03-May-2024 | 5.8 KiB | 223 | 152 |
| print-timed.c | D | 03-May-2024 | 4.7 KiB | 151 | 101 |
| print-tipc.c | D | 03-May-2024 | 11.5 KiB | 386 | 314 |
| print-token.c | D | 03-May-2024 | 8 KiB | 251 | 146 |
| print-udld.c | D | 03-May-2024 | 5.5 KiB | 199 | 109 |
| print-udp.c | D | 03-May-2024 | 21.3 KiB | 719 | 606 |
| print-usb.c | D | 03-May-2024 | 4.2 KiB | 177 | 116 |
| print-vjc.c | D | 03-May-2024 | 4.4 KiB | 121 | 42 |
| print-vqp.c | D | 03-May-2024 | 6.4 KiB | 200 | 134 |
| print-vrrp.c | D | 03-May-2024 | 6.3 KiB | 184 | 95 |
| print-vtp.c | D | 03-May-2024 | 12.6 KiB | 384 | 214 |
| print-vxlan-gpe.c | D | 03-May-2024 | 3.5 KiB | 114 | 58 |
| print-vxlan.c | D | 03-May-2024 | 2.2 KiB | 75 | 28 |
| print-wb.c | D | 03-May-2024 | 10.7 KiB | 454 | 333 |
| print-zephyr.c | D | 03-May-2024 | 7.8 KiB | 321 | 249 |
| print-zeromq.c | D | 03-May-2024 | 7.5 KiB | 221 | 112 |
| print.c | D | 03-May-2024 | 11.8 KiB | 485 | 352 |
| print.h | D | 03-May-2024 | 1.8 KiB | 45 | 11 |
| rpc_auth.h | D | 03-May-2024 | 2.7 KiB | 79 | 20 |
| rpc_msg.h | D | 03-May-2024 | 3.2 KiB | 128 | 56 |
| rpl.h | D | 03-May-2024 | 4.9 KiB | 175 | 126 |
| send-ack.awk | D | 03-May-2024 | 1.6 KiB | 69 | 57 |
| setsignal.c | D | 03-May-2024 | 3.3 KiB | 91 | 32 |
| setsignal.h | D | 03-May-2024 | 1.2 KiB | 26 | 4 |
| signature.c | D | 03-May-2024 | 5.6 KiB | 215 | 105 |
| signature.h | D | 03-May-2024 | 1.1 KiB | 30 | 8 |
| slcompress.h | D | 03-May-2024 | 3.6 KiB | 86 | 14 |
| smb.h | D | 03-May-2024 | 5.4 KiB | 123 | 95 |
| smbutil.c | D | 03-May-2024 | 62.9 KiB | 1,893 | 1,724 |
| stime.awk | D | 03-May-2024 | 567 | 20 | 10 |
| strtoaddr.c | D | 03-May-2024 | 5.3 KiB | 240 | 148 |
| strtoaddr.h | D | 03-May-2024 | 992 | 24 | 2 |
| tcp.h | D | 03-May-2024 | 5 KiB | 161 | 114 |
| tcpdump.1.in | D | 03-May-2024 | 60.4 KiB | 1,976 | 1,946 |
| tcpdump.c | D | 03-May-2024 | 68.1 KiB | 2,641 | 1,842 |
| timeval-operations.h | D | 03-May-2024 | 3.2 KiB | 79 | 41 |
| udp.h | D | 03-May-2024 | 8.3 KiB | 317 | 276 |
| util-print.c | D | 03-May-2024 | 22.5 KiB | 939 | 591 |
| version.c | D | 03-May-2024 | 32 | 2 | 1 |
| vfprintf.c | D | 03-May-2024 | 1.6 KiB | 55 | 24 |
README
1# tcpdump
2
3[![Build
4Status](https://travis-ci.org/the-tcpdump-group/tcpdump.png)](https://travis-ci.org/the-tcpdump-group/tcpdump)
5
6TCPDUMP 4.x.y
7Now maintained by "The Tcpdump Group"
8See www.tcpdump.org
9
10Please send inquiries/comments/reports to:
11
12* tcpdump-workers@lists.tcpdump.org
13
14Anonymous Git is available via:
15
16 git clone git://bpf.tcpdump.org/tcpdump
17
18Please submit patches by forking the branch on GitHub at:
19
20* http://github.com/the-tcpdump-group/tcpdump/tree/master
21
22and issuing a pull request.
23
24formerly from Lawrence Berkeley National Laboratory
25 Network Research Group <tcpdump@ee.lbl.gov>
26 ftp://ftp.ee.lbl.gov/old/tcpdump.tar.Z (3.4)
27
28This directory contains source code for tcpdump, a tool for network
29monitoring and data acquisition. This software was originally
30developed by the Network Research Group at the Lawrence Berkeley
31National Laboratory. The original distribution is available via
32anonymous ftp to `ftp.ee.lbl.gov`, in `tcpdump.tar.Z`. More recent
33development is performed at tcpdump.org, http://www.tcpdump.org/
34
35Tcpdump uses libpcap, a system-independent interface for user-level
36packet capture. Before building tcpdump, you must first retrieve and
37build libpcap, also originally from LBL and now being maintained by
38tcpdump.org; see http://www.tcpdump.org/ .
39
40Once libpcap is built (either install it or make sure it's in
41`../libpcap`), you can build tcpdump using the procedure in the `INSTALL.txt`
42file.
43
44The program is loosely based on SMI's "etherfind" although none of the
45etherfind code remains. It was originally written by Van Jacobson as
46part of an ongoing research project to investigate and improve tcp and
47internet gateway performance. The parts of the program originally
48taken from Sun's etherfind were later re-written by Steven McCanne of
49LBL. To insure that there would be no vestige of proprietary code in
50tcpdump, Steve wrote these pieces from the specification given by the
51manual entry, with no access to the source of tcpdump or etherfind.
52
53Over the past few years, tcpdump has been steadily improved by the
54excellent contributions from the Internet community (just browse
55through the `CHANGES` file). We are grateful for all the input.
56
57Richard Stevens gives an excellent treatment of the Internet protocols
58in his book *"TCP/IP Illustrated, Volume 1"*. If you want to learn more
59about tcpdump and how to interpret its output, pick up this book.
60
61Some tools for viewing and analyzing tcpdump trace files are available
62from the Internet Traffic Archive:
63
64* http://www.sigcomm.org/ITA/
65
66Another tool that tcpdump users might find useful is tcpslice:
67
68* https://github.com/the-tcpdump-group/tcpslice
69
70It is a program that can be used to extract portions of tcpdump binary
71trace files. See the above distribution for further details and
72documentation.
73
74Problems, bugs, questions, desirable enhancements, etc. should be sent
75to the address "tcpdump-workers@lists.tcpdump.org". Bugs, support
76requests, and feature requests may also be submitted on the GitHub issue
77tracker for tcpdump at:
78
79* https://github.com/the-tcpdump-group/tcpdump/issues
80
81Source code contributions, etc. should be sent to the email address
82above or submitted by forking the branch on GitHub at:
83
84* http://github.com/the-tcpdump-group/tcpdump/tree/master
85
86and issuing a pull request.
87
88Current versions can be found at www.tcpdump.org.
89
90 - The TCPdump team
91
92original text by: Steve McCanne, Craig Leres, Van Jacobson
93
94-------------------------------------
95```
96This directory also contains some short awk programs intended as
97examples of ways to reduce tcpdump data when you're tracking
98particular network problems:
99
100send-ack.awk
101 Simplifies the tcpdump trace for an ftp (or other unidirectional
102 tcp transfer). Since we assume that one host only sends and
103 the other only acks, all address information is left off and
104 we just note if the packet is a "send" or an "ack".
105
106 There is one output line per line of the original trace.
107 Field 1 is the packet time in decimal seconds, relative
108 to the start of the conversation. Field 2 is delta-time
109 from last packet. Field 3 is packet type/direction.
110 "Send" means data going from sender to receiver, "ack"
111 means an ack going from the receiver to the sender. A
112 preceding "*" indicates that the data is a retransmission.
113 A preceding "-" indicates a hole in the sequence space
114 (i.e., missing packet(s)), a "#" means an odd-size (not max
115 seg size) packet. Field 4 has the packet flags
116 (same format as raw trace). Field 5 is the sequence
117 number (start seq. num for sender, next expected seq number
118 for acks). The number in parens following an ack is
119 the delta-time from the first send of the packet to the
120 ack. A number in parens following a send is the
121 delta-time from the first send of the packet to the
122 current send (on duplicate packets only). Duplicate
123 sends or acks have a number in square brackets showing
124 the number of duplicates so far.
125
126 Here is a short sample from near the start of an ftp:
127 3.00 0.20 send . 512
128 3.20 0.20 ack . 1024 (0.20)
129 3.20 0.00 send P 1024
130 3.40 0.20 ack . 1536 (0.20)
131 3.80 0.40 * send . 0 (3.80) [2]
132 3.82 0.02 * ack . 1536 (0.62) [2]
133 Three seconds into the conversation, bytes 512 through 1023
134 were sent. 200ms later they were acked. Shortly thereafter
135 bytes 1024-1535 were sent and again acked after 200ms.
136 Then, for no apparent reason, 0-511 is retransmitted, 3.8
137 seconds after its initial send (the round trip time for this
138 ftp was 1sec, +-500ms). Since the receiver is expecting
139 1536, 1536 is re-acked when 0 arrives.
140
141packetdat.awk
142 Computes chunk summary data for an ftp (or similar
143 unidirectional tcp transfer). [A "chunk" refers to
144 a chunk of the sequence space -- essentially the packet
145 sequence number divided by the max segment size.]
146
147 A summary line is printed showing the number of chunks,
148 the number of packets it took to send that many chunks
149 (if there are no lost or duplicated packets, the number
150 of packets should equal the number of chunks) and the
151 number of acks.
152
153 Following the summary line is one line of information
154 per chunk. The line contains eight fields:
155 1 - the chunk number
156 2 - the start sequence number for this chunk
157 3 - time of first send
158 4 - time of last send
159 5 - time of first ack
160 6 - time of last ack
161 7 - number of times chunk was sent
162 8 - number of times chunk was acked
163 (all times are in decimal seconds, relative to the start
164 of the conversation.)
165
166 As an example, here is the first part of the output for
167 an ftp trace:
168
169 # 134 chunks. 536 packets sent. 508 acks.
170 1 1 0.00 5.80 0.20 0.20 4 1
171 2 513 0.28 6.20 0.40 0.40 4 1
172 3 1025 1.16 6.32 1.20 1.20 4 1
173 4 1561 1.86 15.00 2.00 2.00 6 1
174 5 2049 2.16 15.44 2.20 2.20 5 1
175 6 2585 2.64 16.44 2.80 2.80 5 1
176 7 3073 3.00 16.66 3.20 3.20 4 1
177 8 3609 3.20 17.24 3.40 5.82 4 11
178 9 4097 6.02 6.58 6.20 6.80 2 5
179
180 This says that 134 chunks were transferred (about 70K
181 since the average packet size was 512 bytes). It took
182 536 packets to transfer the data (i.e., on the average
183 each chunk was transmitted four times). Looking at,
184 say, chunk 4, we see it represents the 512 bytes of
185 sequence space from 1561 to 2048. It was first sent
186 1.86 seconds into the conversation. It was last
187 sent 15 seconds into the conversation and was sent
188 a total of 6 times (i.e., it was retransmitted every
189 2 seconds on the average). It was acked once, 140ms
190 after it first arrived.
191
192stime.awk
193atime.awk
194 Output one line per send or ack, respectively, in the form
195 <time> <seq. number>
196 where <time> is the time in seconds since the start of the
197 transfer and <seq. number> is the sequence number being sent
198 or acked. I typically plot this data looking for suspicious
199 patterns.
200
201
202The problem I was looking at was the bulk-data-transfer
203throughput of medium delay network paths (1-6 sec. round trip
204time) under typical DARPA Internet conditions. The trace of the
205ftp transfer of a large file was used as the raw data source.
206The method was:
207
208 - On a local host (but not the Sun running tcpdump), connect to
209 the remote ftp.
210
211 - On the monitor Sun, start the trace going. E.g.,
212 tcpdump host local-host and remote-host and port ftp-data >tracefile
213
214 - On local, do either a get or put of a large file (~500KB),
215 preferably to the null device (to minimize effects like
216 closing the receive window while waiting for a disk write).
217
218 - When transfer is finished, stop tcpdump. Use awk to make up
219 two files of summary data (maxsize is the maximum packet size,
220 tracedata is the file of tcpdump tracedata):
221 awk -f send-ack.awk packetsize=avgsize tracedata >sa
222 awk -f packetdat.awk packetsize=avgsize tracedata >pd
223
224 - While the summary data files are printing, take a look at
225 how the transfer behaved:
226 awk -f stime.awk tracedata | xgraph
227 (90% of what you learn seems to happen in this step).
228
229 - Do all of the above steps several times, both directions,
230 at different times of day, with different protocol
231 implementations on the other end.
232
233 - Using one of the Unix data analysis packages (in my case,
234 S and Gary Perlman's Unix|Stat), spend a few months staring
235 at the data.
236
237 - Change something in the local protocol implementation and
238 redo the steps above.
239
240 - Once a week, tell your funding agent that you're discovering
241 wonderful things and you'll write up that research report
242 "real soon now".
243```
244
README.md
1# tcpdump
2
3[![Build
4Status](https://travis-ci.org/the-tcpdump-group/tcpdump.png)](https://travis-ci.org/the-tcpdump-group/tcpdump)
5
6TCPDUMP 4.x.y
7Now maintained by "The Tcpdump Group"
8See www.tcpdump.org
9
10Please send inquiries/comments/reports to:
11
12* tcpdump-workers@lists.tcpdump.org
13
14Anonymous Git is available via:
15
16 git clone git://bpf.tcpdump.org/tcpdump
17
18Please submit patches by forking the branch on GitHub at:
19
20* http://github.com/the-tcpdump-group/tcpdump/tree/master
21
22and issuing a pull request.
23
24formerly from Lawrence Berkeley National Laboratory
25 Network Research Group <tcpdump@ee.lbl.gov>
26 ftp://ftp.ee.lbl.gov/old/tcpdump.tar.Z (3.4)
27
28This directory contains source code for tcpdump, a tool for network
29monitoring and data acquisition. This software was originally
30developed by the Network Research Group at the Lawrence Berkeley
31National Laboratory. The original distribution is available via
32anonymous ftp to `ftp.ee.lbl.gov`, in `tcpdump.tar.Z`. More recent
33development is performed at tcpdump.org, http://www.tcpdump.org/
34
35Tcpdump uses libpcap, a system-independent interface for user-level
36packet capture. Before building tcpdump, you must first retrieve and
37build libpcap, also originally from LBL and now being maintained by
38tcpdump.org; see http://www.tcpdump.org/ .
39
40Once libpcap is built (either install it or make sure it's in
41`../libpcap`), you can build tcpdump using the procedure in the `INSTALL.txt`
42file.
43
44The program is loosely based on SMI's "etherfind" although none of the
45etherfind code remains. It was originally written by Van Jacobson as
46part of an ongoing research project to investigate and improve tcp and
47internet gateway performance. The parts of the program originally
48taken from Sun's etherfind were later re-written by Steven McCanne of
49LBL. To insure that there would be no vestige of proprietary code in
50tcpdump, Steve wrote these pieces from the specification given by the
51manual entry, with no access to the source of tcpdump or etherfind.
52
53Over the past few years, tcpdump has been steadily improved by the
54excellent contributions from the Internet community (just browse
55through the `CHANGES` file). We are grateful for all the input.
56
57Richard Stevens gives an excellent treatment of the Internet protocols
58in his book *"TCP/IP Illustrated, Volume 1"*. If you want to learn more
59about tcpdump and how to interpret its output, pick up this book.
60
61Some tools for viewing and analyzing tcpdump trace files are available
62from the Internet Traffic Archive:
63
64* http://www.sigcomm.org/ITA/
65
66Another tool that tcpdump users might find useful is tcpslice:
67
68* https://github.com/the-tcpdump-group/tcpslice
69
70It is a program that can be used to extract portions of tcpdump binary
71trace files. See the above distribution for further details and
72documentation.
73
74Problems, bugs, questions, desirable enhancements, etc. should be sent
75to the address "tcpdump-workers@lists.tcpdump.org". Bugs, support
76requests, and feature requests may also be submitted on the GitHub issue
77tracker for tcpdump at:
78
79* https://github.com/the-tcpdump-group/tcpdump/issues
80
81Source code contributions, etc. should be sent to the email address
82above or submitted by forking the branch on GitHub at:
83
84* http://github.com/the-tcpdump-group/tcpdump/tree/master
85
86and issuing a pull request.
87
88Current versions can be found at www.tcpdump.org.
89
90 - The TCPdump team
91
92original text by: Steve McCanne, Craig Leres, Van Jacobson
93
94-------------------------------------
95```
96This directory also contains some short awk programs intended as
97examples of ways to reduce tcpdump data when you're tracking
98particular network problems:
99
100send-ack.awk
101 Simplifies the tcpdump trace for an ftp (or other unidirectional
102 tcp transfer). Since we assume that one host only sends and
103 the other only acks, all address information is left off and
104 we just note if the packet is a "send" or an "ack".
105
106 There is one output line per line of the original trace.
107 Field 1 is the packet time in decimal seconds, relative
108 to the start of the conversation. Field 2 is delta-time
109 from last packet. Field 3 is packet type/direction.
110 "Send" means data going from sender to receiver, "ack"
111 means an ack going from the receiver to the sender. A
112 preceding "*" indicates that the data is a retransmission.
113 A preceding "-" indicates a hole in the sequence space
114 (i.e., missing packet(s)), a "#" means an odd-size (not max
115 seg size) packet. Field 4 has the packet flags
116 (same format as raw trace). Field 5 is the sequence
117 number (start seq. num for sender, next expected seq number
118 for acks). The number in parens following an ack is
119 the delta-time from the first send of the packet to the
120 ack. A number in parens following a send is the
121 delta-time from the first send of the packet to the
122 current send (on duplicate packets only). Duplicate
123 sends or acks have a number in square brackets showing
124 the number of duplicates so far.
125
126 Here is a short sample from near the start of an ftp:
127 3.00 0.20 send . 512
128 3.20 0.20 ack . 1024 (0.20)
129 3.20 0.00 send P 1024
130 3.40 0.20 ack . 1536 (0.20)
131 3.80 0.40 * send . 0 (3.80) [2]
132 3.82 0.02 * ack . 1536 (0.62) [2]
133 Three seconds into the conversation, bytes 512 through 1023
134 were sent. 200ms later they were acked. Shortly thereafter
135 bytes 1024-1535 were sent and again acked after 200ms.
136 Then, for no apparent reason, 0-511 is retransmitted, 3.8
137 seconds after its initial send (the round trip time for this
138 ftp was 1sec, +-500ms). Since the receiver is expecting
139 1536, 1536 is re-acked when 0 arrives.
140
141packetdat.awk
142 Computes chunk summary data for an ftp (or similar
143 unidirectional tcp transfer). [A "chunk" refers to
144 a chunk of the sequence space -- essentially the packet
145 sequence number divided by the max segment size.]
146
147 A summary line is printed showing the number of chunks,
148 the number of packets it took to send that many chunks
149 (if there are no lost or duplicated packets, the number
150 of packets should equal the number of chunks) and the
151 number of acks.
152
153 Following the summary line is one line of information
154 per chunk. The line contains eight fields:
155 1 - the chunk number
156 2 - the start sequence number for this chunk
157 3 - time of first send
158 4 - time of last send
159 5 - time of first ack
160 6 - time of last ack
161 7 - number of times chunk was sent
162 8 - number of times chunk was acked
163 (all times are in decimal seconds, relative to the start
164 of the conversation.)
165
166 As an example, here is the first part of the output for
167 an ftp trace:
168
169 # 134 chunks. 536 packets sent. 508 acks.
170 1 1 0.00 5.80 0.20 0.20 4 1
171 2 513 0.28 6.20 0.40 0.40 4 1
172 3 1025 1.16 6.32 1.20 1.20 4 1
173 4 1561 1.86 15.00 2.00 2.00 6 1
174 5 2049 2.16 15.44 2.20 2.20 5 1
175 6 2585 2.64 16.44 2.80 2.80 5 1
176 7 3073 3.00 16.66 3.20 3.20 4 1
177 8 3609 3.20 17.24 3.40 5.82 4 11
178 9 4097 6.02 6.58 6.20 6.80 2 5
179
180 This says that 134 chunks were transferred (about 70K
181 since the average packet size was 512 bytes). It took
182 536 packets to transfer the data (i.e., on the average
183 each chunk was transmitted four times). Looking at,
184 say, chunk 4, we see it represents the 512 bytes of
185 sequence space from 1561 to 2048. It was first sent
186 1.86 seconds into the conversation. It was last
187 sent 15 seconds into the conversation and was sent
188 a total of 6 times (i.e., it was retransmitted every
189 2 seconds on the average). It was acked once, 140ms
190 after it first arrived.
191
192stime.awk
193atime.awk
194 Output one line per send or ack, respectively, in the form
195 <time> <seq. number>
196 where <time> is the time in seconds since the start of the
197 transfer and <seq. number> is the sequence number being sent
198 or acked. I typically plot this data looking for suspicious
199 patterns.
200
201
202The problem I was looking at was the bulk-data-transfer
203throughput of medium delay network paths (1-6 sec. round trip
204time) under typical DARPA Internet conditions. The trace of the
205ftp transfer of a large file was used as the raw data source.
206The method was:
207
208 - On a local host (but not the Sun running tcpdump), connect to
209 the remote ftp.
210
211 - On the monitor Sun, start the trace going. E.g.,
212 tcpdump host local-host and remote-host and port ftp-data >tracefile
213
214 - On local, do either a get or put of a large file (~500KB),
215 preferably to the null device (to minimize effects like
216 closing the receive window while waiting for a disk write).
217
218 - When transfer is finished, stop tcpdump. Use awk to make up
219 two files of summary data (maxsize is the maximum packet size,
220 tracedata is the file of tcpdump tracedata):
221 awk -f send-ack.awk packetsize=avgsize tracedata >sa
222 awk -f packetdat.awk packetsize=avgsize tracedata >pd
223
224 - While the summary data files are printing, take a look at
225 how the transfer behaved:
226 awk -f stime.awk tracedata | xgraph
227 (90% of what you learn seems to happen in this step).
228
229 - Do all of the above steps several times, both directions,
230 at different times of day, with different protocol
231 implementations on the other end.
232
233 - Using one of the Unix data analysis packages (in my case,
234 S and Gary Perlman's Unix|Stat), spend a few months staring
235 at the data.
236
237 - Change something in the local protocol implementation and
238 redo the steps above.
239
240 - Once a week, tell your funding agent that you're discovering
241 wonderful things and you'll write up that research report
242 "real soon now".
243```
244
README.version
Readme.Win32
1To build tcpdump under Windows, you need:
2
3- version 6 (or higher) of Microsoft Visual Studio or the Cygnus gnu
4C compiler.
5- The November 2001 (or later) edition of Microsoft Platform
6Software Development Kit (SDK), that contains some necessary includes
7for IPv6 support. You can download it from http://www.microsoft.com/sdk
8- the WinPcap source code, that includes libpcap for win32. Download it
9from http://winpcap.polito.it or download libpcap sources from
10http://www.tcpdump.org and follow the instructions in the README.Win32
11file.
12
13First, extract tcpdump and WinPcap in the same folder, and build WinPcap.
14
15The Visual Studio project and the cygwin makefile are in the Win32\prj
16folder.
17
18From Visual Studio, open windump.dsw and build the program. The release
19version of the WinDump.exe executable file will be created in the
20windump\win32\prj\release directory . The debug version will be generated
21in windump\win32\prj\debug.
22
23From cygnus, go to windump\win32\prj\ and type "make". WinDump.exe will be
24created in the same directory.