Re: doubt

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

 



On Thu, 18 Jul 2002 Debarchan.Dash@lntinfotech.com wrote:

> 1) If I am sending a compressed packet from transmitting end then how
> the receiving side will come to know that it is a ful packet or
> compressed packet???

I assume that you have a way to get packets from IP layer, i.e. you have 
a driver which removes all headers and replaces them with a compressed 
RTP header.

You could define a new packet type in if_ether.h and using 
dev_add_pack(), define a cRTP_rcv() function for this packet type.

In the rcv() function you could replace the compressed header with the 
normal headers again.
 
> 2) As defined in the header file ifether.h so many ethernet packet
> types , if I use my own definition for full RTP packet & compressed
> RTP packet, will it work...???

Yes. it will work.

> I have written the compression code at transmitter as well as at
> receiver..but the problem is ion ethernet layer the packet type what I
> am setting is not reflected at the receiver.. How can I transmit the
> packet type on ethernet layer??

change the skb->protocol and eth_proto fields to the new packet type 
you have defined.

HTH.

ciao,
Amit
-- 
I'm an angel!!! Honest!
The horns are just there to hold the halo up straight.
^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^
                  Amit Kucheria
          EECS Grad. Research Assistant
         University of Kansas @ Lawrence
   (R): +1-785-830-8521 ||| (C): +1-785-760-2871
____________________________________________________


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux