| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
|
|
| |
aligned IP/IPv6 packet so that tcpdump can print hexdump of the whole
packet including the Ethernet header (if requested) and not only the
IP/IPv6 part of it.
ok jsg
|
| |
|
|
|
|
|
| |
routines should check that there's at least a complete IP/IPv6 header
available in the buffer before trying to do anything else.
ok jsg
|
| | |
|
| |
|
|
| |
slightly tweaked version of an earlier diff ok'd by djm@ and miod@
|
| |
|
|
|
|
| |
fixes a crash found by the afl fuzzer
ok djm@ miod@
|
| |
|
|
|
|
|
|
|
|
|
| |
ip_print() and others.
Allows code deciding on a minimum length to memmove()
to work as intended, preventing various crashes found
with the afl fuzzer. Callers of ip6_print() should of
course be fixed to provide sane lengths as well.
ok deraadt@ djm@
|
| | |
|
| | |
|
| |
|
|
|
|
| |
The frame subtype field is in the first byte of frame control but tcpdump(8)
was looking at the second byte to determine if this is a data frame.
Patch by Nathanael Rensen, thanks!
|
| |
|
|
|
|
| |
equal to the source ip address. This is confusing and inconsistent
with IPv6. So always print the rtrid.
OK stsp@
|
| |
|
|
|
|
| |
the parsers sucked, so byte misalignment repair was requested. These
days it means the parsers should improve.
ok lteo
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
checksum, make tcpdump (with the -v flag) show the actual bad checksum
within the IP/protocol header itself and what the good checksum should
be, e.g. "[bad tcp cksum abcd! -> d1e6]"
This change applies to IP, TCP (over IPv4 and IPv6), UDP (over IPv4 and
IPv6), ICMP, and ICMPv6. This commit also fixes several inconsistencies
in the way bad checksums were displayed for these protocols.
Tested on amd64, i386, and macppc.
ok henning@
|
| |
|
|
|
|
|
| |
upcoming commit which will fix and improve the display of bad checksums
for the major protocols.
ok henning@
|
| |
|
|
|
|
|
| |
protocol checksum offload, where tcpdump might see bad checksums on
valid packets.
ok henning@ jmc@
|
| |
|
|
|
|
| |
messages which should be sent with AA set. Adapted from a patch at
http://marc.info/?l=tcpdump-patches&m=98115734907026&w=2 pointed out by
Peter J. Philipp, ok henning@
|
| |
|
|
| |
ok jmc@
|
| |
|
|
|
|
| |
Fix inspired by what upstream is doing.
Tested by me and matthieu@.
Input^WHand holding and OK guenther@
|
| | |
|
| | |
|
| |
|
|
|
|
| |
Tested on amd64, i386, loongson, and macppc.
OK florian@
|
| |
|
|
|
|
| |
Tested on amd64, i386, loongson, and macppc.
OK florian@
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
packet without the IP header. This is needed by the next commit that
will allow tcpdump to detect bad ICMP checksums.
Related functions like {tcp,udp,icmp6}_print() already accept this
length variable, so this change makes icmp_print() consistent with
them as well.
This commit makes no functional change to tcpdump itself.
OK florian@
|
| |
|
|
|
| |
easy road, otherwise this would be a righteous mess)
ok florian
|
| | |
|
| |
|
|
|
|
|
|
| |
pointer or non-const array, as that minimizes the symbols, maximizes the
placement into read-only memory, and avoids warnings from gcc -Wformat=2
when they're used as format strings.
ok deraadt@
|
| |
|
|
|
|
| |
They do not indicate a problem with the reduction of namespace export,
but got suckered into the 1999 plan.
ok benno
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
literal argument name due to lack of formatting, so replace it with an
example network to make it clearer (discussed with and suggested by jmc@).
While here, fix some style nits in a sentence to make it consistent with
the other examples.
ok jmc
|
| |
|
|
|
|
|
|
| |
header (pointed out by matthew@). Let only pflogd and tcpdump include
pcap-int.h directly since they need it for privilege separation.
"looks good" sthen
feedback/ok deraadt matthew millert
|
| | |
|
| |
|
|
| |
power saving mode. OK giovanni@
|
| |
|
|
|
|
|
| |
ensure that the function will stop and return NULL instead of continuing
(which could lead to a segfault).
ok benno deraadt otto
|
| |
|
|
| |
references into a STANDARDS section;
|
| |
|
|
|
| |
while here, improve the way information is printed out a bit.
with input and ok camield, mpf
|
| |
|
|
|
|
| |
- flesh out SEE ALSO
ok sthen
|
| |
|
|
|
|
|
|
|
| |
that asks users to send bug reports to mainline tcpdump.
While here, fix two mandoc -Tlint warnings by removing unnecessary
.Pp instances.
ok deraadt jmc naddy
|
| | |
|
| |
|
|
| |
ok theo
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
printed with port names if desired.
tcpdump's pf_print_state.c has diverged significantly from pfctl's, so
the change to tcpdump's pf_print_state.c is not exactly the same as
pfctl's.
ok henning sthen
|
| |
|
|
| |
ok haesbaert, sthen, yasuoka, mpf
|
| | |
|
| | |
|
| |
|
|
| |
characters. ok mikeb@
|
| |
|
|
| |
cisco use these at least as recently as ASAs running 8.4(1)
|
| |
|
|
| |
from Matt Dainty. ok haesbaert@
|
| |
|
|
| |
OK mcbride@
|
| |
|
|
|
| |
IPv4. Now it is id:len@off+more for both.
ok jsing
|
| |
|
|
| |
is no longer needed. ok naddy
|
| | |
|