Re: New header in packet

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

 



There was a slight error in what i said below.

I set eth->h_proto to ETH_P_IP
But i set skb->protocol to __constant_htons(OUR_PKT)

Regards,
Amit

On Mon, 25 Jun 2001, Amit Kucheria wrote:

> Do you mean the eth->h_proto field ?
>
> If so, i already set it to __constant_htons(OUR_PKT)
> I have already registered this packet type using dev_add_pack().
>
> I use this OUR_PKT type to distinguish my packets from others. The recv fn
> for this packet type points to my "recv" function.
>
> Regards,
> Amit
>
> On Mon, 25 Jun 2001, Patrick Schaaf wrote:
>
> > Hi,
> >
> > you probably want to learn about the ethernet type field...
> >
> > regards
> >   Patrick
> >
> > > 14:29:05.003856 eth0 < truncated-ip - 157 bytes missing!10.5.1.2 >
> > > 69.0.0.84: (frag 2573:217@2056) [tos 0x5]  (ttl 3, bad cksum 0!,
> > > optlen=20[|ip])
> > ...

-- 
^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^
                  Amit Kucheria
          EECS Grad. Research Assistant
           Team Niehaus || Room # 245E
         University of Kansas @ Lawrence
   (R)+1-(785)-830 8521 ||| (O)+1-(785)-864 7774
____________________________________________________


-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org


[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