patch attached.

Best Regards.
-- 
Hector A. Paterno
*** sbin/pfctl/parse.y  Fri Sep 26 18:06:31 2003
--- sbin/pfctl/parse.y  Thu Oct  9 15:11:32 2003
***************
*** 189,194 ****
--- 189,195 ----
        int                     fragcache;
        int                     randomid;
        int                     reassemble_tcp;
+       char                    *label; 
  } scrub_opts;
  
  struct queue_opts {
***************
*** 688,693 ****
--- 689,699 ----
                                }
                                r.rule_flag |= PFRULE_REASSEMBLE_TCP;
                        }
+                       
+                       if (rule_label(&r, $8.label))
+                               YYERROR;
+                       free($8.label);
+ 
                        if ($8.minttl)
                                r.min_ttl = $8.minttl;
                        if ($8.maxmss)
***************
*** 764,769 ****
--- 770,782 ----
                        }
                        scrub_opts.reassemble_tcp = 1;
                }
+               | label {
+                       if (filter_opts.label) {
+                               yyerror("label cannot be redefined");
+                               YYERROR;
+                       }
+                       scrub_opts.label = $1;
+               }               
                | RANDOMID {
                        if (scrub_opts.randomid) {
                                yyerror("random-id cannot be respecified");

Reply via email to