Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug #398 Rewrite of tcpdump.c #457

Merged
merged 5 commits into from
Jan 25, 2018
Merged

Bug #398 Rewrite of tcpdump.c #457

merged 5 commits into from
Jan 25, 2018

Conversation

fklassen
Copy link
Member

Reworked how tcpdump picks up STDIN/STDOUT pipes. Converted from
old-style socket pairs to modern pipe structures.

Found that on 64-bit machines, struct pcap_pkthdr is not the same
size as the similar array in the actual PCAP file. Added a new
structure to compensate.

Reworked poll, write and read to make them more robust.

Works on Linux. Still haveing some issues on macOS.

Reworked how `tcpdump` picks up STDIN/STDOUT pipes. Converted from
old-style socket pairs to modern `pipe` structures.

Found that on 64-bit machines, `struct pcap_pkthdr` is not the same
size as the similar array in the actual PCAP file. Added a new
structure to compensate.

Reworked `poll`, `write` and `read` to make them more robust.

Works on Linux. Still haveing some issues on macOS.
@fklassen fklassen merged commit e8fe925 into 4.3 Jan 25, 2018
@fklassen fklassen deleted the Bug_#398_tcpdump_verbose_fails branch January 25, 2018 05:52
fklassen added a commit that referenced this pull request Oct 19, 2018
* Enhancement_#493_codacy_fixes: (26 commits)
  Enhancement #493 - fixes for Codacy identified issues
  Bug #486 Enforce max snaplen rather than doing realloc
  Bug #486 CVE-2018-17974 realloc memory if packet size increases
  Bug #484 CVE-2018-17582 Check for corrupt PCAP files
  4.3 - revert travis updates from merge
  Remove dead code
  resolve possible null pointer dereference
  travis-ci: add autogen package
  Bug #461 build warnings (#462)
  #412 fix gcc 6.3 compiler warning
  #421 fix ms to ns conversion
  Bug #423 remove commented code
  Bug #423 Remove limit for tcpprep -S
  Bug #398 Rewrite of tcpdump.c (#457)
  Bug #402 memset dlt radiotap get 80211 (#454)
  #404 fix check_list return values (#453)
  #406 fix zero-length IP headers
  #416 apply STDIN restore to all programs
  #416 fix compile issue introduced by downstream PR
  #416 update CHANGELOG [ci skip]
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant