Raw Socket Data Receive

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Raw Socket Data Receive

2,106 次查看
bhargavram
Contributor I

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

标签 (1)
0 项奖励
回复
6 回复数

1,911 次查看
bpe
NXP Employee
NXP Employee

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

0 项奖励
回复

1,912 次查看
bhargavram
Contributor I

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.

0 项奖励
回复

1,912 次查看
bpe
NXP Employee
NXP Employee


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?

0 项奖励
回复

1,912 次查看
bhargavram
Contributor I

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

0 项奖励
回复

1,912 次查看
bpe
NXP Employee
NXP Employee

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

0 项奖励
回复

1,912 次查看
bhargavram
Contributor I

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.

0 项奖励
回复