From: Duncan Sands <baldrick@free.fr>
To: Matt Mackall <mpm@selenic.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] netpoll endian fixes
Date: Thu, 9 Sep 2004 11:31:46 +0200 [thread overview]
Message-ID: <200409091131.46574.baldrick@free.fr> (raw)
In-Reply-To: <20040908225334.GN31237@waste.org>
> Ok, could you send an updated patch with a Signed-off-by, please?
Here you are:
Correct wrong ip header in netpoll_send_udp.
Signed-off-by: Duncan Sands <baldrick@free.fr>
--- linux-2.5/net/core/netpoll.c.orig 2004-09-09 11:20:43.000000000 +0200
+++ linux-2.5/net/core/netpoll.c 2004-09-09 11:20:58.000000000 +0200
@@ -242,9 +242,9 @@
iph = (struct iphdr *)skb_push(skb, sizeof(*iph));
/* iph->version = 4; iph->ihl = 5; */
- put_unaligned(0x54, (unsigned char *)iph);
+ put_unaligned(0x45, (unsigned char *)iph);
iph->tos = 0;
- put_unaligned(htonl(ip_len), &(iph->tot_len));
+ put_unaligned(htons(ip_len), &(iph->tot_len));
iph->id = 0;
iph->frag_off = 0;
iph->ttl = 64;
next prev parent reply other threads:[~2004-09-09 9:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-07 23:24 Duncan Sands
2004-09-07 23:29 ` Matt Mackall
2004-09-08 6:56 ` Duncan Sands
2004-09-07 23:57 ` Matt Mackall
2004-09-08 10:01 ` Duncan Sands
2004-09-08 22:53 ` Matt Mackall
2004-09-09 9:31 ` Duncan Sands [this message]
[not found] <77423609@toto.iv>
2004-09-09 2:09 ` Peter Chubb
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=200409091131.46574.baldrick@free.fr \
--to=baldrick@free.fr \
--cc=linux-kernel@vger.kernel.org \
--cc=mpm@selenic.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome