Kernel warning messages- protocol 0000 is buggy, dev eth0

Bjørn Mork bjorn at mork.no
Tue Mar 19 10:45:54 EDT 2013


Sengottuvelan S <sengottuvelan.s at gmail.com> writes:

> Hi
>
> I am getting kernel messages = "protocol 0000 is buggy, dev eth0" in my
> kernel while calling   dev_queue_xmit(skb);. The packet is successfully
> tranmitted on the wire but these messages are keep coming on the console.
>
> I am not sure what is the exact modification needed to avoid these kernel
> messages. Can you someone help on this.
>
> Exact code I have in my driver code:
> tx_len is length of the  packet to be transmitted
> tx_packet is the pointer to packet container.
>
>
>    skb = dev_alloc_skb(tx_len);
>     if (skb == NULL)
>       return -1;
>    skb_put(skb,tx_len);
>
>    memcpy(skb->data, tx_packet, tx_len);
>
>    skb->dev = dev_my_device;
>
>    skb->len = tx_len;
>
>   dev_queue_xmit(skb);
>   dev_put ( dev_my_device);
>   return 0;

You didn't set skb->network_header.


Bjørn



More information about the Kernelnewbies mailing list