Commit f93fe4da authored by Wensong Zhang's avatar Wensong Zhang Committed by Patrick McHardy

[IPVS]: Code tidy up.

Patch from Horms <horms@vergenet.net>

1. The trailing '\n' was missing, it has been added
2. The protocol is already in host byte order,
   the ntohl() call has been removed
parent f69f3450
...@@ -1836,8 +1836,8 @@ do_ip_vs_set_ctl(struct sock *sk, int cmd, void *user, unsigned int len) ...@@ -1836,8 +1836,8 @@ do_ip_vs_set_ctl(struct sock *sk, int cmd, void *user, unsigned int len)
/* Check for valid protocol: TCP or UDP, even for fwmark!=0 */ /* Check for valid protocol: TCP or UDP, even for fwmark!=0 */
if (usvc->protocol!=IPPROTO_TCP && usvc->protocol!=IPPROTO_UDP) { if (usvc->protocol!=IPPROTO_TCP && usvc->protocol!=IPPROTO_UDP) {
IP_VS_INFO("vs_ctl: invalid protocol: %d %d.%d.%d.%d:%d %s", IP_VS_ERR("set_ctl: invalid protocol: %d %d.%d.%d.%d:%d %s\n",
ntohs(usvc->protocol), NIPQUAD(usvc->addr), usvc->protocol, NIPQUAD(usvc->addr),
ntohs(usvc->port), usvc->sched_name); ntohs(usvc->port), usvc->sched_name);
ret = -EFAULT; ret = -EFAULT;
goto out_unlock; goto out_unlock;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment