ChangeSet 1.925.62.9, 2003/02/07 17:22:54+11:00, [EMAIL PROTECTED]
[PATCH] USB: kaweth fix
this is the length calculation fix against 2.5.
- fix DHCP problem with correct length calculation
Thanks to Oliver Kurth
diff -Nru a/drivers/usb/net/kaweth.c b/drivers/usb/net/kaweth.c
--- a/drivers/usb/net/kaweth.c Tue Feb 18 16:44:33 2003
+++ b/drivers/usb/net/kaweth.c Tue Feb 18 16:44:33 2003
@@ -713,7 +713,7 @@
static int kaweth_start_xmit(struct sk_buff *skb, struct net_device *net)
{
struct kaweth_device *kaweth = net->priv;
- char *private_header;
+ u16 *private_header;
int res;
@@ -745,7 +745,7 @@
}
private_header = __skb_push(skb, 2);
- *private_header = cpu_to_le16(skb->len);
+ *private_header = cpu_to_le16(skb->len-2);
kaweth->tx_skb = skb;
usb_fill_bulk_urb(kaweth->tx_urb,
-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel