Author: pluto
Date: Thu Jun 16 23:39:53 2005
New Revision: 6109

Modified:
   netfilter-2.6/iptables/trunk/extensions/libipt_osf.c
Log:
- libipt_osf.c: changes to support connector notifications (Evgeniy Polyakov).


Modified: netfilter-2.6/iptables/trunk/extensions/libipt_osf.c
==============================================================================
--- netfilter-2.6/iptables/trunk/extensions/libipt_osf.c        (original)
+++ netfilter-2.6/iptables/trunk/extensions/libipt_osf.c        Thu Jun 16 
23:39:53 2005
@@ -35,14 +35,15 @@
 
 static void help(void)
 {
-       printf("OS fingerprint match v%s options:\n"
+       printf("OS fingerprint match options:\n"
                "--genre [!] string     Match a OS genre by passive 
fingerprinting.\n"
                "--smart                Use some smart extensions to determine 
OS (do not use TTL).\n"
                "--log level            Log all(or only first) determined 
genres even if "
                                        "they do not match desired one. "
                                        "Level may be 0(all) or 1(only first 
entry).\n"
                "--netlink              Log through netlink(NETLINK_NFLOG).\n",
-               IPTABLES_VERSION);
+               "--connector            Log through kernel connector [in 
2.6.12-mm+].\n"
+               );
 }
 
 
@@ -51,6 +52,7 @@
        { .name = "smart",      .has_arg = 0, .flag = 0, .val = '2' },
        { .name = "log",        .has_arg = 1, .flag = 0, .val = '3' },
        { .name = "netlink",    .has_arg = 0, .flag = 0, .val = '4' },
+       { .name = "connector",  .has_arg = 0, .flag = 0, .val = '5' },
        { .name = 0 }
 };
 
@@ -97,10 +99,16 @@
                        break;
                case '4': /* --netlink */
                        if (*flags & IPT_OSF_NETLINK)
-                               exit_error(PARAMETER_PROBLEM, "Can't specify 
multiple smart parameter");
+                               exit_error(PARAMETER_PROBLEM, "Can't specify 
multiple netlink parameter");
                        *flags |= IPT_OSF_NETLINK;
                        info->flags |= IPT_OSF_NETLINK;
                        break;
+               case '5': /* --connector */
+                       if (*flags & IPT_OSF_CONNECTOR)
+                               exit_error(PARAMETER_PROBLEM, "Can't specify 
multiple connector parameter");
+                       *flags |= IPT_OSF_CONNECTOR;
+                       info->flags |= IPT_OSF_CONNECTOR;
+                       break;
                default:
                        return 0;
        }
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to