aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof Gajdemski <songo@debian.org.pl>2013-03-21 11:40:14 +0100
committerSimon Horman <horms@verge.net.au>2013-05-22 15:40:27 +0900
commit1ea1f41f40ad183176dba0ace8b873443d6aa82d (patch)
treeac4b47ee379f8b4340d7b997d5c221dcf4394523
parent6a03100c189d00e3a8235215392465b5b877ba8f (diff)
downloadipvsadm-1ea1f41f40ad183176dba0ace8b873443d6aa82d.tar.gz
ipvsadm: Show 'ops' flag regardless of service persistence
In print_service_entry() 'ops' option is displayed only for services which have the IP_VS_SVC_F_PERSISTENT flag set. However, it should be displayed for any VS with one-packet scheduling because OPS can be also used without persistence. Signed-off-by: Krzysztof Gajdemski <songo@debian.org.pl> Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r--ipvsadm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipvsadm.c b/ipvsadm.c
index 454287c..0197515 100644
--- a/ipvsadm.c
+++ b/ipvsadm.c
@@ -1517,9 +1517,9 @@ print_service_entry(ipvs_service_entry_t *se, unsigned int format)
printf(" mask %i", se->netmask);
if (se->pe_name[0])
printf(" pe %s", se->pe_name);
- if (se->flags & IP_VS_SVC_F_ONEPACKET)
- printf(" ops");
}
+ if (se->flags & IP_VS_SVC_F_ONEPACKET)
+ printf(" ops");
}
printf("\n");