Bug#386498: CHECKSUM_HW undeclared

Jens Wilke jw_vzaphfc_debianbugs at headissue.com
Fri Nov 3 17:25:23 CET 2006


The define CHECKSUM_HW is removed from the kernel, See:
http://lwn.net/Articles/200304/

Please try this patch and give feedback:

--- vzaphfc_main.c      3 Nov 2006 15:19:08 -0000       1.1
+++ vzaphfc_main.c      3 Nov 2006 16:21:41 -0000
@@ -1326,7 +1326,11 @@

        skb->dev = card->chans[D].netdev;
        skb->protocol = htons(card->chans[D].protocol);
+#ifndef CHECKSUM_HW
+       skb->ip_summed = CHECKSUM_COMPLETE;
+#else
        skb->ip_summed = CHECKSUM_HW;
+#endif
        skb->pkt_type = PACKET_OUTGOING;

        memcpy(skb_put(skb, card->chans[D].tx.ugly_framebuf_size),
@@ -1522,8 +1526,14 @@
                        skb->dev = chan->netdev;
                        skb->pkt_type = PACKET_HOST;
                }
-
-               skb->ip_summed = CHECKSUM_HW; // HFC does the checksum
+
+
+               // HFC does the checksum
+#ifndef CHECKSUM_HW
+               skb->ip_summed = CHECKSUM_COMPLETE;
+#else
+               skb->ip_summed = CHECKSUM_HW;
+#endif

                if (chan->open_by_zaptel) {
                        card->chans[D].rx.ugly_framebuf_size = frame_size - 1;




More information about the Pkg-voip-maintainers mailing list