diff options
author | Krzysztof Gajdemski <songo@debian.org.pl> | 2013-03-21 11:40:06 +0100 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2013-05-22 15:40:21 +0900 |
commit | 6a03100c189d00e3a8235215392465b5b877ba8f (patch) | |
tree | 474dcc59a41b488a28e4a2f4d019a0b2f4abbc9c | |
parent | aaddbff8f8217bfbbd47994840d95af7b7514614 (diff) | |
download | ipvsadm-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |