Accepting request 1198279 from home:pmonrealgonzalez:branches:network:utilities

- Update to 4.99.5:
  * Refine protocol decoding for:
    - BGP: Fix an undefined behavior when it tries to parse a too-short packet.
    - CARP: Print the protocol name before any GET_().
    - CDP: only hex-dump unknown TLVs in verbose mode.
    - DHCP: parse the SZTP redirect tag.
    - DHCPv6: client-id/server-id DUID type 2 correction; parse the user class,
      boot file URL, and SZTP redirect options; add DUID-UUID printing (RFC6355).
    - DNS: Detect and correctly handle too-short URI RRs.
    - EAP: Assign ndo_protocol in the eap_print() function.
    - Frame Relay (Multilink): Fix the Timestamp Information Element printing.
    - ICMPv6: Fix printing the Home Agent Address Discovery Reply Message.
    - IEEE 802.11: no need for an element ID in the structures for IEs, make
      the length in the IE structures a u_int, include the "TA" field while
      printing Block Ack Control frame.
    - IP: Enable TSO (TCP Segmentation Offload) support; fix printing invalid
      cases as invalid, not truncated; use ND_ICHECKMSG_ZU() to test the
      header length.
    - IPv6: Fix printing invalid cases as invalid, not truncated; use
      ND_ICHECKMSG_U() to print an invalid version.
    - IPv6: Fix invalid 32-bit versus 64-bit printouts of fragment headers.
    - ISAKMP: Fix printing Delete payload SPI when size is zero.
    - Kerberos: Print the protocol name, remove a redundant bounds check.
    - lwres: Fix an undefined behavior in pointer arithmetic.
    - OpenFlow 1.0: Fix indentation of PORT_MOD, improve handling of
      some lengths, and fix handling of snapend.
    - TCP: Test ports < 1024 in port order to select the printer.
    - UDP: Move source port equal BCM_LI_PORT to bottom of long if else chain.
    - UDP: Test ports < 1024 in port order to select the printer.
    - LDP: Add missing fields of the Common Session Parameters TLV and fix the

OBS-URL: https://build.opensuse.org/request/show/1198279
OBS-URL: https://build.opensuse.org/package/show/network:utilities/tcpdump?expand=0&rev=70
This commit is contained in:
Dirk Mueller 2024-09-02 12:28:06 +00:00 committed by Git OBS Bridge
commit d7ac33e270
10 changed files with 1288 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
tcpdump-4.99.4.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0232231bb2f29d6bf2426e70a08a7e0c63a0d59a9b44863b7f5e2357a6e49fea
size 1903612

BIN
tcpdump-4.99.4.tar.gz.sig Normal file

Binary file not shown.

BIN
tcpdump-4.99.5.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

BIN
tcpdump-4.99.5.tar.xz.sig Normal file

Binary file not shown.

80
tcpdump-qeth Normal file
View File

@ -0,0 +1,80 @@
#!/usr/bin/perl
# (C)2002 by IBM Corporation, published under terms of the GPL V2
# Author: Holger Smolinski <smolinsk@de.ibm.com>
# this file is a wrapper around tcpdump, which provides the capability
# for debugging qeth and/or HiperSocket(TM) network interfaces under
# Linux for S/390 and zSeries. tcpdump Syntax is preserved.
# Bugs: When the input pipe ends the process is not stopped.
use Getopt::Std;
my $incmd,$outcmd;
getopts ("adeflnNOpqRStuvxXc:C:F:i:m:r:s:T:w:E:",\%options);
# Check which options to replace for the reader process
if ( defined($options{'r'}) ) {
$incmd = "cat $options{'r'}";
$filter_out = 1;
} else {
$incmd = "tcpdump -l -w -";
$filter_out = 0;
if ( defined($options{'i'}) ) {
$incmd .= " -i ".$options{'i'};
delete $options{'i'}; # remove -i option from option list
}
foreach $key (@ARGV) {
$incmd .= " $key";
}
}
$outcmd = "tcpdump -r -";
# Rebuild arglist for the writer process
delete $options{'r'}; # remove -r option from option list
foreach $key (keys %options) {
if ((index "adeflnNOpqRStuvxX",$key) >= 0 ) {
$outcmd .= " -$key";
} else {
$outcmd .= " -$key $options{$key}";
}
if ( $filter_out == 1 ) {
foreach $key (@ARGV) {
$outcmd .= " $key";
}
}
}
open READER,"$incmd|" or die "Cannot spawn reader command $incmd";
open WRITER,"|$outcmd" or die "Cannot spawn writer command $outcmd";
sysread READER,$filehdr,24 or die "Cannot read file header";
($magic,$version_major,$version_minor,$thiszone,$sigfigs,$snaplen,$linktype) =
unpack("ISSIIII",$filehdr);
$snaplen += 14;
$filehdr = pack ("ISSIIII",($magic,$version_major,$version_minor,$thiszone,$sigfigs,$snaplen,$linktype));
syswrite WRITER,$filehdr,24;
$etherheaderip6 = pack ("IIIS",(0,0,0,0x8dd));
$etherheaderip4 = pack ("IIIS",(0,0,0,0x800));
while ( 1 ) {
$hdrd = 0;
do {$hdrd += sysread READER, $pkthdr, 16-$hdrd, $hdrd; } while ($hdrd < 16);
($seconds,$usecs,$caplen,$len) = unpack ("IIII",$pkthdr);
$hdrd = 0;
do {$hdrd += sysread READER, $packet,$caplen-$hdrd, $hdrd; } while ($hdrd < $caplen);
$paktype = unpack("C",$packet);
if ( $paktype & 0xf0 == 0x60 ) {
$caplen += 14;
$len += 14;
$header = $etehrheaderip6;
} elsif ($paktype >= 0x45 && $paktype <= 0x4f ) {
$caplen += 14;
$len += 14;
$header = $etherheaderip4;
} else {
$header = "";
}
$pkthdr = pack ("IIII",($seconds,$usecs,$caplen,$len));
syswrite WRITER,"$pkthdr$header$packet",16+$caplen;
}

1061
tcpdump.changes Normal file

File diff suppressed because it is too large Load Diff

40
tcpdump.keyring Normal file
View File

@ -0,0 +1,40 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQGRBFGRD2gBDCDcthM1N9jeWic9tD17LsHwWyh/IelKgFMVFShgHk31YsQUetKn
5hGKlW0WU7+r3dsECiqxgyuqeUKvqiZneqma0GDk1n8ucXLc7oFFLrF7qbvssPPM
831014FlzsN82OZZ1SnNUGacdyNzV5myPybKILWemsLuAJaGU60IkAJkTReiaMFR
pB0QmBiqM5KY2SHAkeja2+UhupBw/lHyAwU/KVhkohmvUTJeUBJaKK2gRY7jJQmf
ouTbIe0nKIqDzMmE9GvFhyQmMJzbxAwTfSxSZq3bMCpsyQtjoi2LGQFoMVkI6g7K
IRNWgCqSTHF238VIdOkLzbwuoZAmS+oacXszIln2jLJsKkbiCCOb/lV+5u5O6/wJ
M4RHxCBnkRgBmMLyXSM9qAo1FU5suPqf01msqvKMsa99lTF6kIWurR/7rw4S2bNl
iaMqHNHliFNfaAE42S8as+Pw5Rhq2SJczWyd8rYw/q1IIZyKLO1oGn6ZRt+EQ7BS
8nlREmT/MDqP0rgrpvRrABEBAAG0PVRoZSBUY3BkdW1wIEdyb3VwIChQYWNrYWdl
IHNpZ25pbmcga2V5KSA8cmVsZWFzZUB0Y3BkdW1wLm9yZz6JAcIEEwECACgFAlGR
D2gCGwMFCRLMAwAGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheAAAoJEOCJ3vHZwV0N
wPAMH22fmTbjByMSvR/gxDFA26ULgf02qZzqYlRLKB7EDbEjB1Ga6PrLB22Sn/b5
8fxNw/9zH0EPkorv0YnBhinE51jLmZ99Sk5eGFIMcCkNAOOhadFZGGKarekEPwNB
oDtxCuSuOQ0JVvyn5fLcbA5u3+LBvHvbnUKgCpiXahpq15bZi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FiCB8RFsq/YHneRlX9rv1fFnmfa88BCAyguL0B66jW71Yo8B0R/JEVqKpoBTG
1A6hX4QNAzMKnWzPQgmo7ZKMwdJ5TfnoGrzkQsKJ6BXJtTMoZGfXVlXsypXpAdgx
IR09MajrTbPKkGhl+LcNIy4MGcdpzYx01dFRZO5UbrCZy4K0He6xMqXWlacXiQO0
6jrci1jnTRP+0adgTEAXESgfmqV+jS9DMwcfRM5A0q6lzwpurDEPupwZyuh4MYi9
wf7CaPhHpBsaEsiUvYxNqsvrOFW2j7yw6BDKL4YgSlSzhIZ1Fhig4I+EFvjocsdx
/VSUTa8cfnq681jkq+yqvEfo+HLqvfo=
=SAFa
-----END PGP PUBLIC KEY BLOCK-----

77
tcpdump.spec Normal file
View File

@ -0,0 +1,77 @@
#
# spec file for package tcpdump
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define min_libpcap_version 1.10.0
Name: tcpdump
Version: 4.99.5
Release: 0
Summary: A Packet Sniffer
License: BSD-3-Clause
URL: https://www.tcpdump.org/
Source: https://www.tcpdump.org/release/%{name}-%{version}.tar.xz
Source1: tcpdump-qeth
Source2: https://www.tcpdump.org/release/%{name}-%{version}.tar.xz.sig
Source3: https://www.tcpdump.org/release/signing-key-RSA-E089DEF1D9C15D0D.asc#/%{name}.keyring
BuildRequires: libpcap-devel >= %{min_libpcap_version}
BuildRequires: libsmi-devel
BuildRequires: openssl-devel
Requires: libpcap >= %{min_libpcap_version}
%description
This program can "read" all or only certain packets going over the
ethernet. It can be used to debug specific network problems.
%prep
%autosetup -p1
%build
# guessing TSO needed in print-ip.c
export CFLAGS="%{optflags} -DGUESS_TSO"
%ifarch i586
export CFLAGS="$CFLAGS -ffloat-store"
%endif
%configure
%make_build
%install
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_libdir}
install -m755 tcpdump %{buildroot}%{_sbindir}
install -m644 tcpdump.1 %{buildroot}%{_mandir}/man1/
%ifarch s390 s390x
install -D -m 755 %{SOURCE1} %{buildroot}%{_sbindir}
%endif
# Add a symlink in /usr/bin to be accessed by users
mkdir -p %{buildroot}%{_bindir}
ln -sf %{_sbindir}/tcpdump %{buildroot}%{_bindir}/tcpdump
%check
%make_build check
%files
%license LICENSE
%doc CHANGES CREDITS README* *.awk
%{_mandir}/man?/*
%{_sbindir}/tcpdump
%{_bindir}/tcpdump
%ifarch s390 s390x
%{_sbindir}/tcpdump-qeth
%endif
%changelog