Re: dev_add_pack problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



packet_type's protocol should be set to __constant_htons(0x700a) (note: 
htons)
ethernet header type should be set to __constant_htons(0x700a), note that 
both are in network byte order..

tomar

On Wed, 16 Jul 2003, blue wrote:

> Hi, all:
>   I wrote my own packet_type, and then call dev_add_pack() to add the
> new 
> packet type in. My packet_type's protocol is set to __constant_ntohs( 
> 0x700a )
> 
>   When I made up sk_buff (The ethernet header type field is also 
> __constant_ntohs(0x700a) )and call dev_queue_xmit(), I saw the kernel 
> message: 0x0a70 buggy protocol. The sender didn't send the packet out 
> correctly!!!
> 
>   Am I do something wrong? I've searched several days, but every related
> 
> site tells me just use "dev_add_pack()" then this could succeed.
> 
>   Best regards!
> 
>   Yi-Wen
> -
> : send the line "unsubscribe linux-net" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux