summaryrefslogtreecommitdiffstats
path: root/network/dsniff/patches/17_checksum.patch
diff options
context:
space:
mode:
author Matteo Bernardini2021-02-27 11:29:41 +0100
committer Matteo Bernardini2021-02-27 11:29:41 +0100
commit3e512aae2bdd9aff3a4ba418b7de58debeb48c7e (patch)
treebb633b832334a8634697701d29af0cf5343c9779 /network/dsniff/patches/17_checksum.patch
parent9aa1498acb0841d4ce656319a4de5cc157b4e2ed (diff)
downloadslackbuilds-3e512aae2bdd9aff3a4ba418b7de58debeb48c7e.tar.gz
20210227.1 global branch merge.current-20210227.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'network/dsniff/patches/17_checksum.patch')
-rw-r--r--network/dsniff/patches/17_checksum.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/network/dsniff/patches/17_checksum.patch b/network/dsniff/patches/17_checksum.patch
new file mode 100644
index 0000000000..96eb3cc80f
--- /dev/null
+++ b/network/dsniff/patches/17_checksum.patch
@@ -0,0 +1,29 @@
+Author: Piotr Engelking <inkerman42@gmail.com>
+Description: Disable the filtering packets with incorrect checksum.
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=372536
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+
+--- a/urlsnarf.c
++++ b/urlsnarf.c
+@@ -245,6 +245,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) {
+@@ -305,6 +306,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 */