lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [lwip-users] Programmatically disable ICMP echo reply


From: Bettega Stefano
Subject: RE: [lwip-users] Programmatically disable ICMP echo reply
Date: Fri, 27 Aug 2010 17:17:59 +0200

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: address@hidden
[mailto:address@hidden
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
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users




reply via email to

[Prev in Thread] Current Thread [Next in Thread]