Our marketing group asked me if it could be possible add a feature to my lwip based board: they want that board implements ICMP (so, sends ping answer) in default version, but they also want the possibility to disable it using a tcp command. (to avoid hacking)
I have non volatile memory on my board, so i can save this information and force a hot restart of board (so, restart lwip stack and application).
But i saw in code only a define for compile/not compile ICMP: how can change this to manage ICMP on/off after a reset?
(i'm thinking to put an "if(optionPingEnabled)..." everywhere i see LWIP_ICMP, but i'd like don't change lwip code... i'm searching a workaround if exist)