Changes for ipvsadm
Julian Anastasov
maintainercover Changes for ipvsadm
Do we have ipvsadm on git? I downloaded something
from svn to base these two patches.
Julian Anastasov (2):
Fix the --pe option checks
Fallback to libpopt on shared object
Makefile | 15 +++++++++++++++ ipvsadm.c | 32 ++++++++++++++++---------------- 2 files changed, 31 insertions(+), 16 deletions(-)
Signature · 1 line
1.7.3.4
Julian Anastasov
maintainerPATCH 1/2 Fix the --pe option checks
Make sure the --pe option is at its place in
optnames. Now it messes the names of all next options.
Also, add the missing requirements for the --pe option incommands_v_options.
--- ipvsadm.c | 32 ++++++++++++++++---------------- 1 files changed, 16 insertions(+), 16 deletions(-)
ipvsadm.c +16 -16
@@ -189,7 +189,6 @@ static const char* optnames[] = {"connection" ,"service-address" ,"scheduler" , -"pe" ,"persistent" ,"netmask" , "real-server",
@@ -208,6 +207,7 @@ static const char* optnames[] = {"syncid" ,"exact" ,"ops" , + "pe", };/*
@@ -220,21 +220,21 @@ static const char* optnames[] = {*/ static const char commands_v_options[NUMBER_OF_CMD ][NUMBER_OF_OPT ] = { -/* -n -c svc -s -p -M -r fwd -w -x -y -mc tot dmn -st -rt thr -pc srt sid -ex ops */ -/*ADD*/ {'x' ,'x' ,'+' ,' ' ,' ' ,' ' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,' ' }, -/*EDIT*/ {'x' ,'x' ,'+' ,' ' ,' ' ,' ' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,' ' }, -/*DEL*/ {'x' ,'x' ,'+' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' }, -/*FLUSH*/ {'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x' ,'x'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,'x' ,'x' ,'x' ,'x' ,'x' ,'x' }, };/* printing format flags */
Signature · 1 line
1.7.3.4
Julian Anastasov
maintainerPATCH 2/2 Fallback to libpopt on shared object
In reply to Julian AnastasovUse shared library if no static library is installed.
--- Makefile | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-)
Makefile +15 -0
@@ -72,6 +72,21 @@ POPT_LIB = $(shell for i in $(LIB_SEARCH); do \ fi; \ fi; \ done) +ifeq (,$(POPT_LIB)) +POPT_LIB = $(shell for i in $(LIB_SEARCH); do \ + f1=""; \ + for so in $$i/libpopt.so*; do \ + if [ -f $$so ]; then \ + if objdump -T $$so | fgrep -q poptGetContext; then \ + echo "-lpopt"; \ + f1=y; \ + break; \ + fi; \ + fi; \ + done; \ + [ "$$f1" != "" ] && break; \ +done) +endif endif ifneq (,$(POPT_LIB))
Signature · 1 line
1.7.3.4
Simon Horman
maintainerQuoted 2 lines · Julian Anastasov
Do we have ipvsadm on git? I downloaded something
from svn to base these two patches.
I believe that svn is the canonical source.
Wensong, I'd be happy to see about putting ipvs into git on kernel.org if you are interested.
A message that is not in the archive (sent off-list or not yet received): CAHWFoux81rOetCST7ZbC7dCps=QZh7XV2LZhNa8ES0gQyj5RbA@mail.gmail.com
Simon Horman
maintainerQuoted 1 line · Wensong Zhang
Hi Horms, I have no problem, please convert ipvsadm svn repository to git.
Thanks, will do.
Simon Horman
maintainer[ANNOUNCE] Ipvsadm GIT repository
I have created a git repository for ipvsadm on kernel.org, which includes a change history imported from SVN.
git://git.kernel.org/pub/scm/utils/kernel/ipvsadm/ipvsadm.git
If you have fixes or enhancements for ipvsadm please:
1. Base your changes on the above tree
2. Provide a Signed-off-by line, as per kernel patches
3. Send them to [email protected] and CC me.
Simon Horman
maintainerQuoted 2 lines · Julian Anastasov
Do we have ipvsadm on git? I downloaded something
from svn to base these two patches.
Thanks, both patches applied togit://git.kernel.org/pub/scm/utils/kernel/ipvsadm/ipvsadm.git
Sorry that this took a while.