OBS User unknown 2008-01-09 20:43:01 +00:00 committed by Git OBS Bridge
parent abf8d69e1e
commit 37c9439d6d
10 changed files with 80 additions and 20 deletions

View File

@ -1,11 +0,0 @@
--- configure.in
+++ configure.in
@@ -56,7 +56,7 @@
AC_CHECK_FUNCS(vsnprintf snprintf,,
[needsnprintf=yes])
if test $needsnprintf = yes; then
- AC_LIBOBJ(snprintf)
+ AC_LIBOBJ([snprintf])
fi
#

View File

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

20
libpcap-0.9.8-config.diff Normal file
View File

@ -0,0 +1,20 @@
--- configure.in
+++ configure.in
@@ -8,7 +8,7 @@
AC_REVISION($Revision: 1.120.2.13 $)
AC_PREREQ(2.50)
-AC_INIT([libpcap], [0.9.7])
+AC_INIT([libpcap], [0.9.8])
AC_CONFIG_SRCDIR([pcap.c])
AC_CANONICAL_SYSTEM
@@ -59,7 +59,7 @@
AC_CHECK_FUNCS(vsnprintf snprintf,,
[needsnprintf=yes])
if test $needsnprintf = yes; then
- AC_LIBOBJ(snprintf)
+ AC_LIBOBJ([snprintf])
fi
#

View File

@ -0,0 +1,28 @@
--- pcap-bpf.h
+++ pcap-bpf.h
@@ -84,6 +84,25 @@
#define BPF_MINBUFSIZE 32
/*
+ * Struct returned by BIOCGSTATS.
+ */
+struct bpf_stat {
+ u_int bs_recv; /* number of packets received */
+ u_int bs_drop; /* number of packets dropped */
+};
+
+/*
+ * Structure prepended to each packet.
+ */
+struct bpf_hdr {
+ struct timeval bh_tstamp; /* time stamp */
+ bpf_u_int32 bh_caplen; /* length of captured portion */
+ bpf_u_int32 bh_datalen; /* original length of packet */
+ u_short bh_hdrlen; /* length of bpf header (this struct
+ plus alignment padding) */
+};
+
+/*
* Structure for "pcap_compile()", "pcap_setfilter()", etc..
*/
struct bpf_program {

View File

@ -1,6 +1,6 @@
--- pcap-linux.c --- pcap-linux.c
+++ pcap-linux.c +++ pcap-linux.c
@@ -1594,6 +1593,18 @@ @@ -1595,6 +1595,18 @@
} }
} }

3
libpcap-0.9.8.tar.bz2 Normal file
View File

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

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Tue Jan 8 17:44:31 CET 2008 - prusnak@suse.cz
- update to 0.9.8
* Change build process to put public libpcap headers into pcap subdir
* DLT: Add value for IPMI IPMB packets
* DLT: Add value for u10 Networks boards
* Require <net/pfvar.h> for pf definitions - allows reading of pflog
formatted libpcap files on an OS other than where the file was generated
- added pcap-bpf.patch
* add two structs needed for tahi testsuite
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jul 26 15:57:36 CEST 2007 - prusnak@suse.cz Thu Jul 26 15:57:36 CEST 2007 - prusnak@suse.cz

View File

@ -1,7 +1,7 @@
# #
# spec file for package libpcap (Version 0.9.7) # spec file for package libpcap (Version 0.9.8)
# #
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine # This file and all modifications and additions to the pristine
# package are under the same license as the package itself. # package are under the same license as the package itself.
# #
@ -12,18 +12,19 @@
Name: libpcap Name: libpcap
BuildRequires: bison flex BuildRequires: bison flex
Version: 0.9.7 Version: 0.9.8
Release: 1 Release: 1
Autoreqprov: on AutoReqProv: on
Group: System/Libraries Group: System/Libraries
License: BSD 3-Clause License: BSD 3-Clause
URL: http://www.tcpdump.org/ Url: http://www.tcpdump.org/
Summary: A Library for Network Sniffers Summary: A Library for Network Sniffers
Source: %{name}-%{version}.tar.bz2 Source: %{name}-%{version}.tar.bz2
Patch0: %{name}-%{version}-shared.diff Patch0: %{name}-%{version}-shared.diff
Patch1: %{name}-%{version}-filter-fix.diff Patch1: %{name}-%{version}-filter-fix.diff
Patch2: %{name}-%{version}-config.diff Patch2: %{name}-%{version}-config.diff
Patch3: %{name}-%{version}-socket-timeout.diff Patch3: %{name}-%{version}-socket-timeout.diff
Patch4: %{name}-%{version}-pcap-bpf.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
@ -80,6 +81,7 @@ find -d -name CVS -exec rm -rf {} \;
%patch1 %patch1
%patch2 %patch2
%patch3 %patch3
%patch4
%build %build
%{suse_update_config -f} %{suse_update_config -f}
@ -119,6 +121,15 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/*.*a %{_libdir}/*.*a
%changelog %changelog
* Tue Jan 08 2008 - prusnak@suse.cz
- update to 0.9.8
* Change build process to put public libpcap headers into pcap subdir
* DLT: Add value for IPMI IPMB packets
* DLT: Add value for u10 Networks boards
* Require <net/pfvar.h> for pf definitions - allows reading of pflog
formatted libpcap files on an OS other than where the file was generated
- added pcap-bpf.patch
* add two structs needed for tahi testsuite
* Thu Jul 26 2007 - prusnak@suse.cz * Thu Jul 26 2007 - prusnak@suse.cz
- updated to 0.9.7 - updated to 0.9.7
* added flags/configuration for cloning bpf device. * added flags/configuration for cloning bpf device.