forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A huge rewrite in libpcap was introduced by dc14a7babca1 ("rpcap: have the server tell the client its byte order.") [0]. The patch "201-space_optimization.patch" does not apply at all anymore. So remove it. Refresh: - 100-no-openssl.patch - 102-skip-manpages.patch Update the "300-Add-support-for-B.A.T.M.A.N.-Advanced.patch" with latest PR [1]. old ipkg size: 90964 bin/packages/mips_24kc/base/libpcap1_1.10.1-5_mips_24kc.ipk new ipkg size: 93340 bin/packages/mips_24kc/base/libpcap1_1.10.2-1_mips_24kc.ipk [0] - the-tcpdump-group/libpcap@dc14a7b [1] - the-tcpdump-group/libpcap#980 Signed-off-by: Nick Hainke <[email protected]>
- Loading branch information
1 parent
4848d1c
commit ac989a1
Showing
6 changed files
with
21 additions
and
47 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -8,12 +8,12 @@ | |
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=libpcap | ||
PKG_VERSION:=1.10.1 | ||
PKG_RELEASE:=$(AUTORELEASE) | ||
PKG_VERSION:=1.10.2 | ||
PKG_RELEASE:=1 | ||
|
||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | ||
PKG_SOURCE_URL:=https://www.tcpdump.org/release/ | ||
PKG_HASH:=ed285f4accaf05344f90975757b3dbfe772ba41d1c401c2648b7fa45b711bdd4 | ||
PKG_HASH:=db6d79d4ad03b8b15fb16c42447d093ad3520c0ec0ae3d331104dcfb1ce77560 | ||
|
||
PKG_MAINTAINER:=Felix Fietkau <[email protected]> | ||
PKG_LICENSE:=BSD-3-Clause | ||
|
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
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
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
package/libs/libpcap/patches/210-add-rpcapd-in-linux-support.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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From b86b960fbd5c215c9c0f43544935b9a25d9445c5 Mon Sep 17 00:00:00 2001 | ||
From 3d8d268320d2381021a409ff8d03533698dd6242 Mon Sep 17 00:00:00 2001 | ||
From: =?UTF-8?q?Linus=20L=C3=BCssing?= <[email protected]> | ||
Date: Mon, 23 Nov 2020 00:38:22 +0100 | ||
Subject: [PATCH] Add support for B.A.T.M.A.N. Advanced | ||
|
@@ -220,16 +220,16 @@ Signed-off-by: Linus Lüssing <[email protected]> | |
#endif | ||
--- a/gencode.c | ||
+++ b/gencode.c | ||
@@ -74,6 +74,8 @@ | ||
#include "atmuni31.h" | ||
@@ -60,6 +60,8 @@ | ||
#include "sunatmpos.h" | ||
#include "pflog.h" | ||
#include "ppp.h" | ||
+#include "batadv_packet.h" | ||
+#include "batadv_legacy_packet.h" | ||
#include "pcap/sll.h" | ||
#include "pcap/ipnet.h" | ||
#include "arcnet.h" | ||
@@ -9501,6 +9503,168 @@ gen_geneve(compiler_state_t *cstate, bpf | ||
@@ -9436,6 +9438,168 @@ gen_geneve(compiler_state_t *cstate, bpf | ||
return b1; | ||
} | ||
|
||
|
@@ -400,7 +400,7 @@ Signed-off-by: Linus Lüssing <[email protected]> | |
static struct block * | ||
--- a/gencode.h | ||
+++ b/gencode.h | ||
@@ -346,6 +346,9 @@ struct block *gen_pppoes(compiler_state_ | ||
@@ -358,6 +358,9 @@ struct block *gen_pppoes(compiler_state_ | ||
|
||
struct block *gen_geneve(compiler_state_t *, bpf_u_int32, int); | ||
|
||
|
@@ -412,15 +412,15 @@ Signed-off-by: Linus Lüssing <[email protected]> | |
struct block *gen_atmtype_abbrev(compiler_state_t *, int); | ||
--- a/grammar.y.in | ||
+++ b/grammar.y.in | ||
@@ -347,6 +347,7 @@ DIAG_OFF_BISON_BYACC | ||
@@ -375,6 +375,7 @@ DIAG_OFF_BISON_BYACC | ||
%type <i> mtp2type | ||
%type <blk> mtp3field | ||
%type <blk> mtp3fieldvalue mtp3value mtp3listvalue | ||
+%type <rblk> pbatadv | ||
|
||
|
||
%token DST SRC HOST GATEWAY | ||
@@ -365,7 +366,7 @@ DIAG_OFF_BISON_BYACC | ||
@@ -393,7 +394,7 @@ DIAG_OFF_BISON_BYACC | ||
%token LEN | ||
%token IPV6 ICMPV6 AH ESP | ||
%token VLAN MPLS | ||
|
@@ -429,7 +429,7 @@ Signed-off-by: Linus Lüssing <[email protected]> | |
%token ISO ESIS CLNP ISIS L1 L2 IIH LSP SNP CSNP PSNP | ||
%token STP | ||
%token IPX | ||
@@ -592,11 +593,40 @@ other: pqual TK_BROADCAST { CHECK_PTR_ | ||
@@ -620,11 +621,40 @@ other: pqual TK_BROADCAST { CHECK_PTR_ | ||
| PPPOES { CHECK_PTR_VAL(($$ = gen_pppoes(cstate, 0, 0))); } | ||
| GENEVE pnum { CHECK_PTR_VAL(($$ = gen_geneve(cstate, $2, 1))); } | ||
| GENEVE { CHECK_PTR_VAL(($$ = gen_geneve(cstate, 0, 0))); } | ||
|
@@ -556,15 +556,15 @@ Signed-off-by: Linus Lüssing <[email protected]> | |
} | ||
--- a/pcap-filter.manmisc.in | ||
+++ b/pcap-filter.manmisc.in | ||
@@ -98,6 +98,7 @@ protos are: | ||
@@ -98,6 +98,7 @@ protocols are: | ||
.BR arp , | ||
.BR rarp , | ||
.BR decnet , | ||
+.BR batadv , | ||
.BR sctp , | ||
.B tcp | ||
and | ||
.BR udp . | ||
@@ -361,7 +362,7 @@ True if the packet is an IPv6 multicast | ||
@@ -400,7 +401,7 @@ True if the packet is an IPv6 multicast | ||
.IP "\fBether proto \fIprotocol\fR" | ||
True if the packet is of ether type \fIprotocol\fR. | ||
\fIProtocol\fP can be a number or one of the names | ||
|
@@ -573,7 +573,7 @@ Signed-off-by: Linus Lüssing <[email protected]> | |
\fBipx\fP, \fBiso\fP, \fBlat\fP, \fBloopback\fP, \fBmopdl\fP, \fBmoprc\fP, \fBnetbeui\fP, | ||
\fBrarp\fP, \fBsca\fP or \fBstp\fP. | ||
Note these identifiers (except \fBloopback\fP) are also keywords | ||
@@ -415,7 +416,7 @@ the filter checks for the IPX etype in a | ||
@@ -454,7 +455,7 @@ the filter checks for the IPX etype in a | ||
DSAP in the LLC header, the 802.3-with-no-LLC-header encapsulation of | ||
IPX, and the IPX etype in a SNAP frame. | ||
.RE | ||
|
@@ -582,7 +582,7 @@ Signed-off-by: Linus Lüssing <[email protected]> | |
Abbreviations for: | ||
.in +.5i | ||
.nf | ||
@@ -752,6 +753,36 @@ For example: | ||
@@ -792,6 +793,36 @@ For example: | ||
filters IPv4 protocol encapsulated in Geneve with VNI 0xb. This will | ||
match both IPv4 directly encapsulated in Geneve as well as IPv4 contained | ||
inside an Ethernet frame. | ||
|
@@ -621,7 +621,7 @@ Signed-off-by: Linus Lüssing <[email protected]> | |
\fIProtocol\fP can be a number or one of the names | ||
--- a/pcap/namedb.h | ||
+++ b/pcap/namedb.h | ||
@@ -69,6 +69,8 @@ PCAP_API int pcap_nametoportrange(const | ||
@@ -70,6 +70,8 @@ PCAP_API int pcap_nametoportrange(const | ||
PCAP_API int pcap_nametoproto(const char *); | ||
PCAP_API int pcap_nametoeproto(const char *); | ||
PCAP_API int pcap_nametollc(const char *); | ||
|
@@ -632,7 +632,7 @@ Signed-off-by: Linus Lüssing <[email protected]> | |
* Also, pcap_nametoport() returns the protocol along with the port number. | ||
--- a/scanner.l | ||
+++ b/scanner.l | ||
@@ -344,6 +344,7 @@ mpls return MPLS; | ||
@@ -347,6 +347,7 @@ mpls return MPLS; | ||
pppoed return PPPOED; | ||
pppoes return PPPOES; | ||
geneve return GENEVE; | ||
|