Re: [PATCH] netpoll endian fixes

From: Duncan Sands
Date: Thu Sep 09 2004 - 04:33:08 EST


> 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@xxxxxxx>

--- 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;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/