Comments (1)
Submitted by guy_harris
Logged In: YES
user_id=541179
"fn_printn()" takes as its third argument a "const char *",
not an "int", so "snaplen" would be the wrong argument to
pass to it. (As you're using Linux, your compiler is
probably GCC, in which case you should create a ".devel"
file in your tcpdump source directory, and re-run the
configure script; that'll cause some additional warning
flags to be used, which should cause the compiler to print a
warning about incorrect calls such as that.)
However, there's a TCHECK2() call before the fn_printn()
call, so if not all the name was captured in the request,
the TCHECK2() call should fail (jumping to "trunc:") before
fn_printn() even gets called.
It might have tripped over the fact that TTEST2() (and
macros that eventually call it, such as TCHECK2() doesn't,
in 3.7.1, handle the case where the length is so large
that "snapend - l" underflows, but that shouldn't happen
with correctly-formed NFS requests.
Nevertheless, I'd suggest trying the current CVS version
(snapshots of which can be downloaded from the tcpdump.org
site), as that particular bug is fixed in the current CVS
version, so that'd at least determine whether that was the
problem or not. (If the offending NFS request was sent to
the machine on which you're running tcpdump, the copy given
to tcpdump might well be malformed - the Linux NFS code
has been known to mangle some NFS file names "in place", for
convenience when dissecting the NFS request or reply, in
such a way that programs capturing with a capture socket,
such as tcpdump or other libpcap-based programs, see the
mangled packet, not the packet as it arrived at the
machine. Sigh....)
from tcpdump.
Related Issues (20)
- Using Linux cooked header version 2 always outputs link level data HOT 17
- print-ascii.c and '-DMAIN' HOT 3
- When I tried to cross compile tcpdump for riscv64, the tcpdump configure script didn't find libpcap HOT 4
- The -B option of tcpdump on my machine doesn't seem to have any effect HOT 9
- CMake 3.27 emits a deprecation warning HOT 7
- Potential memory leak in tcpdump.c HOT 2
- tcpdump with -i any shown invalid ip and bogus ipv4 in wireshark HOT 21
- How can grep the result in tcpdump with --version or -L(data-link-types) HOT 1
- tcpdump -r pcap file error HOT 4
- segmentation fault when using "-Z root" and "-w" HOT 2
- Missing support for L2TPv3 HOT 3
- tcpdump exits before completing the merge HOT 6
- tcpdump -n becomes very slow after some time if large number of IP addresses is present
- tcpdump apparmor denied open operation to /etc/pam_ldap.conf Ubuntu 22.04.3 LTS HOT 2
- [Bug] Infinite Loop Vulnerability in tcpdump leading to Potential DDoS Conditions HOT 9
- Issues building to Win x64 and errors in README.Win32.md HOT 20
- Update Sun RPC code to BSD-3-Clause copy
- Using an Android phone to grab the app, tcpdump has not shown any response. TCpdump is the latest version, with Android 8.1 system and Nexus5x phone HOT 4
- -G drops packets if not enough traffic is recorded HOT 7
- OpenBSD 7.5 build fails because EVP_add_cipher_alias() no longer exists in OpenBSD libcrypto HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tcpdump.