Loading net/ipv4/udp.c +48 −47 Original line number Diff line number Diff line Loading @@ -175,7 +175,8 @@ int __udp_lib_get_port(struct sock *sk, unsigned short snum, ; } 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]) result = sysctl_local_port_range[0] + ((result - sysctl_local_port_range[0]) & Loading Loading @@ -765,8 +766,7 @@ int udp_sendpage(struct sock *sk, struct page *page, int offset, int udp_ioctl(struct sock *sk, int cmd, unsigned long arg) { switch(cmd) { switch (cmd) { case SIOCOUTQ: { int amount = atomic_read(&sk->sk_wmem_alloc); Loading Loading @@ -796,7 +796,8 @@ int udp_ioctl(struct sock *sk, int cmd, unsigned long arg) default: return -ENOIOCTLCMD; } return(0); return 0; } /* Loading Loading @@ -1264,7 +1265,7 @@ int __udp4_lib_rcv(struct sk_buff *skb, struct hlist_head udptable[], * don't wanna listen. Ignore it. */ kfree_skb(skb); return(0); return 0; 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", Loading Loading @@ -1292,7 +1293,7 @@ int __udp4_lib_rcv(struct sk_buff *skb, struct hlist_head udptable[], drop: UDP_INC_STATS_BH(UDP_MIB_INERRORS, proto == IPPROTO_UDPLITE); kfree_skb(skb); return(0); return 0; } __inline__ int udp_rcv(struct sk_buff *skb) Loading Loading @@ -1379,7 +1380,7 @@ int udp_lib_setsockopt(struct sock *sk, int level, int optname, default: err = -ENOPROTOOPT; break; }; } return err; } Loading Loading @@ -1439,7 +1440,7 @@ int udp_lib_getsockopt(struct sock *sk, int level, int optname, default: return -ENOPROTOOPT; }; } if (put_user(len, optlen)) return -EFAULT; Loading Loading
net/ipv4/udp.c +48 −47 Original line number Diff line number Diff line Loading @@ -175,7 +175,8 @@ int __udp_lib_get_port(struct sock *sk, unsigned short snum, ; } 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]) result = sysctl_local_port_range[0] + ((result - sysctl_local_port_range[0]) & Loading Loading @@ -765,8 +766,7 @@ int udp_sendpage(struct sock *sk, struct page *page, int offset, int udp_ioctl(struct sock *sk, int cmd, unsigned long arg) { switch(cmd) { switch (cmd) { case SIOCOUTQ: { int amount = atomic_read(&sk->sk_wmem_alloc); Loading Loading @@ -796,7 +796,8 @@ int udp_ioctl(struct sock *sk, int cmd, unsigned long arg) default: return -ENOIOCTLCMD; } return(0); return 0; } /* Loading Loading @@ -1264,7 +1265,7 @@ int __udp4_lib_rcv(struct sk_buff *skb, struct hlist_head udptable[], * don't wanna listen. Ignore it. */ kfree_skb(skb); return(0); return 0; 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", Loading Loading @@ -1292,7 +1293,7 @@ int __udp4_lib_rcv(struct sk_buff *skb, struct hlist_head udptable[], drop: UDP_INC_STATS_BH(UDP_MIB_INERRORS, proto == IPPROTO_UDPLITE); kfree_skb(skb); return(0); return 0; } __inline__ int udp_rcv(struct sk_buff *skb) Loading Loading @@ -1379,7 +1380,7 @@ int udp_lib_setsockopt(struct sock *sk, int level, int optname, default: err = -ENOPROTOOPT; break; }; } return err; } Loading Loading @@ -1439,7 +1440,7 @@ int udp_lib_getsockopt(struct sock *sk, int level, int optname, default: return -ENOPROTOOPT; }; } if (put_user(len, optlen)) return -EFAULT; Loading