-
Notifications
You must be signed in to change notification settings - Fork 714
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The previous recipe was building a release candidate from 2014. Switch to the official git repo which is currently maintained and use the v1.2 release instead. The extra patch fixes build on musl. Signed-off-by: Beniamin Sandu <[email protected]> Signed-off-by: Khem Raj <[email protected]>
- Loading branch information
1 parent
b07db09
commit 0e30cdf
Showing
4 changed files
with
50 additions
and
82 deletions.
There are no files selected for viewing
58 changes: 0 additions & 58 deletions
58
...ipes-connectivity/libnet/libnet/0001-Support-musl-libc-remove-support-for-glibc-2.1.patch
This file was deleted.
Oops, something went wrong.
31 changes: 31 additions & 0 deletions
31
...onnectivity/libnet/libnet/0001-Use-standard-int64_t-instead-of-__int64_t-for-mingw-.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
From a1659e261888bdbed51803132d52d9a6c6803c8a Mon Sep 17 00:00:00 2001 | ||
From: Joachim Nilsson <[email protected]> | ||
Date: Sat, 19 Oct 2019 12:26:26 +0200 | ||
Subject: [PATCH] Use standard int64_t instead of __int64_t for mingw cross | ||
build | ||
|
||
Signed-off-by: Joachim Nilsson <[email protected]> | ||
--- | ||
include/libnet/libnet-structures.h | 6 +++--- | ||
1 file changed, 3 insertions(+), 3 deletions(-) | ||
|
||
diff --git a/include/libnet/libnet-structures.h b/include/libnet/libnet-structures.h | ||
index 6084caa..34fffc6 100644 | ||
--- a/include/libnet/libnet-structures.h | ||
+++ b/include/libnet/libnet-structures.h | ||
@@ -49,9 +49,9 @@ struct libnet_port_list_chain | ||
/* libnet statistics structure */ | ||
struct libnet_stats | ||
{ | ||
- __int64_t packets_sent; /* packets sent */ | ||
- __int64_t packet_errors; /* packets errors */ | ||
- __int64_t bytes_written; /* bytes written */ | ||
+ int64_t packets_sent; /* packets sent */ | ||
+ int64_t packet_errors; /* packets errors */ | ||
+ int64_t bytes_written; /* bytes written */ | ||
}; | ||
|
||
|
||
-- | ||
2.25.1 | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
SUMMARY = "A packet dissection and creation library" | ||
HOMEPAGE = "https://github.com/libnet/libnet" | ||
|
||
SECTION = "libs" | ||
|
||
LICENSE = "BSD-2-Clause" | ||
LIC_FILES_CHKSUM = "file://LICENSE;md5=07f291bf6e78efa05cec668cf6a09acc" | ||
|
||
DEPENDS = "libpcap" | ||
|
||
SRC_URI = "git://github.com/libnet/libnet.git;protocol=https;branch=master \ | ||
file://0001-Use-standard-int64_t-instead-of-__int64_t-for-mingw-.patch" | ||
|
||
SRC_URI[sha256sum] = "1e9e9054d688b059bcbaf878d8c4fbf69bfc0c9386cd4e7779fbb53339050d2e" | ||
SRCREV = "deeeeaeb84f8bc5d2299913d4ccf53d0d4c26966" | ||
|
||
S = "${WORKDIR}/git" | ||
|
||
inherit autotools binconfig |