diff options
author | agc <agc> | 2004-01-08 17:55:15 +0000 |
---|---|---|
committer | agc <agc> | 2004-01-08 17:55:15 +0000 |
commit | 4c4143b40c478f42baec3f6d1f23020962c94c1a (patch) | |
tree | b21d6513e6bf10866534537e40530e1dee19e765 /security/fragroute/patches | |
parent | f82fc8e341d0c8d137656b675b607b5bb8584120 (diff) | |
download | pkgsrc-4c4143b40c478f42baec3f6d1f23020962c94c1a.tar.gz |
Initial import of fragroute-1.2 into the NetBSD Packages Collection,
provided in PR 24022 by ISIHARA Takanori. This was taken from the
FreeBSD Packages Collection and ported to NetBSD by ISIHARA Takanori.
Additional fixes to make the package compile on NetBSD by myself,
along with fixes for the build infrastructure (since libevent is part
of NetBSD-current).
"Fragroute intercepts, modifies, and rewrites egress traffic destined
for a specified host, implementing most of the attacks described in the
Secure Networks "Insertion, Evasion, and Denial of Service: Eluding
Network Intrusion Detection" paper of January 1998.
It features a simple ruleset language to delay, duplicate, drop,
fragment, overlap, print, reorder, segment, source-route, or otherwise
monkey with all outbound packets destined for a target host, with
minimal support for randomized or probabilistic behaviour.
This tool was written in good faith to aid in the testing of network
intrusion detection systems, firewalls, and basic TCP/IP stack
behaviour. Please do not abuse this software."
Diffstat (limited to 'security/fragroute/patches')
-rw-r--r-- | security/fragroute/patches/patch-aa | 24 | ||||
-rw-r--r-- | security/fragroute/patches/patch-ab | 13 |
2 files changed, 37 insertions, 0 deletions
diff --git a/security/fragroute/patches/patch-aa b/security/fragroute/patches/patch-aa new file mode 100644 index 00000000000..c7f2293746d --- /dev/null +++ b/security/fragroute/patches/patch-aa @@ -0,0 +1,24 @@ +$NetBSD: patch-aa,v 1.1.1.1 2004/01/08 17:55:15 agc Exp $ + +--- mod.c 2004/01/08 17:33:51 1.1 ++++ mod.c 2004/01/08 17:41:16 +@@ -151,10 +151,19 @@ + { + struct rule *rule; + ++#ifdef __NetBSD__ ++ TAILQ_FOREACH_REVERSE(rule, &rules, head, next) { ++ if (rule->mod->close != NULL) ++ rule->data = rule->mod->close(rule->data); ++ TAILQ_REMOVE(&rules, rule, next); ++ free(rule); ++ } ++#else + TAILQ_FOREACH_REVERSE(rule, &rules, next, head) { + if (rule->mod->close != NULL) + rule->data = rule->mod->close(rule->data); + TAILQ_REMOVE(&rules, rule, next); + free(rule); + } ++#endif + } diff --git a/security/fragroute/patches/patch-ab b/security/fragroute/patches/patch-ab new file mode 100644 index 00000000000..a5884c21cc0 --- /dev/null +++ b/security/fragroute/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1.1.1 2004/01/08 17:55:15 agc Exp $ + +--- pkt.h 2004/01/08 17:49:28 1.1 ++++ pkt.h 2004/01/08 17:50:01 +@@ -68,4 +68,8 @@ + void pktq_shuffle(rand_t *r, struct pktq *pktq); + struct pkt *pktq_random(rand_t *r, struct pktq *pktq); + ++#ifndef TAILQ_END ++#define TAILQ_END(head) NULL ++#endif ++ + #endif /* PKT_H */ |