Commit c362695a authored by Matt Mackall's avatar Matt Mackall Committed by Linus Torvalds

[PATCH] netpoll endian fixes

Correct wrong ip header in netpoll_send_udp.
Signed-off-by: default avatarDuncan Sands <baldrick@free.fr>
Signed-off-by: default avatarMatt Mackall <mpm@selenic.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 8cbfd2c3
......@@ -242,9 +242,9 @@ void netpoll_send_udp(struct netpoll *np, const char *msg, int len)
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment