In T2080 Processor with linux 4.20 unable to receive raw packets sent from x86 PC using raw socket. Same is working in linux-4.1.8 .
Kindly provide solution how to make it work in linux 4.20
Please be aware, that NXP does not test every kernel release. For
your processor, we recommend staying with the most recent QorIQ
Yocto-based SDK release which is built around kernel version 4.14:
https://source.codeaurora.org/external/qoriq/qoriq-components/yocto-sdk
If you wish NXP to add SDK support to a custom kernel release, consider
our paid Professional Services:
https://www.nxp.com/support/support/nxp-professional-services:PROFESSIONAL-SERVICE
Have a great day,
Platon
Dear Platon,
Thanks for the reply.
Tested raw socket with recent yocto-based SDK release from the link shared by you.
https://source.codeaurora.org/external/qoriq/qoriq-components/yocto-sdk
And I am facing the same issue.
"Not able to receive raw packets from host pc(x86) sent using raw socket,
Always "net_ratelimit: x callbacks suppressed" is printed in my processor baord when i am trying to send raw packet from host PC"
Kindly provide solution.
Thanks and Regards ,
Bhargav.
How exactly you determine that the system fails to receive the packets?
What methods/APIs are you using to receive, and what is actually observed,
any errors returned or just nothing is received? Can you capture your
raw packets with tcpdump or socat running on the target?
Hi,
After debbuging found that, in linux 4.14 the raw packets are dropped because of header checksum error .So Updated the code by adding IP header checksum in the packet . Now it is working fine.
But in Linux 4.1.8 Header checksum error is not happening, can you provide the difference between linux 4.1.8 and 4.14 in receiving the raw packet.
Regards,
M.Bhargav
I'm not sure what this is about. If a frame contains an IP header,
it must have a valid IP header chescksum. Otherwise, it will fail
to traverse the nearest IP gateway. Software that deliberately creates
a broken checksum header should not expect it to be received by any
kernel version.
Have a great day,
Platon
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Thanks for the reply.
Facing the same issue with Kernel 4.14 from recent QorIQ Yocto-based SDK release
https://source.codeaurora.org/external/qoriq/qoriq-components/yocto-sdk
Kindly provide solution.