Hi
I am using S32K3 Design studio with FreeRTOS, LWIP component.
Question) By raw socket , can I make promiscuous mode like below?
PF_PACKET, SIOCGIFFLAGS, IFF_PROMISC is not defined.
But SW32K3_TCPIP_STACK_1_0_4 / 1_0_3 doesn't support it.
Is there any other method?
~~~~
Solved! Go to Solution.
Hi @Changhawn,
You can set promiscuous mode by writing a 1 to MAC_Packet_Filter[PR]:
See chapter 76.17.4 (MAC_Packet_Filter) from the reference manual.
Also, promiscuous mode is set as
GMAC_PKT_FILTER_PROMISCUOUS_MODE = GMAC_MAC_PACKET_FILTER_PR_MASK, /*!< Passes all incoming packets irrespective of the destination or source address. */
In the Gmac_Ip_Types.h file from the RTD include directory.
Best regards,
Julián
Hi @Changhawn,
You can set promiscuous mode by writing a 1 to MAC_Packet_Filter[PR]:
See chapter 76.17.4 (MAC_Packet_Filter) from the reference manual.
Also, promiscuous mode is set as
GMAC_PKT_FILTER_PROMISCUOUS_MODE = GMAC_MAC_PACKET_FILTER_PR_MASK, /*!< Passes all incoming packets irrespective of the destination or source address. */
In the Gmac_Ip_Types.h file from the RTD include directory.
Best regards,
Julián
Thank u for your support.