Compare commits

...

No commits in common. "c8" and "c9s" have entirely different histories.
c8 ... c9s

8 changed files with 100 additions and 32 deletions

16
.gitignore vendored
View File

@ -1 +1,15 @@
SOURCES/v1.2.1.tar.gz
/iptraf-ng-1.1.0.tar.gz
/iptraf-ng-1.1.1.tar.gz
/iptraf-ng-1.1.2.rc0.tar.gz
/iptraf-ng-1.1.2.tar.gz
/iptraf-ng-1.1.3.1.tar.gz
/iptraf-ng-1.1.4.tar.gz
/0001-fix-segfault-in-adding-interface.patch
/iptraf-ng-tmpfiles.conf
/iptraf-ng-logrotate.conf
/0001-BUGFIX-fix-Floating-point-exception-in-tcplog_flowra.patch
/0002-Makefile-add-Werror-format-security.patch
/0003-fix-segfault-in-adding-interface.patch
/v1.1.4.tar.gz
/v1.2.1.tar.gz
/v1.2.2.tar.gz

View File

@ -1 +0,0 @@
fc72d2ec4c659d5355cdf1dd9371e64c34749cf1 SOURCES/v1.2.1.tar.gz

View File

@ -1,9 +0,0 @@
# Logrotate file for iptraf
/var/log/iptraf-ng/*.log {
compress
delaycompress
missingok
notifempty
rotate 4
create 0600 root root
}

View File

@ -1 +0,0 @@
d /run/iptraf-ng 0755 root root -

7
gating.yaml Normal file
View File

@ -0,0 +1,7 @@
--- !Policy
product_versions:
- rhel-9
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1-gating.functional}

View File

@ -1,15 +1,15 @@
Summary: A console-based network monitoring utility
Name: iptraf-ng
Version: 1.2.1
Release: 2%{?dist}
Version: 1.2.2
Release: 1%{?dist}
Source0: https://github.com/iptraf-ng/iptraf-ng/archive/v%{version}.tar.gz
Source1: %{name}-logrotate.conf
Source2: %{name}-tmpfiles.conf
URL: https://github.com/iptraf-ng/iptraf-ng/
License: GPLv2+
Group: Applications/System
License: GPL-2.0-or-later
BuildRequires: gcc
BuildRequires: ncurses-devel
Requires: logrotate
Obsoletes: iptraf < 3.1
Provides: iptraf = 3.1
@ -19,15 +19,15 @@ data like TCP connection packet and byte counts, interface statistics
and activity indicators, TCP/UDP traffic breakdowns, and LAN station
packet and byte counts. IPTraf-ng features include an IP traffic monitor
which shows TCP flag information, packet and byte counts, ICMP
details, OSPF packet types, and oversized IP packet warnings;
details, OSPF packet types, and oversize IP packet warnings;
interface statistics showing IP, TCP, UDP, ICMP, non-IP and other IP
packet counts, IP checksum errors, interface activity and packet size
packet counts, IP check sum errors, interface activity and packet size
counts; a TCP and UDP service monitor showing counts of incoming and
outgoing packets for common TCP and UDP application ports, a LAN
statistics module that discovers active hosts and displays statistics
about their activity; TCP, UDP and other protocol display filters so
you can view just the traffic you want; logging; support for Ethernet,
FDDI, ISDN, SLIP, PPP, and loopback interfaces; and utilization of the
FDDI, ISDN, SLIP, PPP, and loop back interfaces; and utilization of the
built-in raw socket interface of the Linux kernel, so it can be used
on a wide variety of supported network cards.
@ -57,11 +57,7 @@ install -m 0644 %{SOURCE2} %{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf
mkdir -p %{buildroot}/run
install -d -m 0755 %{buildroot}/run/%{name}/
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc CHANGES FAQ LICENSE README*
%doc Documentation
%{_sbindir}/iptraf-ng
@ -73,15 +69,64 @@ rm -rf %{buildroot}
%{_prefix}/lib/tmpfiles.d/%{name}.conf
%changelog
* Thu Jan 28 2021 Andrea Claudi <aclaudi@redhat.com>
- Make sure logrotate use iptraf-ng directory.
* Sun Feb 02 2025 Andrea Claudi <aclaudi@redhat.com> - 1.2.2-1.el9
- New version 1.2.2 (Andrea Claudi) [RHEL-77280]
- Fix buffer overflow via ifaces.c (Andrea Claudi) [RHEL-71493]
* Wed Dec 09 2020 Andrea Claudi <aclaudi@redhat.com>
- New version 1.2.1 (Andrea Claudi) [1906097]
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.2.1-4
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Thu Apr 11 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-19
- add tests/tests.yml
Resolves: rhbz#1682317
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.2.1-3
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jul 21 2020 Phil Cameron <pcameron@redhat.com> - 1.2.1-1
- Makefile: protect mandatory compile flags
- packet capture: don't reuse socket for multiple receive functions
- TPACKET_V[23]: continue even if mlock() fails
- ipmon: fix division by zero
- fix: detstats(), ifstats(): handle packets with incorrect header checksum
- fix: positionptr(): properly allocate newly created interfaces
- fix: detstats(): properly account non-IP packets
- fix: properly init curses (fixes view on some utf-8 terminals)
- fix: cidr_split_address(): fix buffer overflow
- ipmon: printentry(): fix printing of huge values
- build: use correct libraries (wide version of -lpanel)
- fix unsafe handling of printf() args (RedHat Bugzilla: 1842690)
- fix the CPU hog if the interface gets removed (RedHat Bugzilla: 1572750)
- introduce packet capturing abstraction: add recvmmsg(), TPACKET_V2 and TPACKET_V3 mmap()ed capturing modules: this allow us to capture in multigigabit speeds
- add partial support for IPoIB interfaces (full support cannot be done because the kernel interface doesn't give us source address) (RedHat Bugzilla: 1140211)
- merge rvnamed-ng into iptraf-ng
- allow scrolling with Home, End, PageUp and PageDown keys
- show dropped packet count
- pktsize: print in and out counters
- ifstats: show total packet rate and packet drop across all interfaces
- ipmon: show OSPF protocol version
- hostmon, ipmon: update screen only when needed (vastly reduces CPU usage and also reduces packet drops)
- update source code to compile cleanly on modern gcc
- numerous code refactoring/cleaning up all over the source tree
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Thu Apr 11 2019 Phil Cameron <pcameron@redhat.com> - 1.1.4-22
- add test case
Resolves: 1682317
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Mon Jul 16 2018 Phil Cameron <pcameron@redhat.com> - 1.1.4-20
- add BuildRequires: gcc
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
@ -90,7 +135,7 @@ rm -rf %{buildroot}
- Build with linker flags from redhat-rpm-config
* Mon Jan 22 2018 Phil Cameron <pcameron@redhat.com> - 1.1.4-16
- Moved upstream from https://fedorahosted.org/iptraf-ng/ to
- Moved upstream from https://fedorahosted.org/iptraf-ng/ to
https://github.com/iptraf-ng/iptraf-ng/ with release v1.1.4
Fixes error in patch Patch03 - this fixes 1283773
@ -139,7 +184,7 @@ rm -rf %{buildroot}
* Mon Sep 02 2013 Nikola Pajkovsky <npajkovs@redhat.com> - 1.1.4-3
- 9b32013 BUGFIX: fix "Floating point exception" in tcplog_flowrate_msg() (Vitezslav Samel)
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

4
sources Normal file
View File

@ -0,0 +1,4 @@
SHA512 (v1.2.1.tar.gz) = 44d36fc92cdbf379f62cb63638663c3ee610225b9c28d60ee55e62e358f398a6b0db281129327b3472e45fb553ee3dd605af09c129f2233f8839ae3dbd799384
SHA512 (iptraf-ng-logrotate.conf) = 47e26527bc3776a8018b02803cfc9b9bc48ef28d6356767d6a2a724b2e6049f1bdb5c96346809ab18f2c82496680aff1d32ee7a107dce40edd32e3fb85ede082
SHA512 (iptraf-ng-tmpfiles.conf) = ff9f07ad8989bb172a74ac5f3a7311507dc04add8d4ca7cbc476da345f9bb67bb00445e95be1eb6ae16ddf6b03246700c3d8ad194ce41b6005878690bb3464d4
SHA512 (v1.2.2.tar.gz) = 275a345ffd3ab9578c4d159c3a8667326224b4a58b2e7787c4db518b81973d87c04b4b6c5275a721858d01a9b44a0200f8defc06c6f88655aa38d4fa6146ea1d

9
tests/tests.yml Normal file
View File

@ -0,0 +1,9 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
tests:
- simple:
dir: .
run: "iptraf-ng --help"