Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
a6d4588e
Commit
a6d4588e
authored
Jul 29, 2003
by
Wensong Zhang
Committed by
Stephen Hemminger
Jul 29, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV4] IPVS: sanity check of threshold setting and code tidy up
parent
97962c24
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
net/ipv4/ipvs/Kconfig
net/ipv4/ipvs/Kconfig
+1
-1
net/ipv4/ipvs/ip_vs_ctl.c
net/ipv4/ipvs/ip_vs_ctl.c
+13
-1
No files found.
net/ipv4/ipvs/Kconfig
View file @
a6d4588e
...
...
@@ -11,7 +11,7 @@ config IP_VS
IP Virtual Server support will let you build a high-performance
virtual server based on cluster of two or more real servers. This
option must be enabled for at least one of the clustered computers
that will take care of intercepting incom
m
ing connections to a
that will take care of intercepting incoming connections to a
single IP address and scheduling them to real servers.
Three request dispatching techniques are implemented, they are
...
...
net/ipv4/ipvs/ip_vs_ctl.c
View file @
a6d4588e
...
...
@@ -790,6 +790,12 @@ ip_vs_add_dest(struct ip_vs_service *svc, struct ip_vs_dest_user *udest)
return
-
ERANGE
;
}
if
(
udest
->
l_threshold
>
udest
->
u_threshold
)
{
IP_VS_ERR
(
"ip_vs_add_dest(): lower threshold is higher than "
"upper threshold
\n
"
);
return
-
ERANGE
;
}
/*
* Check if the dest already exists in the list
*/
...
...
@@ -885,7 +891,13 @@ ip_vs_edit_dest(struct ip_vs_service *svc, struct ip_vs_dest_user *udest)
EnterFunction
(
2
);
if
(
udest
->
weight
<
0
)
{
IP_VS_ERR
(
"ip_vs_add_dest(): server weight less than zero
\n
"
);
IP_VS_ERR
(
"ip_vs_edit_dest(): server weight less than zero
\n
"
);
return
-
ERANGE
;
}
if
(
udest
->
l_threshold
>
udest
->
u_threshold
)
{
IP_VS_ERR
(
"ip_vs_edit_dest(): lower threshold is higher than "
"upper threshold
\n
"
);
return
-
ERANGE
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment