diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-12-18 19:26:51 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-12-18 19:26:51 +0100 |
commit | 163e7965f05a281d653a9eaa72161172e35fd5fc (patch) | |
tree | 68433443b71118a83da66716b67400fcb2f6bb0a /package/ppp/utils | |
parent | 07b805f8a729e5fe064fc874cf1821a24378bb93 (diff) |
make pppoe over atm usable on ag241
- bridging nas0 and eth0 although works fine
need to add pre-up scripts to automate..
Diffstat (limited to 'package/ppp/utils')
-rw-r--r-- | package/ppp/utils/pfc.c | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/package/ppp/utils/pfc.c b/package/ppp/utils/pfc.c deleted file mode 100644 index 2344d56ed..000000000 --- a/package/ppp/utils/pfc.c +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Taken from fli4l 3.0 - * Make sure you compile it against the same libpcap version used in OpenADK - */ - -#include <stdlib.h> -#include <sys/types.h> -#include <sys/time.h> -#include <string.h> - -#include <linux/types.h> -#include <linux/ppp_defs.h> - -#include <pcap.h> -#include <pcap-bpf.h> - -int main (int argc, char ** argv) -{ - pcap_t *pc; /* Fake struct pcap so we can compile expr */ - struct bpf_program filter; /* Filter program for link-active pkts */ - u_int32_t netmask=0; - - int dflag = 3; - if (argc == 4) - { - if (!strcmp (argv[1], "-d")) - { - dflag = atoi (argv[2]); - argv += 2; - argc -=2; - } - } - if (argc != 2) - { - printf ("usage; %s [ -d <debug_level> ] expression\n", argv[0]); - return 1; - } - - pc = pcap_open_dead(DLT_PPP_PPPD, PPP_HDRLEN); - if (pcap_compile(pc, &filter, argv[1], 1, netmask) == 0) - { - printf ("#\n# Expression: %s\n#\n", argv[1]); - bpf_dump (&filter, dflag); - return 0; - } - else - { - printf("error in active-filter expression: %s\n", pcap_geterr(pc)); - } - return 1; -} |