gregor herrmann wrote:
On Mon, 19 Sep 2011 01:50:41 +0100, peter green wrote:

patch is attatched

Hm, not really :)
Sorry, really attatched it this time.

Cheers,
gregor


Only in filtergen-0.12.4/: fgadm.conf
Only in filtergen-0.12.4/: filtergen.spec
diff -ur filtergen-0.12.4//resolver.c filtergen-0.12.4.new//resolver.c
--- filtergen-0.12.4//resolver.c	2004-06-22 05:09:24.000000000 +0000
+++ filtergen-0.12.4.new//resolver.c	2011-09-19 00:48:34.000000000 +0000
@@ -43,10 +43,10 @@
             asprintf(&n->icmptype, "%s", i->i_type);
         } else {
 	    /* check that the icmptype is a number if we can't resolve it */
-	    long m;
+	    //long m;
 	    char * e;
 
-	    m = strtol(n->icmptype, &e, 10);
+	    strtol(n->icmptype, &e, 10);
 	    if (*e) {
 		fprintf(stderr, "warning: suspicious icmp type encountered: %s\n", n->icmptype);
 	    }
@@ -79,10 +79,10 @@
 	    asprintf(&n->port_min, "%d", ntohs(s->s_port));
 	} else {
 	    /* check that the port is a number if we can't resolve it */
-	    long m;
+	    //long m;
 	    char * e;
 
-	    m = strtol(n->port_min, &e, 10);
+	    strtol(n->port_min, &e, 10);
 	    if (*e) {
 		fprintf(stderr, "warning: suspicious port name encountered: %s\n", n->port_min);
 	    }
@@ -95,10 +95,10 @@
 	    asprintf(&n->port_max, "%d", ntohs(s->s_port));
 	} else {
 	    /* check that the port is a number if we can't resolve it */
-	    long m;
+	    //long m;
 	    char * e;
 
-	    m = strtol(n->port_max, &e, 10);
+	    strtol(n->port_max, &e, 10);
 	    if (*e) {
 		fprintf(stderr, "warning: suspicious port name encountered: %s\n", n->port_max);
 	    }
@@ -130,10 +130,10 @@
 	    asprintf(&n->proto, "%d", p->p_proto);
 	} else {
 	    /* check that the proto is a number if we can't resolve it */
-	    long m;
+	    //long m;
 	    char * e;
 
-	    m = strtol(n->proto, &e, 10);
+	    strtol(n->proto, &e, 10);
 	    if (*e) {
 		fprintf(stderr, "warning: suspicious protocol name encountered: %s\n", n->proto);
 	    }
Only in filtergen-0.12.4/: rules.filter

Reply via email to