diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2009-05-21 10:49:21 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2009-05-21 10:49:21 +0000 |
commit | d21f38210aefa9ce3005540b1a3ee079633935b6 (patch) | |
tree | 6e714d868be16a9f75a400aa3bfc2e11c1c70421 /package/ppp/patches/310-precompile_filter.patch | |
parent | b97b54291da149cf68a6db878aae2f92962e1cad (diff) | |
download | master-31e0f0ae-d21f38210aefa9ce3005540b1a3ee079633935b6.tar.gz master-31e0f0ae-d21f38210aefa9ce3005540b1a3ee079633935b6.tar.bz2 master-31e0f0ae-d21f38210aefa9ce3005540b1a3ee079633935b6.zip |
refresh patches
SVN-Revision: 15958
Diffstat (limited to 'package/ppp/patches/310-precompile_filter.patch')
-rw-r--r-- | package/ppp/patches/310-precompile_filter.patch | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/package/ppp/patches/310-precompile_filter.patch b/package/ppp/patches/310-precompile_filter.patch index ca4b6c2f95..c35b4c2241 100644 --- a/package/ppp/patches/310-precompile_filter.patch +++ b/package/ppp/patches/310-precompile_filter.patch @@ -1,7 +1,6 @@ -diff -Naur ppp-2.4.4.orig/pppd/Makefile.linux ppp-2.4.4/pppd/Makefile.linux ---- ppp-2.4.4.orig/pppd/Makefile.linux 2009-05-07 22:31:54.000000000 -0400 -+++ ppp-2.4.4/pppd/Makefile.linux 2009-05-07 22:33:12.000000000 -0400 -@@ -50,6 +50,9 @@ +--- a/pppd/Makefile.linux ++++ b/pppd/Makefile.linux +@@ -50,6 +50,9 @@ MPPE=y # and that the kernel driver support PPP packet filtering. #FILTER=y @@ -11,7 +10,7 @@ diff -Naur ppp-2.4.4.orig/pppd/Makefile.linux ppp-2.4.4/pppd/Makefile.linux # Uncomment the next line to enable multilink PPP (enabled by default) # Linux distributions: Please leave multilink ENABLED in your builds # of pppd! -@@ -175,6 +178,14 @@ +@@ -175,6 +178,14 @@ CFLAGS += -DPPP_FILTER -I$(STAGING_DIR) endif endif @@ -26,9 +25,8 @@ diff -Naur ppp-2.4.4.orig/pppd/Makefile.linux ppp-2.4.4/pppd/Makefile.linux ifdef HAVE_INET6 PPPDSRCS += ipv6cp.c eui64.c HEADERS += ipv6cp.h eui64.h -diff -Naur ppp-2.4.4.orig/pppd/options.c ppp-2.4.4/pppd/options.c ---- ppp-2.4.4.orig/pppd/options.c 2009-05-07 22:25:24.000000000 -0400 -+++ ppp-2.4.4/pppd/options.c 2009-05-07 22:38:28.000000000 -0400 +--- a/pppd/options.c ++++ b/pppd/options.c @@ -57,6 +57,7 @@ #ifdef PPP_FILTER @@ -37,7 +35,7 @@ diff -Naur ppp-2.4.4.orig/pppd/options.c ppp-2.4.4/pppd/options.c /* * There have been 3 or 4 different names for this in libpcap CVS, but * this seems to be what they have settled on... -@@ -160,6 +161,13 @@ +@@ -160,6 +161,13 @@ static int setlogfile __P((char **)); static int loadplugin __P((char **)); #endif @@ -51,7 +49,7 @@ diff -Naur ppp-2.4.4.orig/pppd/options.c ppp-2.4.4/pppd/options.c #ifdef PPP_FILTER static int setpassfilter __P((char **)); static int setactivefilter __P((char **)); -@@ -317,6 +325,14 @@ +@@ -317,6 +325,14 @@ option_t general_options[] = { "set filter for active pkts", OPT_PRIO }, #endif @@ -66,7 +64,7 @@ diff -Naur ppp-2.4.4.orig/pppd/options.c ppp-2.4.4/pppd/options.c #ifdef MAXOCTETS { "maxoctets", o_int, &maxoctets, "Set connection traffic limit", -@@ -1456,6 +1472,29 @@ +@@ -1456,6 +1472,29 @@ callfile(argv) return ok; } @@ -96,9 +94,8 @@ diff -Naur ppp-2.4.4.orig/pppd/options.c ppp-2.4.4/pppd/options.c #ifdef PPP_FILTER /* * setpassfilter - Set the pass filter for packets -diff -Naur ppp-2.4.4.orig/pppd/pcap_pcc.c ppp-2.4.4/pppd/pcap_pcc.c ---- ppp-2.4.4.orig/pppd/pcap_pcc.c 1969-12-31 19:00:00.000000000 -0500 -+++ ppp-2.4.4/pppd/pcap_pcc.c 2009-05-07 22:33:12.000000000 -0400 +--- /dev/null ++++ b/pppd/pcap_pcc.c @@ -0,0 +1,74 @@ +#include <pcap.h> +#include <pcap-bpf.h> @@ -174,9 +171,8 @@ diff -Naur ppp-2.4.4.orig/pppd/pcap_pcc.c ppp-2.4.4/pppd/pcap_pcc.c + fclose (f); + return 0; +} -diff -Naur ppp-2.4.4.orig/pppd/pcap_pcc.h ppp-2.4.4/pppd/pcap_pcc.h ---- ppp-2.4.4.orig/pppd/pcap_pcc.h 1969-12-31 19:00:00.000000000 -0500 -+++ ppp-2.4.4/pppd/pcap_pcc.h 2009-05-07 22:33:12.000000000 -0400 +--- /dev/null ++++ b/pppd/pcap_pcc.h @@ -0,0 +1,7 @@ +#ifndef PCAP_PCC_H +#define PCAP_PCC_H |