Support %opaque keyword in leftprotoport for "opaque" ports
authorMartin Willi <martin@revosec.ch>
Thu, 21 Feb 2013 10:13:26 +0000 (11:13 +0100)
committerMartin Willi <martin@revosec.ch>
Thu, 21 Feb 2013 10:52:33 +0000 (11:52 +0100)
src/starter/confread.c

index 92d6954..22f0b73 100644 (file)
@@ -298,6 +298,11 @@ static void kw_end(starter_conn_t *conn, starter_end_t *end, kw_token_t token,
                        end->from_port = 0;
                        end->to_port = 0xffff;
                }
+               else if (streq(port, "%opaque"))
+               {
+                       end->from_port = 0xffff;
+                       end->to_port = 0;
+               }
                else
                {
                        svc = getservbyname(port, NULL);