commit 6b380b5abc647cf9932ec9dff323e5360d12b9ad898dc3bd9c803a603e53ce61 Author: Adrian Schröter Date: Fri May 3 15:18:26 2024 +0200 Sync from SUSE:SLFO:Main libnet revision d54651d0ede6be77889e91b2c05f6967 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/libnet-1.3.tar.gz b/libnet-1.3.tar.gz new file mode 100644 index 0000000..8e9f47f --- /dev/null +++ b/libnet-1.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ad1e2dd9b500c58ee462acd839d0a0ea9a2b9248a1287840bc601e774fb6b28f +size 595500 diff --git a/libnet.changes b/libnet.changes new file mode 100644 index 0000000..e12bc1c --- /dev/null +++ b/libnet.changes @@ -0,0 +1,242 @@ +------------------------------------------------------------------- +Tue Oct 24 07:03:46 UTC 2023 - Paolo Stivanin + +- update to 1.3: + * Add support for LLDP, mandatory TLVs. + * Add support for Cisco UniDirectional Link Detection (UDLD), RFC5171 + * Calling libnet_init() with a RAW type no longer sets a TX buffer max + size. Use the new libnet_setfd_max_sndbuf() instead when needed. + * Fix #122: unused parameter warnings + * Fix #123: potential memory leak in libnet_cq_add() + * Fix #124: potential name conflict with C++ keyword new + * Fix #96: pointer type warnings when dumping raw data with %p + * Fix #97: non-standard types + * Fix #98: lots of signed vs unsigned comparisons + * Fix #102: possible buffer overflows in libnet_plist_chain_dump_string() + * Fix #120: possible NULL pointer dereference in libnet_cq_add() + * Fix #120: memory leak in libnet_plist_chain_new() + * Fix segmentation fault in libnet_ifaddrlist() + * Fix #150: segfault when number of IPs > 512 +- Drop upstreamed reproducible.patch + +------------------------------------------------------------------- +Wed Feb 9 08:23:54 UTC 2022 - Bernhard Wiedemann + +- Add reproducible.patch to override build date (boo#1047218) + +------------------------------------------------------------------- +Wed Sep 23 07:11:45 UTC 2020 - Dirk Mueller + +- update to 1.2: + * Removed Lua bindings from repo and dist files, now available separately + * Removed generated HTML and Nroff (man pages) documentation files, must be regenerated with Doxygen using make doc + * Add pkg-config support with libnet.pc, replaces libnet-config tool, although it is kept for compatibility for now + * Factorize socket setup code for socket opening to provide output device selection for IPv4 + * Make libnet_get_hwaddr() work with 802.1q interfaces in bpf (BSD) + * New API for OSPF HELLO messages, with neighbor + * many bugfixes, see https://github.com/libnet/libnet/releases/tag/v1.2 +- drop libnet-1.2-rc.patch libnet-pf-packet.patch (obsolete) + +------------------------------------------------------------------- +Fri Oct 23 13:48:35 UTC 2015 - tchvatal@suse.com + +- Add patch for bnc#949391: + * libnet-pf-packet.patch + +------------------------------------------------------------------- +Fri Mar 13 14:08:34 UTC 2015 - tchvatal@suse.com + +- Remove no longer needed provide/obsolete + +------------------------------------------------------------------- +Tue May 13 14:04:38 UTC 2014 - tchvatal@suse.com + +- Drop patch removing manpages, no reason to remove them. + libnet-1.2.0-drop-man-build.patch + +------------------------------------------------------------------- +Tue May 13 13:56:58 UTC 2014 - tchvatal@suse.com + +- Update to actual released tarball which is versioned 1.2-rc3 +- Cleanup with spec-cleaner +- No reason to not have this library in /usr so move it there +- Add patch libnet-1.2-rc.patch needed to set proper version in + automake. + +------------------------------------------------------------------- +Thu Jan 2 09:30:15 UTC 2014 - mvyskocil@suse.com + +- Use macro in libnet-devel to ensure correct dependency + +------------------------------------------------------------------- +Thu Dec 19 11:02:52 UTC 2013 - mvyskocil@suse.com + +- Update to 1.2 + no changelog available +- add libnet-1.2.0-drop-man-build.patch to not fail on non existing + manual pages + +------------------------------------------------------------------- +Thu Oct 3 12:54:03 UTC 2013 - mvyskocil@suse.com + +- Install just plain c files in samples/ + +------------------------------------------------------------------- +Wed Mar 27 15:52:11 UTC 2013 - mvyskocil@suse.com + +- update to 1.1.6 + * obsoleted libnet-1.1.2.1-uninitialized-fix.diff + * obsoleted libnet-1.1.5-arrray-fix.diff + * fixes the PF_PACKET detection (bnc#810138) + * includes many bugfixes from Debian + * ICMPv6 and IPv6 related bugfixes + * and many more + +------------------------------------------------------------------- +Mon Feb 13 10:48:57 UTC 2012 - coolo@suse.com + +- patch license to follow spdx.org standard + +------------------------------------------------------------------- +Sun Nov 20 20:45:32 UTC 2011 - jengelh@medozas.de + +- Remove redundant/unwanted tags/section (cf. specfile guidelines) + +------------------------------------------------------------------- +Sat Nov 19 20:43:21 UTC 2011 - coolo@suse.com + +- add libtool as buildrequire to avoid implicit dependency + +------------------------------------------------------------------- +Thu May 5 23:05:05 CEST 2011 - dmueller@suse.de + +- complete package rename to libnet1 + +------------------------------------------------------------------- +Wed Feb 9 12:18:57 UTC 2011 - adam@mizerski.pl + +- minor specfile improvements +- removed dead/unused libnet-1.1.5-strict-aliasing-fix.diff + +------------------------------------------------------------------- +Sat Nov 20 16:14:05 UTC 2010 - coolo@novell.com + +- fix requires of devel package + +------------------------------------------------------------------- +Fri Nov 19 12:53:43 UTC 2010 - mvyskocil@suse.cz + +- update to 1.1.5 (from libnet-dev.sf.net) a bugfix release + see CHANGELOG for complete list of fixes from 1.1.2.1 +- patches changes: + * remove libnet-endianess-fix.diff + * remove libnet-shared.diff + * remove libnet-1.1.2.1-makefile.diff + * refresh libnet-1.1.5-strict-aliasing-fix.diff + * refresh libnet-1.1.5-arrray-fix.diff +- rename to libnet1 to conforms Shared Library Policy +- split devel files to libnet-devel and documentation to libnet-doc + +------------------------------------------------------------------- +Tue Nov 3 19:09:27 UTC 2009 - coolo@novell.com + +- updated patches to apply with fuzz=0 + +------------------------------------------------------------------- +Tue Sep 9 14:54:14 CEST 2008 - crrodriguez@suse.de + +- after removing static libraries, syslog-ng complains that are + needed, so we move the shared library to /%{_lib} to really fix + the problem + +------------------------------------------------------------------- +Thu Sep 4 11:11:18 CEST 2008 - crrodriguez@suse.de + +- remove "la" file with empty dependency_libs +- disable static libraries +- libpcap is no longer needed for this package +- configure option --with-pf_packet does not exists anymore + +------------------------------------------------------------------- +Wed Mar 14 13:53:59 CET 2007 - anosek@suse.cz + +- fixed permissions of man pages [#254335] + +------------------------------------------------------------------- +Fri Feb 17 14:06:34 CET 2006 - lmichnovic@suse.cz + +- fixed subscription beyond array and uninitialized variable [#151312] + +------------------------------------------------------------------- +Wed Jan 25 21:37:35 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Mon Sep 19 13:57:33 CEST 2005 - mmarek@suse.cz + +- fixed some gcc warnings + +------------------------------------------------------------------- +Thu Nov 18 01:56:50 CET 2004 - ro@suse.de + +- fixed file list + +------------------------------------------------------------------- +Wed Aug 04 16:11:46 CEST 2004 - postadal@suse.cz + +- updated to version 1.1.2.1 + +------------------------------------------------------------------- +Wed Feb 11 13:33:44 CET 2004 - postadal@suse.cz + +- removed compiled files from /usr/share/doc/packages/libnet/sample + +------------------------------------------------------------------- +Tue Feb 10 11:20:01 CET 2004 - postadal@suse.cz + +- updated to version 1.1.1 +- removed obsoleted patches: autoconf-fix.diff, samples.diff +- fixed code that broke strict aliasing + +------------------------------------------------------------------- +Sun Jan 11 09:41:45 CET 2004 - adrian@suse.de + +- add %run_ldconfig + +------------------------------------------------------------------- +Wed Aug 13 18:59:35 CEST 2003 - mjancar@suse.cz + +- build also shared library + +------------------------------------------------------------------- +Thu Jul 24 19:37:25 CEST 2003 - meissner@suse.de + +- honor detected endianess. + +------------------------------------------------------------------- +Thu Jul 24 13:51:33 CEST 2003 - postadal@suse.cz + +- update to version 1.1.0 + +------------------------------------------------------------------- +Mon Nov 11 12:59:41 CET 2002 - postadal@suse.cz + +- fixed deprecated multiline string literals + +------------------------------------------------------------------- +Wed Jan 9 13:02:28 CET 2002 - cihlar@suse.cz + +- use %{_libdir} + +------------------------------------------------------------------- +Wed Feb 14 12:38:15 CET 2001 - cihlar@suse.cz + +- update to version 1.0.2a +- clean up spec file + +------------------------------------------------------------------- +Thu Nov 16 22:40:56 CET 2000 - grimmer@suse.de + +- initial package (version 1.0.1b) + diff --git a/libnet.spec b/libnet.spec new file mode 100644 index 0000000..caeca6f --- /dev/null +++ b/libnet.spec @@ -0,0 +1,118 @@ +# +# spec file for package libnet +# +# Copyright (c) 2023 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 libname libnet9 +Name: libnet +Version: 1.3 +Release: 0 +Summary: A C Library for Portable Packet Creation +License: BSD-3-Clause +Group: Development/Libraries/C and C++ +URL: https://codedocs.xyz/libnet/libnet/ +Source0: https://github.com/libnet/libnet/releases/download/v%{version}/libnet-%{version}.tar.gz +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: doxygen +BuildRequires: libtool + +%description +Libnet is an API to help with the construction and handling of network +packets. It provides a portable framework for low-level network packet +writing and handling. Libnet includes packet creation at the IP layer +and at the link layer as well as a host of supplementary and +complementary functionality. Libnet is very useful for writing network +tools and network test code. See the man page and sample test code for +more detailed information. + +%package -n %{libname} +Summary: A C Library for Portable Packet Creation +Group: Development/Libraries/C and C++ + +%description -n %{libname} +Libnet is an API to help with the construction and handling of network +packets. It provides a portable framework for low-level network packet +writing and handling. Libnet includes packet creation at the IP layer +and at the link layer as well as a host of supplementary and +complementary functionality. Libnet is very useful for writing network +tools and network test code. See the man page and sample test code for +more detailed information. + +%package devel +Summary: Devel files for libnet +Group: Development/Libraries/C and C++ +Requires: %{libname} = %{version} + +%description devel +Libnet is an API to help with the construction and handling of network +packets. This package contains devel files. + +%package doc +Summary: Documentation for libnet +Group: Development/Libraries/C and C++ + +%description doc +Libnet is an API to help with the construction and handling of network +packets. This package contains documentation. + +%prep +%autosetup -p1 + +rm -rf sample/win32 +# HACK: to have samples/ dir untouched and ready for installation +cp -r sample sample_doc + +%build +# no configure in a tarball +CFLAGS="%{optflags} -Wall -Wno-unused" \ +%configure \ + --disable-static \ + --with-pic \ + --with-link-layer=linux +%make_build + +%install +%make_install +find %{buildroot} -type f -name "*.la" -delete -print +install -d -m 755 %{buildroot}/%{_bindir} +install -m 755 libnet-config %{buildroot}/%{_bindir} + +rm -rf sample/ +# HACK: rename untouched dir back +mv sample_doc sample +find doc/ -name "Makefile*" -o -name ".libs" | xargs rm -rf +rm -rf %{buildroot}/usr/share/doc/%{name} + +%post -n %{libname} -p /sbin/ldconfig +%postun -n %{libname} -p /sbin/ldconfig + +%files -n %{libname} +%license LICENSE +%{_libdir}/libnet.so.* + +%files devel +%{_bindir}/libnet-config +%{_includedir}/libnet* +%{_libdir}/libnet.so +%{_mandir}/man1/* +%{_mandir}/man3/* +%{_libdir}/pkgconfig/libnet.pc + +%files doc +%doc doc/* sample + +%changelog