New code from lwip project

lwip repo:
da19974 fixed bug #43235, cleared compiler warnings when using gcc with -Wextra option