diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2015-09-29 12:30:58 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2015-09-29 12:31:09 +0000 |
commit | 526d616a09c1191b1b8ed13998538af2c2040d89 (patch) | |
tree | 44b52145e0a7f38a1530db765d9e72e669fec861 /testing/dsniff/08_checksum.patch | |
parent | 0dba7bc25a37335d5bd351b3d073aff1e5c9eef7 (diff) | |
download | aports-526d616a09c1191b1b8ed13998538af2c2040d89.tar.bz2 aports-526d616a09c1191b1b8ed13998538af2c2040d89.tar.xz |
testing/dsniff: new aport
Diffstat (limited to 'testing/dsniff/08_checksum.patch')
-rw-r--r-- | testing/dsniff/08_checksum.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/dsniff/08_checksum.patch b/testing/dsniff/08_checksum.patch new file mode 100644 index 0000000000..44ece65f61 --- /dev/null +++ b/testing/dsniff/08_checksum.patch @@ -0,0 +1,25 @@ +Author: Piotr Engelking <inkerman42@gmail.com> +Description: Disable the filtering packets with incorrect checksum (Closes: #372536). +--- a/urlsnarf.c 2011-06-19 17:15:10.559999375 -0500 ++++ b/urlsnarf.c 2011-06-19 17:15:18.023999373 -0500 +@@ -200,6 +200,7 @@ + extern char *optarg; + extern int optind; + int c; ++ struct nids_chksum_ctl chksum_ctl; + + while ((c = getopt(argc, argv, "i:p:nvh?V")) != -1) { + switch (c) { +@@ -260,6 +261,12 @@ + } + } + ++ chksum_ctl.netaddr = 0; ++ chksum_ctl.mask = 0; ++ chksum_ctl.action = NIDS_DONT_CHKSUM; ++ ++ nids_register_chksum_ctl(&chksum_ctl, 1); ++ + nids_run(); + + /* NOTREACHED */ |