[UDP]: ipv4 whitespace cleanup
Fix whitespace around keywords. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
a2a316fd06
commit
6516c65573
@@ -175,7 +175,8 @@ int __udp_lib_get_port(struct sock *sk, unsigned short snum,
|
|||||||
;
|
;
|
||||||
}
|
}
|
||||||
result = best;
|
result = best;
|
||||||
for(i = 0; i < (1 << 16) / UDP_HTABLE_SIZE; i++, result += UDP_HTABLE_SIZE) {
|
for (i = 0; i < (1 << 16) / UDP_HTABLE_SIZE;
|
||||||
|
i++, result += UDP_HTABLE_SIZE) {
|
||||||
if (result > sysctl_local_port_range[1])
|
if (result > sysctl_local_port_range[1])
|
||||||
result = sysctl_local_port_range[0]
|
result = sysctl_local_port_range[0]
|
||||||
+ ((result - sysctl_local_port_range[0]) &
|
+ ((result - sysctl_local_port_range[0]) &
|
||||||
@@ -765,8 +766,7 @@ out:
|
|||||||
|
|
||||||
int udp_ioctl(struct sock *sk, int cmd, unsigned long arg)
|
int udp_ioctl(struct sock *sk, int cmd, unsigned long arg)
|
||||||
{
|
{
|
||||||
switch(cmd)
|
switch (cmd) {
|
||||||
{
|
|
||||||
case SIOCOUTQ:
|
case SIOCOUTQ:
|
||||||
{
|
{
|
||||||
int amount = atomic_read(&sk->sk_wmem_alloc);
|
int amount = atomic_read(&sk->sk_wmem_alloc);
|
||||||
@@ -796,7 +796,8 @@ int udp_ioctl(struct sock *sk, int cmd, unsigned long arg)
|
|||||||
default:
|
default:
|
||||||
return -ENOIOCTLCMD;
|
return -ENOIOCTLCMD;
|
||||||
}
|
}
|
||||||
return(0);
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -1264,7 +1265,7 @@ int __udp4_lib_rcv(struct sk_buff *skb, struct hlist_head udptable[],
|
|||||||
* don't wanna listen. Ignore it.
|
* don't wanna listen. Ignore it.
|
||||||
*/
|
*/
|
||||||
kfree_skb(skb);
|
kfree_skb(skb);
|
||||||
return(0);
|
return 0;
|
||||||
|
|
||||||
short_packet:
|
short_packet:
|
||||||
LIMIT_NETDEBUG(KERN_DEBUG "UDP%s: short packet: From %u.%u.%u.%u:%u %d/%d to %u.%u.%u.%u:%u\n",
|
LIMIT_NETDEBUG(KERN_DEBUG "UDP%s: short packet: From %u.%u.%u.%u:%u %d/%d to %u.%u.%u.%u:%u\n",
|
||||||
@@ -1292,7 +1293,7 @@ csum_error:
|
|||||||
drop:
|
drop:
|
||||||
UDP_INC_STATS_BH(UDP_MIB_INERRORS, proto == IPPROTO_UDPLITE);
|
UDP_INC_STATS_BH(UDP_MIB_INERRORS, proto == IPPROTO_UDPLITE);
|
||||||
kfree_skb(skb);
|
kfree_skb(skb);
|
||||||
return(0);
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
__inline__ int udp_rcv(struct sk_buff *skb)
|
__inline__ int udp_rcv(struct sk_buff *skb)
|
||||||
@@ -1379,7 +1380,7 @@ int udp_lib_setsockopt(struct sock *sk, int level, int optname,
|
|||||||
default:
|
default:
|
||||||
err = -ENOPROTOOPT;
|
err = -ENOPROTOOPT;
|
||||||
break;
|
break;
|
||||||
};
|
}
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
@@ -1439,7 +1440,7 @@ int udp_lib_getsockopt(struct sock *sk, int level, int optname,
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
return -ENOPROTOOPT;
|
return -ENOPROTOOPT;
|
||||||
};
|
}
|
||||||
|
|
||||||
if (put_user(len, optlen))
|
if (put_user(len, optlen))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
Reference in New Issue
Block a user