Pascal Bleser 2010-01-02 01:27:03 +00:00 committed by Git OBS Bridge
parent 471192c9cb
commit 477063eb17
6 changed files with 10 additions and 53 deletions

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

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

@ -1,11 +0,0 @@
--- src/netsniff-ng.c.orig 2009-12-31 11:18:59.000000000 +0100
+++ src/netsniff-ng.c 2009-12-31 11:20:29.000000000 +0100
@@ -436,7 +436,7 @@
exit(EXIT_FAILURE);
}
- memset(bpf, 0, sizeof(**bpf));
+ memset(bpf, 0, sizeof(*bpf));
(*rb) = (ring_buff_t *) malloc(sizeof(**rb));
if ((*rb) == NULL) {

@ -1,33 +0,0 @@
--- src/netsniff-ng.c.orig 2009-12-31 11:00:20.000000000 +0100
+++ src/netsniff-ng.c 2009-12-31 11:02:16.000000000 +0100
@@ -139,16 +139,16 @@
*/
info("stats summary:\n");
info("--------------------------------------------------------------------------------------------\n");
- info("elapsed time: %llu d, %llu h, %llu min, %llu s, %llu ns\n", d_day,
+ info("elapsed time: %zu d, %zu h, %zu min, %zu s, %zu ns\n", d_day,
d_h, d_min, d_sec, d_nsec);
info("-----------+--------------------------+--------------------------+--------------------------\n");
info(" | per sec | per min | total \n");
info("-----------+--------------------------+--------------------------+--------------------------\n");
- info(" frames | %24llu | %24llu | %24llu \n",
+ info(" frames | %24zu | %24zu | %24zu \n",
netstat.s_per_sec.frames, netstat.s_per_min.frames,
netstat.total.frames);
info("-----------+--------------------------+--------------------------+--------------------------\n");
- info(" in B | %24llu | %24llu | %24llu \n",
+ info(" in B | %24zu | %24zu | %24zu \n",
netstat.s_per_sec.bytes, netstat.s_per_min.bytes,
netstat.total.bytes);
info(" in KB | %24llu | %24llu | %24llu \n",
@@ -516,8 +516,8 @@
* on 32 and 64 bit arch w/o gcc warnings
*/
- info("captured frames: %llu, "
- "captured bytes: %llu [%llu KB, %llu MB, %llu GB]\n",
+ info("captured frames: %zu, "
+ "captured bytes: %zu [%zu KB, %zu MB, %zu GB]\n",
netstat.total.frames, netstat.total.bytes,
netstat.total.bytes / 1024,
netstat.total.bytes / (1024 * 1024),

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Jan 2 01:15:04 UTC 2010 - pascal.bleser@opensuse.org
- update to 0.5.4.1: patches merged upstream
-------------------------------------------------------------------
Fri Jan 1 22:35:02 UTC 2010 - pascal.bleser@opensuse.org

@ -1,13 +1,11 @@
# norootforbuild
Name: netsniff-ng
Version: 0.5.4
Version: 0.5.4.1
Release: 0
Summary: High Performance Network Sniffer for Packet Inspection
# http://netsniff-ng.googlecode.com/files/netsniff-ng-%{version}.tar.gz
Source: netsniff-ng-%{version}.tar.bz2
Patch1: netsniff-ng-fix_printf_format.patch
Patch2: netsniff-ng-fix_buffer_overflow.patch
URL: http://code.google.com/p/netsniff-ng/
Group: Productivity/Networking/Diagnostic
License: GNU General Public License version 2 or later (GPL v2 or later)
@ -41,9 +39,7 @@ Authors:
%debug_package
%endif
%prep
%setup -q
%patch1
%patch2
%setup -q -n "%{name}_%{version}"
%build
pushd src