- Update tcpdump.keyring with upstream RSA signing key.
OBS-URL: https://build.opensuse.org/package/show/network:utilities/tcpdump?expand=0&rev=72
This commit is contained in:
commit
72f913f819
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
tcpdump-4.99.4.tar.gz
Normal file
3
tcpdump-4.99.4.tar.gz
Normal 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
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
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
BIN
tcpdump-4.99.5.tar.xz.sig
Normal file
Binary file not shown.
80
tcpdump-qeth
Normal file
80
tcpdump-qeth
Normal 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;
|
||||
}
|
1066
tcpdump.changes
Normal file
1066
tcpdump.changes
Normal file
File diff suppressed because it is too large
Load Diff
24
tcpdump.keyring
Normal file
24
tcpdump.keyring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R+4Qi7ZlJidMFOqQpC0AIVZRKWhyE6j1/KujsJ
|
||||
zov+DqE+oIH1AYsDnm1D4r/XxSd0ZaPIXvePnpsp2jpsSlz0zgJjFTIoUHg2vVRG
|
||||
ky0iXY6r+oHIkFfHnZkBLsWbFQemqgpGuaoBe+rZzf/CkGt/0IUHt9B5Fx2k4erz
|
||||
fh71NS9etAZxxtc1nPslhntIRrTon5H2mrzbZm2oE9xice1zIfNzjzfPbgMoQdrg
|
||||
6QZ4pdsezQ3bNTuKvrTJYxwLUNmt+z+KX98Z0ceqPqb2Q3duE3gZ+/jIpCL12u3w
|
||||
GrjFiNeVJ+7ZHqc5S/a6idLnBZkSWMa5A7JXLhE/YA==
|
||||
=rF84
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
77
tcpdump.spec
Normal file
77
tcpdump.spec
Normal 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
|
Loading…
Reference in New Issue
Block a user