Hi Kieran,
LWIP_ICMP will disable echo reply but only at compile time.
I was wondering if there is a way to enable or disable it in real time.

A simple way to do it could be using a global variable, (int g_EnablePing =
1)
and testing in icmp.c for its value before answering to a echo request. But
this would require a modification of lwip source code.

Is there a better way to do so, maybe already defined in the source code?
I haven't found it yet.

Any other opinion?

Thanks,
Stefano

-----Original Message-----
From: [email protected]
[mailto:[email protected]]on
Behalf Of Kieran Mansley
Sent: venerdì 27 agosto 2010 17.04
To: Mailing list for lwIP users
Subject: Re: [lwip-users] Programmatically disable ICMP echo reply


On Fri, 2010-08-27 at 16:09 +0200, Bettega Stefano wrote:
> Hi,
> is there a way to programmatically disable ICMP echo reply in lwip?

The closest is to define LWIP_ICMP to 0.  This is stop all ICMP
processing rather than just preventing echo replies though.

Kieran


_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users


_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to