| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
This change will avoid having the keyword "invalid" twice as:
[invalid ncount] (invalid)
|
|
|
|
|
| |
This change will avoid having the keyword "invalid" twice as:
(invalid length for the MD type) (invalid)
|
|
|
|
|
| |
This change will avoid having the keyword "invalid" twice as:
(invalid length nnn) (invalid)
|
|
|
|
|
|
|
| |
This change will avoid having the keyword "invalid" twice as:
[invalid MgmtD Len nnn] (invalid)
and
(invalid TLV length nnn != 1) (invalid)
|
|
|
|
|
| |
This change will avoid having the keyword "invalid" twice as :
[invalid TLV length nnn] (invalid)
|
|
|
|
|
|
| |
Use ND_TCHECK_SIZE() and enable ND_LONGJMP_FROM_TCHECK.
Use ND_ICHECK_U() for length check and add standard "invalid" section.
Use nd_print_protocol().
|
| |
|
|
|
|
|
| |
It is a follow-up to 94f232c1ab0143c6da9fc00732b6b241b8abdf4c
where the assert() call was removed.
|
|
|
|
|
| |
-vv does not give more printed data than -v for the NTP protocol.
The only differences were about UDP checksums in IPv4 encapsulation.
|
|
|
|
| |
-vvv does not give more printed data than -vv.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
From https://www.gnu.org/software/make/manual/make.html#MAKE-Variable:
```
Recursive make commands should always use the variable MAKE, not the
explicit command name 'make', as shown here:
subsystem:
cd subdir && $(MAKE)
```
This should avoid the following warning when running 'make releasecheck'
in some cases:
make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent
make rule.
|
|
|
|
|
|
|
| |
Same as in tcpslice:
pkg: No packages available to install matching 'llvm14' have been
found in the repositories
|
|
|
|
|
|
|
|
|
| |
Delete Linux 2.0 bugs from bug list.
Linux 2.0.x releases are from 1996-2004. The man page recommended upgrading to Linux 2.2, released in 1999.
https://en.wikipedia.org/wiki/Linux_kernel_version_history#Releases_up_to_2.6.0
I'm assuming these >20 year old bug references aren't that useful now.
|
|
|
|
|
|
| |
Fix the cppcheck warning:
instrument-functions.c:77:15: warning: The scope of the variable
'instrument_type' can be reduced. [variableScope]
|
|
|
|
|
|
|
|
|
|
|
| |
Check for truncation before doing pointer arithmetic to point
to the end of the packet.
print-lwres.c:294:10: runtime error: addition of unsigned offset to
0xf3b032be overflowed to 0x9652d560
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior print-lwres.c:294:10
[Part of the PR #1012]
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
The warnings were like:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
|
| |
|
|
|
|
|
|
|
|
| |
This may avoid this error:
Dissector error: print_unknown_data() called with pointer past end of
packet
Add a test file showing the problem.
|
|
|
|
|
|
| |
This may avoid this error:
Dissector error: print_unknown_data() called with pointer past end of
packet
|
|
|
|
|
|
|
|
| |
If a CIE doesn't fit in the remainder of the mandatory part, return the
length of that remainder, so that the loop processing the CIE
terminates.
Add capture that produced the infinite loop.
|
|
|
|
| |
[skip ci]
|
|
|
|
| |
[skip ci]
|
|
|
|
| |
[skip ci]
|
|
|
|
| |
[skip ci]
|
|
|
|
| |
[skip ci]
|
|
|
|
| |
[skip ci]
|
|
|
|
| |
[skip ci]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When converting an integer from ASN.1, use an unsigned value
for the partial result and assign it to the integer part of
the union at the end, to avoid shifting a negative number left.
print-snmp.c:545:19: runtime error: left shift of negative value -1
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior print-snmp.c:545:19
OID elements are unsigned; a large-enough oid value could result
in the undefined behavior of shifting a signed integer left through
the sign bit, so simply store them as unsigned.
print-snmp.c:751:11: runtime error: left shift of 268435455 by 7 places
cannot be represented in type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior print-snmp.c:751:11
[Part of the PR #1012]
|
|\
| |
| | |
child_cleanup: reap as many child processes as possible
|
|/
|
|
|
|
|
|
|
|
|
|
|
| |
Under load it's possible multiple child processes have been killed before
we start processing the SIGCHILD signal, leaving zombie processes behind
everytime we miss a process.
Reap as many processes as possible instead of assuming one handler
call = one process like we currently did.
Can be reproduced by running the following commands in parallel:
- tcpdump -i lo -w /tmp/test -C 1 -z /usr/bin/true
- iperf3 -s
- iperf3 -c localhost
|
|
|
|
| |
reserved: MUST be 0 (MBZ).
|
|
|
|
|
|
|
|
|
|
|
|
| |
This should avoid error like:
./print-rt6.c:36:18: error: no previous extern declaration for
non-static variable 'srh_tlv_type' [-Werror,-Wmissing-variable-declarations]
const struct tok srh_tlv_type[] = {
^
./print-rt6.c:36:7: note: declare 'static' if the variable is not
intended to be used outside of this translation unit
const struct tok srh_tlv_type[] = {
^
|
|
|
|
|
| |
Moreover:
Factorise "ND_PRINT(", TLV-len=%u", tlv_len);"
|
|\
| |
| | |
rt6: parse TLV
|
|/
|
|
|
|
|
|
|
| |
Parse Type Length Values (TLV) in IPv6 Routing Header as specified by
RFC 8754 [1].
[1] https://datatracker.ietf.org/doc/html/rfc8754
Signed-off-by: Giulio Sidoretti <giulio.sidoretti@uniroma2.it>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Handle the I-D draft-detienne-dmvpn-01 traffic indication packet.
Print the error code in an error indication symbolically if it's a known
code.
Print the address fields in the mandatory part of the header for error
and traffic indication packets.
|
| |
|
|
|
|
| |
Get rid of some commented-out code while we're at it.
|
|
|
|
| |
This is from the OpenBSD tcpdump.
|
|
|
|
|
| |
Specify a minimum length of 4 in the cdptlvs table, rather than having
its printer do the length check itself.
|
|
|
|
| |
It's 2 bytes long.
|
|
|
|
| |
Based on the way it's dissected in Wireshark.
|
|
|
|
|
|
|
|
|
| |
Instead, have an additional element in a struct cdp_tlvinfo that
indicates whether to print the TLV in all modes or only in verbose mode;
that would allow other TLVs to printed in non-verbose mode.
Also, use the usual (sizeof x / sizeof x[0]) trick to determine how big
the table is, rather than having a defined size.
|
|
|
|
|
|
|
|
| |
DHCPv4: RFC8572 specifies the SZTP redirect tag.
DHCPv6: RFC5970 specifies the boot file URL, used for ZTP,
and RFC8572 specifies the SZTP redirect tag
The base DHCPv6 RFC3315 specifies the user class option.
|
|
|
|
| |
Taken from the OpenBSD version of tcpdump.
|
|
|
|
|
| |
Have separate .out files for dissection of wccp_redirect_gre.pcap with,
and without, SMB dissection enabled in tcpdump.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If we're not in verbose mode, we only show the Device ID TLV, so there's
no good reason to show a hex dump of other TLVs if we don't happen to
have a printer for them - especially given that we don't show the type
value for the TLV, so it's not clear to what type value those hex bytes
correspond. Furthermore, the hex dump causes the non-verbose output to
be multiple lines, and causes the ", length N" to show up at the end of
the hex dump rather than at the end of the first line.
I.e., it seems as if either 1) printing the hex dump in non-verbose mode
wasn't intended or 2) it was intended by whoever intended it didn't look
into what it would involve.
|
|
|
|
|
|
|
|
| |
Fixup the comment and have the case block actually fall through
consistently with the comment and the OpenBSD implementation. Update
the test case, which now has the IPv4 packet after the WCCP header. The
indentation does not represent the header nesting, but the same stands
for the OpenBSD implementation.
|