Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 9923 Details for
Bug 18330
Adding TARPIT target in iptables-1.2.7a
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
05_all_tarpit.patch
05_all_tarpit.patch (text/plain), 2.23 KB, created by
Nicolas Lidzborski
on 2003-03-27 19:25:24 UTC
(
hide
)
Description:
05_all_tarpit.patch
Filename:
MIME Type:
Creator:
Nicolas Lidzborski
Created:
2003-03-27 19:25:24 UTC
Size:
2.23 KB
patch
obsolete
>diff -r -u -P iptables-1.2.7a/extensions/Makefile~ iptables-1.2.7a-tarpit/extensions/Makefile >--- iptables-1.2.7a/extensions/Makefile~ 2003-03-27 16:05:51.000000000 -0800 >+++ iptables-1.2.7a/extensions/Makefile 2003-03-27 16:06:10.000000000 -0800 >@@ -1,6 +1,6 @@ > #! /usr/bin/make > >-PF_EXT_SLIB:=ah conntrack dscp ecn esp helper icmp length limit mac mark multiport owner pkttype standard state tcp tcpmss tos ttl udp stealth unclean DNAT DSCP ECN LOG MARK MASQUERADE MIRROR REDIRECT REJECT SAME SNAT TCPMSS TOS ULOG >+PF_EXT_SLIB:=ah conntrack dscp ecn esp helper icmp length limit mac mark multiport owner pkttype standard state tcp tcpmss tos ttl udp stealth unclean DNAT DSCP ECN LOG MARK MASQUERADE MIRROR REDIRECT REJECT SAME SNAT TARPIT TCPMSS TOS ULOG > PF6_EXT_SLIB:=eui64 icmpv6 length limit mac mark multiport owner standard tcp udp LOG MARK > > # The following may not be present, but compile them anyway. >diff -r -u -P iptables-1.2.7a/extensions/libipt_TARPIT.c iptables-1.2.7a-tarpit/extensions/libipt_TARPIT.c >--- iptables-1.2.7a/extensions/libipt_TARPIT.c Wed Dec 31 16:00:00 1969 >+++ iptables-1.2.7a/extensions/libipt_TARPIT.c Sat Apr 6 10:08:11 2002 >@@ -0,0 +1,67 @@ >+/* Shared library add-on to iptables for TARPIT support */ >+#include <stdio.h> >+#include <getopt.h> >+#include <iptables.h> >+ >+static void >+help(void) >+{ >+ fputs( >+"TARPIT takes no options\n" >+"\n", stdout); >+} >+ >+static struct option opts[] = { >+ { 0 } >+}; >+ >+static void >+init(struct ipt_entry_target *t, unsigned int *nfcache) >+{ >+ /* Can't cache this */ >+ *nfcache |= NFC_UNKNOWN; >+} >+ >+static int >+parse(int c, char **argv, int invert, unsigned int *flags, >+ const struct ipt_entry *entry, >+ struct ipt_entry_target **target) >+{ >+ return 0; >+} >+ >+static void final_check(unsigned int flags) >+{ >+} >+ >+static void >+print(const struct ipt_ip *ip, >+ const struct ipt_entry_target *target, >+ int numeric) >+{ >+} >+ >+static void save(const struct ipt_ip *ip, const struct ipt_entry_target *target) >+{ >+} >+ >+static >+struct iptables_target tarpit >+= { NULL, >+ "TARPIT", >+ IPTABLES_VERSION, >+ IPT_ALIGN(0), >+ IPT_ALIGN(0), >+ &help, >+ &init, >+ &parse, >+ &final_check, >+ &print, >+ &save, >+ opts >+}; >+ >+void _init(void) >+{ >+ register_target(&tarpit); >+}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 18330
: 9923