Re: dev_add_pack problem

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

 



Hi:
  Thanks for your reply. My original message wrote wrong,and my source code 
is use __constant_htons(0x700a). I apologize for this mistake.
  The problem is still the same. Is there any other solution?

  Thanks for your help

  Best regards
 

---------- Original Message -----------
From: Nagendra Singh Tomar <nagendra_tomar@adaptec.com>
To: blue <blue@wire.cs.nthu.edu.tw>
Cc: Linux-Net Archive <linux-net@vger.kernel.org>
Sent: Wed, 16 Jul 2003 15:00:58 +0530 (IST)
Subject: Re: dev_add_pack problem

> 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
> >
------- End of Original Message -------

-
: 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