<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/net/ipv6/udp.c, branch linux-2.6.28.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.28.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.28.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2008-11-03T07:52:46Z</updated>
<entry>
<title>udp: Fix the SNMP counter of UDP_MIB_INERRORS</title>
<updated>2008-11-03T07:52:46Z</updated>
<author>
<name>Wei Yongjun</name>
</author>
<published>2008-11-02T16:14:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0856f93958c488f0cc656be53c26dfd20663bdb3'/>
<id>urn:sha1:0856f93958c488f0cc656be53c26dfd20663bdb3</id>
<content type='text'>
UDP packets received in udpv6_recvmsg() are not only IPv6 UDP packets, but
also have IPv4 UDP packets, so when do the counter of UDP_MIB_INERRORS in
udpv6_recvmsg(), we should check whether the packet is a IPv6 UDP packet
or a IPv4 UDP packet.

Signed-off-by: Wei Yongjun &lt;yjwei@cn.fujitsu.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>udp: Fix the SNMP counter of UDP_MIB_INDATAGRAMS</title>
<updated>2008-11-03T07:52:45Z</updated>
<author>
<name>Wei Yongjun</name>
</author>
<published>2008-11-02T16:11:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f26ba1751145edbf52b2c89a40e389f2fbdfc1af'/>
<id>urn:sha1:f26ba1751145edbf52b2c89a40e389f2fbdfc1af</id>
<content type='text'>
If UDP echo is sent to xinetd/echo-dgram, the UDP reply will be received
at the sender. But the SNMP counter of UDP_MIB_INDATAGRAMS will be not
increased, UDP6_MIB_INDATAGRAMS will be increased instead.

  Endpoint A                      Endpoint B
  UDP Echo request -----------&gt;
  (IPv4, Dst port=7)
                   &lt;----------    UDP Echo Reply
                                  (IPv4, Src port=7)

This bug is come from this patch cb75994ec311b2cd50e5205efdcc0696abd6675d.

It do counter UDP[6]_MIB_INDATAGRAMS until udp[v6]_recvmsg. Because
xinetd used IPv6 socket to receive UDP messages, thus, when received
UDP packet, the UDP6_MIB_INDATAGRAMS will be increased in function
udpv6_recvmsg() even if the packet is a IPv4 UDP packet.

This patch fixed the problem.

Signed-off-by: Wei Yongjun &lt;yjwei@cn.fujitsu.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>udp: multicast packets need to check namespace</title>
<updated>2008-11-02T04:22:23Z</updated>
<author>
<name>Eric Dumazet</name>
</author>
<published>2008-11-02T04:22:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=920a46115ca3fa88990276d98520abab85495b2d'/>
<id>urn:sha1:920a46115ca3fa88990276d98520abab85495b2d</id>
<content type='text'>
Current UDP multicast delivery is not namespace aware.

Signed-off-by: Eric Dumazet &lt;dada1@cosmosbay.com&gt;
Acked-by: Pavel Emelyanov &lt;xemul@openvz.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>inet: Don't lookup the socket if there's a socket attached to the skb</title>
<updated>2008-10-07T19:41:01Z</updated>
<author>
<name>KOVACS Krisztian</name>
</author>
<published>2008-10-07T19:41:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=23542618deb77cfed312842fe8c41ed19fb16470'/>
<id>urn:sha1:23542618deb77cfed312842fe8c41ed19fb16470</id>
<content type='text'>
Use the socket cached in the skb if it's present.

Signed-off-by: KOVACS Krisztian &lt;hidden@sch.bme.hu&gt;
Acked-by: Arnaldo Carvalho de Melo &lt;acme@redhat.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>inet: Add udplib_lookup_skb() helpers</title>
<updated>2008-10-07T19:38:32Z</updated>
<author>
<name>KOVACS Krisztian</name>
</author>
<published>2008-10-07T19:38:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=607c4aaf03041c8bd81555a0218050c0f895088e'/>
<id>urn:sha1:607c4aaf03041c8bd81555a0218050c0f895088e</id>
<content type='text'>
To be able to use the cached socket reference in the skb during input
processing we add a new set of lookup functions that receive the skb on
their argument list.

Signed-off-by: KOVACS Krisztian &lt;hidden@sch.bme.hu&gt;
Acked-by: Arnaldo Carvalho de Melo &lt;acme@redhat.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>udp: Drop socket lock for encapsulated packets</title>
<updated>2008-08-09T07:35:05Z</updated>
<author>
<name>Herbert Xu</name>
</author>
<published>2008-08-09T07:35:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d97106ea52aa57e63ff40d04479016836bbb5a4e'/>
<id>urn:sha1:d97106ea52aa57e63ff40d04479016836bbb5a4e</id>
<content type='text'>
The socket lock is there to protect the normal UDP receive path.
Encapsulation UDP sockets don't need that protection.  In fact
the locking is deadly for them as they may contain another UDP
packet within, possibly with the same addresses.

Also the nested bit was copied from TCP.  TCP needs it because
of accept(2) spawning sockets.  This simply doesn't apply to UDP
so I've removed it.

Signed-off-by: Herbert Xu &lt;herbert@gondor.apana.org.au&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>MIB: add struct net to UDP6_INC_STATS_BH</title>
<updated>2008-07-06T04:19:40Z</updated>
<author>
<name>Pavel Emelyanov</name>
</author>
<published>2008-07-06T04:19:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ef28d1a20f9f18ebf1be15ef6f097a76f9a63499'/>
<id>urn:sha1:ef28d1a20f9f18ebf1be15ef6f097a76f9a63499</id>
<content type='text'>
Signed-off-by: Pavel Emelyanov &lt;xemul@openvz.org&gt;
Acked-by: Denis V. Lunev &lt;den@openvz.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>MIB: add struct net to UDP6_INC_STATS_USER</title>
<updated>2008-07-06T04:19:20Z</updated>
<author>
<name>Pavel Emelyanov</name>
</author>
<published>2008-07-06T04:19:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=235b9f7ac53489011d32efeb89e12e308fdd2c64'/>
<id>urn:sha1:235b9f7ac53489011d32efeb89e12e308fdd2c64</id>
<content type='text'>
As simple as the patch #1 in this set.

Signed-off-by: Pavel Emelyanov &lt;xemul@openvz.org&gt;
Acked-by: Denis V. Lunev &lt;den@openvz.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>udp: sk_drops handling</title>
<updated>2008-06-18T04:04:56Z</updated>
<author>
<name>Eric Dumazet</name>
</author>
<published>2008-06-18T04:04:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cb61cb9b8b5ef6c2697d84e5015e314626eb2fba'/>
<id>urn:sha1:cb61cb9b8b5ef6c2697d84e5015e314626eb2fba</id>
<content type='text'>
In commits 33c732c36169d7022ad7d6eb474b0c9be43a2dc1 ([IPV4]: Add raw
drops counter) and a92aa318b4b369091fd80433c80e62838db8bc1c ([IPV6]:
Add raw drops counter), Wang Chen added raw drops counter for
/proc/net/raw &amp; /proc/net/raw6

This patch adds this capability to UDP sockets too (/proc/net/udp &amp;
/proc/net/udp6).

This means that 'RcvbufErrors' errors found in /proc/net/snmp can be also
be examined for each udp socket.

# grep Udp: /proc/net/snmp
Udp: InDatagrams NoPorts InErrors OutDatagrams RcvbufErrors SndbufErrors
Udp: 23971006 75 899420 16390693 146348 0

# cat /proc/net/udp
 sl  local_address rem_address   st tx_queue rx_queue tr tm-&gt;when retrnsmt  ---
uid  timeout inode ref pointer drops
 75: 00000000:02CB 00000000:0000 07 00000000:00000000 00:00000000 00000000  ---
  0        0 2358 2 ffff81082a538c80 0
111: 00000000:006F 00000000:0000 07 00000000:00000000 00:00000000 00000000  ---
  0        0 2286 2 ffff81042dd35c80 146348

In this example, only port 111 (0x006F) was flooded by messages that
user program could not read fast enough. 146348 messages were lost.

Signed-off-by: Eric Dumazet &lt;dada1@cosmosbay.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>udp: add struct net argument to udp_hashfn</title>
<updated>2008-06-17T00:12:29Z</updated>
<author>
<name>Pavel Emelyanov</name>
</author>
<published>2008-06-17T00:12:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=19c7578fb22b0aef103222cae9b522f03ae489d6'/>
<id>urn:sha1:19c7578fb22b0aef103222cae9b522f03ae489d6</id>
<content type='text'>
Every caller already has this one. The new argument is currently 
unused, but this will be fixed shortly.

Signed-off-by: Pavel Emelyanov &lt;xemul@openvz.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
