How to reject ethernet packets in imx6-sx?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to reject ethernet packets in imx6-sx?

692件の閲覧回数
241120744
Contributor I

   I use the imx6-sx in our project, the ENET1 connect to a 88E1111 phy chip as the management network port, the OS is the official linux 4.9.11, the ENET1 works well except when I want to reject ethernet packets who's DA is not ours MAC.

   According to IMX6SXRM document, I set the device's MAC to ENET1_PALR and ENET1_PAUR, then I set ENET1_RCR[PROM] to 0, I think it means that the promiscuous mode is disable, the packet enter ENET1 would be checked whether the DA is matching the device's MAC(because I have config ENET1_PALR and ENET1_PAUR).

   But I found it's not work, no matter the packet's DA is broadcast or unicast MAC,I can capture the packet by tcpdump.

   So I want to know how to reject the packet which MAC is not the device's MAC, can I use the promiscuous mode to achieve this function?

   Thanks.

ラベル(1)
0 件の賞賛
2 返答(返信)

579件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi 凯 刘

may be suggested to test with nxp linux from official repository:

linux-imx - i.MX Linux kernel 

in promiscuous mode controller passes all traffic it receives and usually used for packet sniffing 

Promiscuous mode - Wikipedia 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛

579件の閲覧回数
241120744
Contributor I

Hi igorpadykov,

In my project, the CPU seems to be work in promiscuous mode, I want it works in normal mode(it can reject other packet), but it's not work, I'll try the official nxp linux later and tell you the result.

0 件の賞賛