netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* packet corruption or something else?
@ 2008-01-08 12:49 Denys Fedoryshchenko
  0 siblings, 0 replies; only message in thread
From: Denys Fedoryshchenko @ 2008-01-08 12:49 UTC (permalink / raw)
  To: netdev

Hi

I notice a lot of messages like
[8447790.549705] UDP: short packet: From XXX.XXX.224.29:21005 60046/1480 to 
XXX.XXX.247.1:1024
[8448040.893317] UDP: short packet: From XXX.XXX.224.29:21218 17820/1480 to 
XXX.XXX.247.1:49974
[8448216.603759] UDP: short packet: From XXX.XXX.224.29:21004 56347/1480 to 
XXX.XXX.247.1:1024
[8448370.883610] UDP: short packet: From XXX.XXX.224.29:21005 5246/1480 to 
XXX.XXX.247.1:1251

I have similar messages on other hosts, and they looks very strange.

After looking to kernel sources i found
        ulen = ntohs(uh->len);
        if (ulen > skb->len)
                goto short_packet;

        if (proto == IPPROTO_UDP) {
                /* UDP validates ulen. */
                if (ulen < sizeof(*uh) || pskb_trim_rcsum(skb, ulen))
                        goto short_packet;
                uh = udp_hdr(skb);
        }

Means if specified length in packet header more large than len in skb, go to 
short_packet.

As i know for sure, i have running UDP application which sending packets not 
more than 1500 bytes (1480 actually without header), and it is running on 
ports 21005, 21004, 21006. There is for sure impossible it will send data 
from port 21218 and impossible it will send packet larger than 1480 bytes.

Receiving side is Intel card with hardware checksumming enabled. So in theory 
corrupted packets must not bypass hardware checksumming (but probably i am 
wrong). Is there anything suspicious and need additional attention?

--
Denys Fedoryshchenko
Technical Manager
Virtual ISP S.A.L.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-08 12:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-08 12:49 packet corruption or something else? Denys Fedoryshchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).