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
This commit is contained in:
Phil Cameron 2020-07-21 15:59:24 -04:00
parent baf3f0a3b2
commit a1df95ac89
3 changed files with 34 additions and 20 deletions

1
.gitignore vendored
View File

@ -11,3 +11,4 @@
/0002-Makefile-add-Werror-format-security.patch
/0003-fix-segfault-in-adding-interface.patch
/v1.1.4.tar.gz
/v1.2.1.tar.gz

View File

@ -1,7 +1,7 @@
Summary: A console-based network monitoring utility
Name: iptraf-ng
Version: 1.1.4
Release: 24%{?dist}
Version: 1.2.1
Release: 1%{?dist}
Source0: https://github.com/iptraf-ng/iptraf-ng/archive/v%{version}.tar.gz
Source1: %{name}-logrotate.conf
Source2: %{name}-tmpfiles.conf
@ -11,9 +11,6 @@ BuildRequires: gcc
BuildRequires: ncurses-devel
Obsoletes: iptraf < 3.1
Provides: iptraf = 3.1
Patch01: 0001-BUGFIX-fix-Floating-point-exception-in-tcplog_flowra.patch
Patch02: 0002-Makefile-add-Werror-format-security.patch
Patch03: 0003-fix-segfault-in-adding-interface.patch
%description
IPTraf-ng is a console-based network monitoring utility. IPTraf gathers
@ -21,23 +18,20 @@ 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.
%prep
%setup -q
%patch01 -p1
%patch02 -p1
%patch03 -p1
%build
make %{?_smp_mflags} V=1 \
@ -63,12 +57,10 @@ mkdir -p %{buildroot}/run
install -d -m 0755 %{buildroot}/run/%{name}/
%files
%doc CHANGES FAQ LICENSE README* RELEASE-NOTES
%doc CHANGES FAQ LICENSE README*
%doc Documentation
%{_sbindir}/iptraf-ng
%{_sbindir}/rvnamed-ng
%{_mandir}/man8/iptraf-ng.8*
%{_mandir}/man8/rvnamed-ng.8*
%{_localstatedir}/log/iptraf-ng
%{_localstatedir}/lib/iptraf-ng
%config(noreplace) %{_sysconfdir}/logrotate.d/iptraf-ng
@ -76,6 +68,32 @@ install -d -m 0755 %{buildroot}/run/%{name}/
%{_prefix}/lib/tmpfiles.d/%{name}.conf
%changelog
* 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

View File

@ -1,6 +1 @@
SHA512 (0001-BUGFIX-fix-Floating-point-exception-in-tcplog_flowra.patch) = b696561634ab753137a16ff5e5b2c9670f6d3752cf856f49f359b018720491a06d193c3d9ab5d364543def54da5fde550a4cf06b7074620997c39a18b28f7f07
SHA512 (0002-Makefile-add-Werror-format-security.patch) = 093304e2a3edc901722fc4c0aa7c7e96d0bc3f296e99abdca275ea2fd97156bda951cdd8c0fd2fd2e38bdb5177ca46f98875a106a4a5eb8c5783f8effb4aff05
SHA512 (0003-fix-segfault-in-adding-interface.patch) = a1d4606b16362a8613edbc798e80db3c8fca833ac494c19fedfc7dcb5411c38a69d5d376a5f4d7e349a9cd18bcc3282ccbd90493fd02afc7dbaf667612cffc88
SHA512 (iptraf-ng-logrotate.conf) = 47e26527bc3776a8018b02803cfc9b9bc48ef28d6356767d6a2a724b2e6049f1bdb5c96346809ab18f2c82496680aff1d32ee7a107dce40edd32e3fb85ede082
SHA512 (iptraf-ng-tmpfiles.conf) = ff9f07ad8989bb172a74ac5f3a7311507dc04add8d4ca7cbc476da345f9bb67bb00445e95be1eb6ae16ddf6b03246700c3d8ad194ce41b6005878690bb3464d4
SHA512 (v1.1.4.tar.gz) = 675165e08f979daf70fdbd0bd7ae24803860a182f3f1f6e6905f79f65b283470eedcc7e2f8608006c92af258cfad49c0b571652d843107cc79ad8eda63d4e5cb
SHA512 (v1.2.1.tar.gz) = 44d36fc92cdbf379f62cb63638663c3ee610225b9c28d60ee55e62e358f398a6b0db281129327b3472e45fb553ee3dd605af09c129f2233f8839ae3dbd799384