aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof Gajdemski <songo@debian.org.pl>2013-03-21 11:40:06 +0100
committerSimon Horman <horms@verge.net.au>2013-05-22 15:40:21 +0900
commit6a03100c189d00e3a8235215392465b5b877ba8f (patch)
tree474dcc59a41b488a28e4a2f4d019a0b2f4abbc9c
parentaaddbff8f8217bfbbd47994840d95af7b7514614 (diff)
downloadipvsadm-6a03100c189d00e3a8235215392465b5b877ba8f.tar.gz
ipvsadm: Fix wrong format of -o option in FMT_RULE listing
'ipvsadm -S' listed one-packet scheduling option in wrong format ('ops' instead of '--ops' or '-o') preventing any service with OPS feature from restoring using 'ipvsadm -R'. Now we use '-o' which works well with save/restore commands. Signed-off-by: Krzysztof Gajdemski <songo@debian.org.pl> Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r--ipvsadm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipvsadm.c b/ipvsadm.c
index d13524f..454287c 100644
--- a/ipvsadm.c
+++ b/ipvsadm.c
@@ -1487,7 +1487,7 @@ print_service_entry(ipvs_service_entry_t *se, unsigned int format)
if (se->pe_name[0])
printf(" pe %s", se->pe_name);
if (se->flags & IP_VS_SVC_F_ONEPACKET)
- printf(" ops");
+ printf(" -o");
} else if (format & FMT_STATS) {
printf("%-33s", svc_name);
print_largenum(se->stats.conns, format);