Re: doubt

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

 



> thank you for your information..I have implemented exactly the same but in
> the receiver side it is not received..so can u please tell me the flow at
> transmitter side just at ethernet layer...

So you've decompressed the incoming skb and have made sure that the ip_rcv hander has processed it?  Check to make sure, this is where badly formed IP packets are dropped or accepted (look in net/ipv4/ip_input.c). Please give more detailed information about the 'trace' of the incoming packet.

me....

> ip_build_xmit( ) --> output_maybe_reroute( )--> ip_finish_output2( )-->
> dev_queue_xmit( ) --> qdisc_run( )--> qdisc_restart --> [
> dev->hard_start_xmit( )]
> 

Also, make sure that your compressed packet is being sent.  Since the registered network tap is below your code, you can tcpdump it on the same machine.  Provide more detailed information about the path the outgoing skb.

Also, note that if you register a packet handler (as per the previous email) you cannot modify the sending packet.  You'll need to somehow drop it (probably replacing the hard_start_xmit func) and send a cloned skb instead.  This is due to skb using shared memory and that a packet handlers get passed new skbs (so sequence of handler addition doesn't matter).

Regards,
Mazhar
--
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