Print OPAQUE traffic selectors as what they are, not as port range
authorMartin Willi <martin@revosec.ch>
Thu, 21 Feb 2013 10:51:03 +0000 (11:51 +0100)
committerMartin Willi <martin@revosec.ch>
Thu, 21 Feb 2013 10:52:33 +0000 (11:52 +0100)
src/libstrongswan/selectors/traffic_selector.c

index a614c22..fd8bfe1 100644 (file)
@@ -312,6 +312,10 @@ int traffic_selector_printf_hook(printf_hook_data_t *data,
                                written += print_in_hook(data, "%d", this->from_port);
                        }
                }
+               else if (is_opaque(this))
+               {
+                       written += print_in_hook(data, "OPAQUE");
+               }
                else
                {
                        written += print_in_hook(data, "%d-%d",