]> git.pld-linux.org Git - packages/iptables.git/blob - grsecurity-1.2.7a-iptables.patch
- require llh 2.6.7.0-3 (previous versions had broken ip{,6}t API)
[packages/iptables.git] / grsecurity-1.2.7a-iptables.patch
1 diff -urN iptables-1.2.7a/extensions/Makefile iptables-1.2.7a-new/extensions/Makefile
2 --- iptables-1.2.7a/extensions/Makefile 2002-08-09 03:44:10.000000000 -0400
3 +++ iptables-1.2.7a-new/extensions/Makefile     2002-09-09 12:52:50.000000000 -0400
4 @@ -5,7 +5,7 @@
5  # header files are present in the include/linux directory of this iptables
6  # package (HW)
7  #
8 -PF_EXT_SLIB:=ah conntrack dscp ecn esp helper icmp iplimit length limit mac mark multiport owner pkttype rpc standard state tcp tcpmss tos ttl udp unclean DNAT DSCP ECN LOG MARK MASQUERADE MIRROR REDIRECT REJECT SAME SNAT TARPIT TCPMSS TOS TTL ULOG
9 +PF_EXT_SLIB:=ah conntrack dscp ecn esp helper icmp iplimit length limit mac mark multiport owner pkttype rpc standard state tcp tcpmss tos ttl udp stealth unclean DNAT DSCP ECN LOG MARK MASQUERADE MIRROR REDIRECT REJECT SAME SNAT TARPIT TCPMSS TOS TTL ULOG
10  PF6_EXT_SLIB:=eui64 hl icmpv6 length limit mac mark multiport owner standard tcp udp HL LOG MARK
11  
12  # Optionals
13 diff -urN iptables-1.2.7a/extensions/libipt_stealth.c iptables-1.2.7a-new/extensions/libipt_stealth.c
14 --- iptables-1.2.7a/extensions/libipt_stealth.c 1969-12-31 19:00:00.000000000 -0500
15 +++ iptables-1.2.7a-new/extensions/libipt_stealth.c     2002-09-10 16:36:24.000000000 -0400
16 @@ -0,0 +1,64 @@
17 +/* Shared library add-on to iptables to add stealth support.
18 + * Copyright (C) 2002 Brad Spengler  <spender@grsecurity.net>
19 + * This netfilter module is licensed under the GNU GPL.
20 + */
21 +
22 +#include <stdio.h>
23 +#include <netdb.h>
24 +#include <stdlib.h>
25 +#include <getopt.h>
26 +#include <iptables.h>
27 +
28 +/* Function which prints out usage message. */
29 +static void
30 +help(void)
31 +{
32 +       printf("stealth v%s takes no options\n\n", IPTABLES_VERSION);
33 +}
34 +
35 +static struct option opts[] = {
36 +       {0}
37 +};
38 +
39 +/* Initialize the match. */
40 +static void
41 +init(struct ipt_entry_match *m, unsigned int *nfcache)
42 +{
43 +       *nfcache |= NFC_UNKNOWN;
44 +}
45 +
46 +static int
47 +parse(int c, char **argv, int invert, unsigned int *flags,
48 +       const struct ipt_entry *entry,
49 +       unsigned int *nfcache,
50 +       struct ipt_entry_match **match)
51 +{
52 +       return 0;
53 +}
54 +
55 +static void
56 +final_check(unsigned int flags)
57 +{
58 +       return;
59 +}
60 +
61 +static
62 +struct iptables_match stealth = {
63 +       NULL,
64 +       "stealth",
65 +       IPTABLES_VERSION,
66 +       IPT_ALIGN(0),
67 +       IPT_ALIGN(0),
68 +       &help,
69 +       &init, 
70 +       &parse,
71 +       &final_check,
72 +       NULL,
73 +       NULL,
74 +       opts  
75 +};
76 +
77 +void _init(void)
78 +{
79 +       register_match(&stealth);
80 +}
This page took 0.084051 seconds and 3 git commands to generate.