aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2013-02-21 11:51:03 +0100
committerMartin Willi <martin@revosec.ch>2013-02-21 11:52:33 +0100
commitc572b5c8c1c81756477a6df6148fd47c6f427020 (patch)
treeb4f1228ed07efb05a1fc93b00865d702d41a5c22 /src
parent7b368af61a0c36d3cd22439fc2b6727f3b46975a (diff)
downloadstrongswan-c572b5c8c1c81756477a6df6148fd47c6f427020.tar.bz2
strongswan-c572b5c8c1c81756477a6df6148fd47c6f427020.tar.xz
Print OPAQUE traffic selectors as what they are, not as port range
Diffstat (limited to 'src')
-rw-r--r--src/libstrongswan/selectors/traffic_selector.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstrongswan/selectors/traffic_selector.c b/src/libstrongswan/selectors/traffic_selector.c
index a614c2283..fd8bfe1a2 100644
--- a/src/libstrongswan/selectors/traffic_selector.c
+++ b/src/libstrongswan/selectors/traffic_selector.c
@@ -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",