Skip to main content
FSoui.1
Associate
March 4, 2022
Question

How to remove the automatic response of the network stack on the STM ?

  • March 4, 2022
  • 2 replies
  • 1190 views

Hello ST community,

So I am working on this project using STM32F746G-DISCOVERY KIT and I want to have full control of the network stack behavior. For example when I send ping from the PC to the STM I don't want to receive an automatic pong.

Thank you.

This topic has been closed for replies.

2 replies

Mike_ST
ST Technical Moderator
March 4, 2022

Hello,

As far as I remember, Ping is part of ICMP protocol.

If you're using LWIP, there is that line in the lwipopts.h:

#define LWIP_ICMP                      1

I would try to set it to 0.

That's just a guess, never tried.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. 
FSoui.1
FSoui.1Author
Associate
March 4, 2022

Thank you, I will try it