From: David Ford <david+cert@blue-labs.org>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: [PATCH] UDP short packet patch for ipv4
Date: Thu, 14 Feb 2002 14:07:39 -0500 [thread overview]
Message-ID: <3C6C0AFB.8080600@blue-labs.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 961 bytes --]
This patch changes printk to add helpful information...i.e. who to
firewall etc. It is against 2.4.18-rc1. IPV6 needs one too but in my
opinion, a similar NIPQUAD macro needs built and the IPV6 core in
general needs a tidying up to use the new macro.
--- linux/net/ipv4/udp.c.orig Thu Feb 14 13:38:24 2002
+++ linux/net/ipv4/udp.c Thu Feb 14 13:32:34 2002
@@ -928,7 +928,14 @@
return(0);
short_packet:
- NETDEBUG(if (net_ratelimit()) printk(KERN_DEBUG "UDP: short
packet: %d/%d\n", ulen, len));
+ NETDEBUG(if (net_ratelimit())
+ printk(KERN_DEBUG "UDP: short packet: %u.%u.%u.%u:%u
%d/%d to %u.%u.%u.%u:%u\n",
+ NIPQUAD(saddr),
+ ntohs(uh->source),
+ ulen,
+ len,
+ NIPQUAD(daddr),
+ ntohs(uh->dest)));
no_header:
UDP_INC_STATS_BH(UdpInErrors);
kfree_skb(skb);
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3254 bytes --]
reply other threads:[~2002-02-14 19:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3C6C0AFB.8080600@blue-labs.org \
--to=david+cert@blue-labs.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.