|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| lbl/ | | 03-May-2024 | - | 302 | 205 |
| missing/ | | 03-May-2024 | - | 1,753 | 1,151 |
| tests/ | | 03-May-2024 | - | 371,994 | 371,120 |
| 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.bp | D | 03-May-2024 | 4.9 KiB | 216 | 210 |
| CHANGES | D | 03-May-2024 | 56.8 KiB | 1,447 | 1,197 |
| CONTRIBUTING | D | 03-May-2024 | 5.9 KiB | 152 | 113 |
| CREDITS | D | 03-May-2024 | 14.6 KiB | 239 | 233 |
| CleanSpec.mk | D | 03-May-2024 | 2.2 KiB | 50 | 0 |
| INSTALL.txt | D | 03-May-2024 | 5.2 KiB | 124 | 115 |
| LICENSE | D | 03-May-2024 | 873 | 20 | 16 |
| METADATA | D | 03-May-2024 | 39 | 4 | 3 |
| MODULE_LICENSE_BSD | D | 03-May-2024 | 0 | | |
| Makefile-devel-adds | D | 03-May-2024 | 614 | 23 | 18 |
| Makefile.in | D | 03-May-2024 | 10 KiB | 464 | 386 |
| OWNERS | D | 03-May-2024 | 46 | 2 | 1 |
| PLATFORMS | D | 03-May-2024 | 567 | 17 | 14 |
| README | D | 03-May-2024 | 9 KiB | 226 | 182 |
| README.md | D | 03-May-2024 | 9 KiB | 226 | 182 |
| 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.8 KiB | 1,286 | 1,034 |
| addrtoname.h | D | 03-May-2024 | 2.8 KiB | 63 | 30 |
| addrtostr.c | D | 03-May-2024 | 5.6 KiB | 214 | 132 |
| 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.5 KiB | 398 | 271 |
| config.sub | D | 03-May-2024 | 35.2 KiB | 1,808 | 1,670 |
| configure | D | 03-May-2024 | 257.9 KiB | 9,666 | 7,585 |
| configure.in | D | 03-May-2024 | 25.7 KiB | 1,018 | 945 |
| 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 | 11.5 KiB | 287 | 137 |
| funcattrs.h | D | 03-May-2024 | 4.4 KiB | 123 | 35 |
| 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 | 202 | 94 |
| ipproto.c | D | 03-May-2024 | 16.5 KiB | 363 | 300 |
| ipproto.h | D | 03-May-2024 | 4.7 KiB | 147 | 98 |
| l2vpn.c | D | 03-May-2024 | 3.4 KiB | 96 | 63 |
| l2vpn.h | D | 03-May-2024 | 781 | 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.9 KiB | 410 | 223 |
| netdissect.c | D | 03-May-2024 | 3.4 KiB | 147 | 77 |
| netdissect.h | D | 03-May-2024 | 30 KiB | 658 | 433 |
| 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.2 KiB | 3,366 | 2,369 |
| print-802_15_4.c | D | 03-May-2024 | 5.5 KiB | 224 | 160 |
| 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 | 16 KiB | 540 | 437 |
| 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 | 14.6 KiB | 481 | 356 |
| 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.7 KiB | 69 | 37 |
| print-bfd.c | D | 03-May-2024 | 16.2 KiB | 407 | 249 |
| print-bgp.c | D | 03-May-2024 | 98.5 KiB | 2,862 | 2,329 |
| print-bootp.c | D | 03-May-2024 | 30 KiB | 1,095 | 864 |
| 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 | 24.2 KiB | 765 | 555 |
| print-chdlc.c | D | 03-May-2024 | 5.9 KiB | 211 | 145 |
| print-cip.c | D | 03-May-2024 | 2.5 KiB | 109 | 50 |
| print-cnfp.c | D | 03-May-2024 | 13.7 KiB | 475 | 340 |
| print-dccp.c | D | 03-May-2024 | 16.4 KiB | 660 | 535 |
| print-decnet.c | D | 03-May-2024 | 38.3 KiB | 1,274 | 1,105 |
| print-dhcp6.c | D | 03-May-2024 | 23.2 KiB | 833 | 712 |
| print-domain.c | D | 03-May-2024 | 18.3 KiB | 750 | 636 |
| 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 | 9.3 KiB | 305 | 224 |
| print-egp.c | D | 03-May-2024 | 8.7 KiB | 377 | 319 |
| print-eigrp.c | D | 03-May-2024 | 19.3 KiB | 523 | 421 |
| print-enc.c | D | 03-May-2024 | 4.2 KiB | 139 | 56 |
| print-esp.c | D | 03-May-2024 | 20.3 KiB | 836 | 545 |
| 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 | 71 | 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.2 KiB | 864 | 715 |
| 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.6 KiB | 703 | 527 |
| print-icmp6.c | D | 03-May-2024 | 59.6 KiB | 1,957 | 1,627 |
| 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.9 KiB | 736 | 532 |
| print-ip6.c | D | 03-May-2024 | 10.6 KiB | 424 | 282 |
| 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 | 81.7 KiB | 3,146 | 2,487 |
| print-isoclns.c | D | 03-May-2024 | 107.6 KiB | 3,185 | 2,610 |
| print-juniper.c | D | 03-May-2024 | 48.3 KiB | 1,509 | 1,250 |
| print-krb.c | D | 03-May-2024 | 6.3 KiB | 259 | 195 |
| print-l2tp.c | D | 03-May-2024 | 25 KiB | 881 | 743 |
| 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.3 KiB | 1,662 | 1,360 |
| print-lmp.c | D | 03-May-2024 | 37.6 KiB | 1,140 | 926 |
| print-loopback.c | D | 03-May-2024 | 3.6 KiB | 137 | 83 |
| print-lspping.c | D | 03-May-2024 | 51.6 KiB | 1,086 | 689 |
| 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.7 KiB | 345 | 260 |
| 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.7 KiB | 447 | 333 |
| 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.8 KiB | 1,716 | 1,407 |
| 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.4 KiB | 720 | 497 |
| 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.8 KiB | 1,015 | 802 |
| 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 | 22.2 KiB | 839 | 707 |
| print-pim.c | D | 03-May-2024 | 32.6 KiB | 1,196 | 922 |
| print-pktap.c | D | 03-May-2024 | 5.2 KiB | 174 | 97 |
| print-ppi.c | D | 03-May-2024 | 2.6 KiB | 130 | 87 |
| print-ppp.c | D | 03-May-2024 | 46.2 KiB | 1,877 | 1,491 |
| 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.1 KiB | 994 | 770 |
| print-raw.c | D | 03-May-2024 | 1.5 KiB | 46 | 13 |
| print-resp.c | D | 03-May-2024 | 16.5 KiB | 543 | 308 |
| print-rip.c | D | 03-May-2024 | 9.2 KiB | 274 | 188 |
| print-ripng.c | D | 03-May-2024 | 6 KiB | 184 | 119 |
| print-rpki-rtr.c | D | 03-May-2024 | 10.8 KiB | 409 | 251 |
| print-rrcp.c | D | 03-May-2024 | 4.6 KiB | 130 | 88 |
| print-rsvp.c | D | 03-May-2024 | 78.5 KiB | 1,991 | 1,666 |
| print-rt6.c | D | 03-May-2024 | 2.7 KiB | 94 | 54 |
| print-rtsp.c | D | 03-May-2024 | 1.2 KiB | 48 | 27 |
| print-rx.c | D | 03-May-2024 | 66.9 KiB | 2,894 | 2,140 |
| 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.6 KiB | 277 | 191 |
| 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.2 KiB | 511 | 344 |
| 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 | 558 | 413 |
| print-tftp.c | D | 03-May-2024 | 5.2 KiB | 204 | 136 |
| 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.8 KiB | 212 | 146 |
| print-vrrp.c | D | 03-May-2024 | 6.3 KiB | 184 | 95 |
| print-vtp.c | D | 03-May-2024 | 13.6 KiB | 404 | 232 |
| 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.9 KiB | 459 | 338 |
| print-zephyr.c | D | 03-May-2024 | 8 KiB | 337 | 258 |
| print-zeromq.c | D | 03-May-2024 | 7.5 KiB | 221 | 112 |
| print.c | D | 03-May-2024 | 11.5 KiB | 478 | 345 |
| 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,894 | 1,725 |
| 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.8 KiB | 1,967 | 1,937 |
| tcpdump.c | D | 03-May-2024 | 68.3 KiB | 2,645 | 1,840 |
| 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 | 23.2 KiB | 952 | 604 |
| 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
6To report a security issue please send an e-mail to security@tcpdump.org.
7
8To report bugs and other problems, contribute patches, request a
9feature, provide generic feedback etc please see the file
10CONTRIBUTING in the tcpdump source tree root.
11
12TCPDUMP 4.x.y
13Now maintained by "The Tcpdump Group"
14See www.tcpdump.org
15
16Anonymous Git is available via:
17
18 git clone git://bpf.tcpdump.org/tcpdump
19
20formerly from Lawrence Berkeley National Laboratory
21 Network Research Group <tcpdump@ee.lbl.gov>
22 ftp://ftp.ee.lbl.gov/old/tcpdump.tar.Z (3.4)
23
24This directory contains source code for tcpdump, a tool for network
25monitoring and data acquisition. This software was originally
26developed by the Network Research Group at the Lawrence Berkeley
27National Laboratory. The original distribution is available via
28anonymous ftp to `ftp.ee.lbl.gov`, in `tcpdump.tar.Z`. More recent
29development is performed at tcpdump.org, http://www.tcpdump.org/
30
31Tcpdump uses libpcap, a system-independent interface for user-level
32packet capture. Before building tcpdump, you must first retrieve and
33build libpcap, also originally from LBL and now being maintained by
34tcpdump.org; see http://www.tcpdump.org/ .
35
36Once libpcap is built (either install it or make sure it's in
37`../libpcap`), you can build tcpdump using the procedure in the `INSTALL.txt`
38file.
39
40The program is loosely based on SMI's "etherfind" although none of the
41etherfind code remains. It was originally written by Van Jacobson as
42part of an ongoing research project to investigate and improve tcp and
43internet gateway performance. The parts of the program originally
44taken from Sun's etherfind were later re-written by Steven McCanne of
45LBL. To insure that there would be no vestige of proprietary code in
46tcpdump, Steve wrote these pieces from the specification given by the
47manual entry, with no access to the source of tcpdump or etherfind.
48
49Over the past few years, tcpdump has been steadily improved by the
50excellent contributions from the Internet community (just browse
51through the `CHANGES` file). We are grateful for all the input.
52
53Richard Stevens gives an excellent treatment of the Internet protocols
54in his book *"TCP/IP Illustrated, Volume 1"*. If you want to learn more
55about tcpdump and how to interpret its output, pick up this book.
56
57Some tools for viewing and analyzing tcpdump trace files are available
58from the Internet Traffic Archive:
59
60* http://www.sigcomm.org/ITA/
61
62Another tool that tcpdump users might find useful is tcpslice:
63
64* https://github.com/the-tcpdump-group/tcpslice
65
66It is a program that can be used to extract portions of tcpdump binary
67trace files. See the above distribution for further details and
68documentation.
69
70Current versions can be found at www.tcpdump.org.
71
72 - The TCPdump team
73
74original text by: Steve McCanne, Craig Leres, Van Jacobson
75
76-------------------------------------
77```
78This directory also contains some short awk programs intended as
79examples of ways to reduce tcpdump data when you're tracking
80particular network problems:
81
82send-ack.awk
83 Simplifies the tcpdump trace for an ftp (or other unidirectional
84 tcp transfer). Since we assume that one host only sends and
85 the other only acks, all address information is left off and
86 we just note if the packet is a "send" or an "ack".
87
88 There is one output line per line of the original trace.
89 Field 1 is the packet time in decimal seconds, relative
90 to the start of the conversation. Field 2 is delta-time
91 from last packet. Field 3 is packet type/direction.
92 "Send" means data going from sender to receiver, "ack"
93 means an ack going from the receiver to the sender. A
94 preceding "*" indicates that the data is a retransmission.
95 A preceding "-" indicates a hole in the sequence space
96 (i.e., missing packet(s)), a "#" means an odd-size (not max
97 seg size) packet. Field 4 has the packet flags
98 (same format as raw trace). Field 5 is the sequence
99 number (start seq. num for sender, next expected seq number
100 for acks). The number in parens following an ack is
101 the delta-time from the first send of the packet to the
102 ack. A number in parens following a send is the
103 delta-time from the first send of the packet to the
104 current send (on duplicate packets only). Duplicate
105 sends or acks have a number in square brackets showing
106 the number of duplicates so far.
107
108 Here is a short sample from near the start of an ftp:
109 3.00 0.20 send . 512
110 3.20 0.20 ack . 1024 (0.20)
111 3.20 0.00 send P 1024
112 3.40 0.20 ack . 1536 (0.20)
113 3.80 0.40 * send . 0 (3.80) [2]
114 3.82 0.02 * ack . 1536 (0.62) [2]
115 Three seconds into the conversation, bytes 512 through 1023
116 were sent. 200ms later they were acked. Shortly thereafter
117 bytes 1024-1535 were sent and again acked after 200ms.
118 Then, for no apparent reason, 0-511 is retransmitted, 3.8
119 seconds after its initial send (the round trip time for this
120 ftp was 1sec, +-500ms). Since the receiver is expecting
121 1536, 1536 is re-acked when 0 arrives.
122
123packetdat.awk
124 Computes chunk summary data for an ftp (or similar
125 unidirectional tcp transfer). [A "chunk" refers to
126 a chunk of the sequence space -- essentially the packet
127 sequence number divided by the max segment size.]
128
129 A summary line is printed showing the number of chunks,
130 the number of packets it took to send that many chunks
131 (if there are no lost or duplicated packets, the number
132 of packets should equal the number of chunks) and the
133 number of acks.
134
135 Following the summary line is one line of information
136 per chunk. The line contains eight fields:
137 1 - the chunk number
138 2 - the start sequence number for this chunk
139 3 - time of first send
140 4 - time of last send
141 5 - time of first ack
142 6 - time of last ack
143 7 - number of times chunk was sent
144 8 - number of times chunk was acked
145 (all times are in decimal seconds, relative to the start
146 of the conversation.)
147
148 As an example, here is the first part of the output for
149 an ftp trace:
150
151 # 134 chunks. 536 packets sent. 508 acks.
152 1 1 0.00 5.80 0.20 0.20 4 1
153 2 513 0.28 6.20 0.40 0.40 4 1
154 3 1025 1.16 6.32 1.20 1.20 4 1
155 4 1561 1.86 15.00 2.00 2.00 6 1
156 5 2049 2.16 15.44 2.20 2.20 5 1
157 6 2585 2.64 16.44 2.80 2.80 5 1
158 7 3073 3.00 16.66 3.20 3.20 4 1
159 8 3609 3.20 17.24 3.40 5.82 4 11
160 9 4097 6.02 6.58 6.20 6.80 2 5
161
162 This says that 134 chunks were transferred (about 70K
163 since the average packet size was 512 bytes). It took
164 536 packets to transfer the data (i.e., on the average
165 each chunk was transmitted four times). Looking at,
166 say, chunk 4, we see it represents the 512 bytes of
167 sequence space from 1561 to 2048. It was first sent
168 1.86 seconds into the conversation. It was last
169 sent 15 seconds into the conversation and was sent
170 a total of 6 times (i.e., it was retransmitted every
171 2 seconds on the average). It was acked once, 140ms
172 after it first arrived.
173
174stime.awk
175atime.awk
176 Output one line per send or ack, respectively, in the form
177 <time> <seq. number>
178 where <time> is the time in seconds since the start of the
179 transfer and <seq. number> is the sequence number being sent
180 or acked. I typically plot this data looking for suspicious
181 patterns.
182
183
184The problem I was looking at was the bulk-data-transfer
185throughput of medium delay network paths (1-6 sec. round trip
186time) under typical DARPA Internet conditions. The trace of the
187ftp transfer of a large file was used as the raw data source.
188The method was:
189
190 - On a local host (but not the Sun running tcpdump), connect to
191 the remote ftp.
192
193 - On the monitor Sun, start the trace going. E.g.,
194 tcpdump host local-host and remote-host and port ftp-data >tracefile
195
196 - On local, do either a get or put of a large file (~500KB),
197 preferably to the null device (to minimize effects like
198 closing the receive window while waiting for a disk write).
199
200 - When transfer is finished, stop tcpdump. Use awk to make up
201 two files of summary data (maxsize is the maximum packet size,
202 tracedata is the file of tcpdump tracedata):
203 awk -f send-ack.awk packetsize=avgsize tracedata >sa
204 awk -f packetdat.awk packetsize=avgsize tracedata >pd
205
206 - While the summary data files are printing, take a look at
207 how the transfer behaved:
208 awk -f stime.awk tracedata | xgraph
209 (90% of what you learn seems to happen in this step).
210
211 - Do all of the above steps several times, both directions,
212 at different times of day, with different protocol
213 implementations on the other end.
214
215 - Using one of the Unix data analysis packages (in my case,
216 S and Gary Perlman's Unix|Stat), spend a few months staring
217 at the data.
218
219 - Change something in the local protocol implementation and
220 redo the steps above.
221
222 - Once a week, tell your funding agent that you're discovering
223 wonderful things and you'll write up that research report
224 "real soon now".
225```
226
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
6To report a security issue please send an e-mail to security@tcpdump.org.
7
8To report bugs and other problems, contribute patches, request a
9feature, provide generic feedback etc please see the file
10CONTRIBUTING in the tcpdump source tree root.
11
12TCPDUMP 4.x.y
13Now maintained by "The Tcpdump Group"
14See www.tcpdump.org
15
16Anonymous Git is available via:
17
18 git clone git://bpf.tcpdump.org/tcpdump
19
20formerly from Lawrence Berkeley National Laboratory
21 Network Research Group <tcpdump@ee.lbl.gov>
22 ftp://ftp.ee.lbl.gov/old/tcpdump.tar.Z (3.4)
23
24This directory contains source code for tcpdump, a tool for network
25monitoring and data acquisition. This software was originally
26developed by the Network Research Group at the Lawrence Berkeley
27National Laboratory. The original distribution is available via
28anonymous ftp to `ftp.ee.lbl.gov`, in `tcpdump.tar.Z`. More recent
29development is performed at tcpdump.org, http://www.tcpdump.org/
30
31Tcpdump uses libpcap, a system-independent interface for user-level
32packet capture. Before building tcpdump, you must first retrieve and
33build libpcap, also originally from LBL and now being maintained by
34tcpdump.org; see http://www.tcpdump.org/ .
35
36Once libpcap is built (either install it or make sure it's in
37`../libpcap`), you can build tcpdump using the procedure in the `INSTALL.txt`
38file.
39
40The program is loosely based on SMI's "etherfind" although none of the
41etherfind code remains. It was originally written by Van Jacobson as
42part of an ongoing research project to investigate and improve tcp and
43internet gateway performance. The parts of the program originally
44taken from Sun's etherfind were later re-written by Steven McCanne of
45LBL. To insure that there would be no vestige of proprietary code in
46tcpdump, Steve wrote these pieces from the specification given by the
47manual entry, with no access to the source of tcpdump or etherfind.
48
49Over the past few years, tcpdump has been steadily improved by the
50excellent contributions from the Internet community (just browse
51through the `CHANGES` file). We are grateful for all the input.
52
53Richard Stevens gives an excellent treatment of the Internet protocols
54in his book *"TCP/IP Illustrated, Volume 1"*. If you want to learn more
55about tcpdump and how to interpret its output, pick up this book.
56
57Some tools for viewing and analyzing tcpdump trace files are available
58from the Internet Traffic Archive:
59
60* http://www.sigcomm.org/ITA/
61
62Another tool that tcpdump users might find useful is tcpslice:
63
64* https://github.com/the-tcpdump-group/tcpslice
65
66It is a program that can be used to extract portions of tcpdump binary
67trace files. See the above distribution for further details and
68documentation.
69
70Current versions can be found at www.tcpdump.org.
71
72 - The TCPdump team
73
74original text by: Steve McCanne, Craig Leres, Van Jacobson
75
76-------------------------------------
77```
78This directory also contains some short awk programs intended as
79examples of ways to reduce tcpdump data when you're tracking
80particular network problems:
81
82send-ack.awk
83 Simplifies the tcpdump trace for an ftp (or other unidirectional
84 tcp transfer). Since we assume that one host only sends and
85 the other only acks, all address information is left off and
86 we just note if the packet is a "send" or an "ack".
87
88 There is one output line per line of the original trace.
89 Field 1 is the packet time in decimal seconds, relative
90 to the start of the conversation. Field 2 is delta-time
91 from last packet. Field 3 is packet type/direction.
92 "Send" means data going from sender to receiver, "ack"
93 means an ack going from the receiver to the sender. A
94 preceding "*" indicates that the data is a retransmission.
95 A preceding "-" indicates a hole in the sequence space
96 (i.e., missing packet(s)), a "#" means an odd-size (not max
97 seg size) packet. Field 4 has the packet flags
98 (same format as raw trace). Field 5 is the sequence
99 number (start seq. num for sender, next expected seq number
100 for acks). The number in parens following an ack is
101 the delta-time from the first send of the packet to the
102 ack. A number in parens following a send is the
103 delta-time from the first send of the packet to the
104 current send (on duplicate packets only). Duplicate
105 sends or acks have a number in square brackets showing
106 the number of duplicates so far.
107
108 Here is a short sample from near the start of an ftp:
109 3.00 0.20 send . 512
110 3.20 0.20 ack . 1024 (0.20)
111 3.20 0.00 send P 1024
112 3.40 0.20 ack . 1536 (0.20)
113 3.80 0.40 * send . 0 (3.80) [2]
114 3.82 0.02 * ack . 1536 (0.62) [2]
115 Three seconds into the conversation, bytes 512 through 1023
116 were sent. 200ms later they were acked. Shortly thereafter
117 bytes 1024-1535 were sent and again acked after 200ms.
118 Then, for no apparent reason, 0-511 is retransmitted, 3.8
119 seconds after its initial send (the round trip time for this
120 ftp was 1sec, +-500ms). Since the receiver is expecting
121 1536, 1536 is re-acked when 0 arrives.
122
123packetdat.awk
124 Computes chunk summary data for an ftp (or similar
125 unidirectional tcp transfer). [A "chunk" refers to
126 a chunk of the sequence space -- essentially the packet
127 sequence number divided by the max segment size.]
128
129 A summary line is printed showing the number of chunks,
130 the number of packets it took to send that many chunks
131 (if there are no lost or duplicated packets, the number
132 of packets should equal the number of chunks) and the
133 number of acks.
134
135 Following the summary line is one line of information
136 per chunk. The line contains eight fields:
137 1 - the chunk number
138 2 - the start sequence number for this chunk
139 3 - time of first send
140 4 - time of last send
141 5 - time of first ack
142 6 - time of last ack
143 7 - number of times chunk was sent
144 8 - number of times chunk was acked
145 (all times are in decimal seconds, relative to the start
146 of the conversation.)
147
148 As an example, here is the first part of the output for
149 an ftp trace:
150
151 # 134 chunks. 536 packets sent. 508 acks.
152 1 1 0.00 5.80 0.20 0.20 4 1
153 2 513 0.28 6.20 0.40 0.40 4 1
154 3 1025 1.16 6.32 1.20 1.20 4 1
155 4 1561 1.86 15.00 2.00 2.00 6 1
156 5 2049 2.16 15.44 2.20 2.20 5 1
157 6 2585 2.64 16.44 2.80 2.80 5 1
158 7 3073 3.00 16.66 3.20 3.20 4 1
159 8 3609 3.20 17.24 3.40 5.82 4 11
160 9 4097 6.02 6.58 6.20 6.80 2 5
161
162 This says that 134 chunks were transferred (about 70K
163 since the average packet size was 512 bytes). It took
164 536 packets to transfer the data (i.e., on the average
165 each chunk was transmitted four times). Looking at,
166 say, chunk 4, we see it represents the 512 bytes of
167 sequence space from 1561 to 2048. It was first sent
168 1.86 seconds into the conversation. It was last
169 sent 15 seconds into the conversation and was sent
170 a total of 6 times (i.e., it was retransmitted every
171 2 seconds on the average). It was acked once, 140ms
172 after it first arrived.
173
174stime.awk
175atime.awk
176 Output one line per send or ack, respectively, in the form
177 <time> <seq. number>
178 where <time> is the time in seconds since the start of the
179 transfer and <seq. number> is the sequence number being sent
180 or acked. I typically plot this data looking for suspicious
181 patterns.
182
183
184The problem I was looking at was the bulk-data-transfer
185throughput of medium delay network paths (1-6 sec. round trip
186time) under typical DARPA Internet conditions. The trace of the
187ftp transfer of a large file was used as the raw data source.
188The method was:
189
190 - On a local host (but not the Sun running tcpdump), connect to
191 the remote ftp.
192
193 - On the monitor Sun, start the trace going. E.g.,
194 tcpdump host local-host and remote-host and port ftp-data >tracefile
195
196 - On local, do either a get or put of a large file (~500KB),
197 preferably to the null device (to minimize effects like
198 closing the receive window while waiting for a disk write).
199
200 - When transfer is finished, stop tcpdump. Use awk to make up
201 two files of summary data (maxsize is the maximum packet size,
202 tracedata is the file of tcpdump tracedata):
203 awk -f send-ack.awk packetsize=avgsize tracedata >sa
204 awk -f packetdat.awk packetsize=avgsize tracedata >pd
205
206 - While the summary data files are printing, take a look at
207 how the transfer behaved:
208 awk -f stime.awk tracedata | xgraph
209 (90% of what you learn seems to happen in this step).
210
211 - Do all of the above steps several times, both directions,
212 at different times of day, with different protocol
213 implementations on the other end.
214
215 - Using one of the Unix data analysis packages (in my case,
216 S and Gary Perlman's Unix|Stat), spend a few months staring
217 at the data.
218
219 - Change something in the local protocol implementation and
220 redo the steps above.
221
222 - Once a week, tell your funding agent that you're discovering
223 wonderful things and you'll write up that research report
224 "real soon now".
225```
226
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.