Module Name: src
Committed By: christos
Date: Mon Mar 11 00:09:07 UTC 2013
Modified Files:
src/usr.sbin/npf/npfctl: npf_parse.y todo
Log Message:
handle port "ftp-data"
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/usr.sbin/npf/npfctl/npf_parse.y
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/npf/npfctl/todo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/npf/npfctl/npf_parse.y
diff -u src/usr.sbin/npf/npfctl/npf_parse.y:1.19 src/usr.sbin/npf/npfctl/npf_parse.y:1.20
--- src/usr.sbin/npf/npfctl/npf_parse.y:1.19 Sun Mar 10 19:11:26 2013
+++ src/usr.sbin/npf/npfctl/npf_parse.y Sun Mar 10 20:09:07 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: npf_parse.y,v 1.19 2013/03/10 23:11:26 christos Exp $ */
+/* $NetBSD: npf_parse.y,v 1.20 2013/03/11 00:09:07 christos Exp $ */
/*-
* Copyright (c) 2011-2012 The NetBSD Foundation, Inc.
@@ -677,6 +677,7 @@ port_range
port
: NUM { $$ = $1; }
| IDENTIFIER { $$ = npfctl_portno($1); }
+ | STRING { $$ = npfctl_portno($1); }
;
icmp_type_and_code
Index: src/usr.sbin/npf/npfctl/todo
diff -u src/usr.sbin/npf/npfctl/todo:1.2 src/usr.sbin/npf/npfctl/todo:1.3
--- src/usr.sbin/npf/npfctl/todo:1.2 Sun Mar 10 20:05:36 2013
+++ src/usr.sbin/npf/npfctl/todo Sun Mar 10 20:09:07 2013
@@ -1,4 +1,3 @@
--- parse "port ftp-data" properly
-- how to convert other packet filters to npf
-- have a way to use npflog to log packets to syslog
-- have a way to match dropped packets to rules
@@ -21,3 +20,4 @@ ok modules should move from /usr/lib to
ok parse dynamic map rule properly inet4($ext_if) does not work
ok create npflog interface automatically
ok need to bring interface npflog up
+ok parse 'port "ftp-data"' properly