sockets.c, igmp.c, igmp.h, memp.h: Fix C++ style comments and

comment out missing header include in icmp.c
This commit is contained in:
kieranm 2007-03-21 12:50:04 +00:00
parent eab3667b61
commit b422864d5d
5 changed files with 11 additions and 6 deletions

View File

@ -67,6 +67,10 @@ HISTORY
++ Bug fixes:
2007-03-21 Kieran Mansley
* sockets.c, igmp.c, igmp.h, memp.h: Fix C++ style comments and
comment out missing header include in icmp.c
2007-03-20 Frédéric Bernon
* memp.h, stats.c: Fix stats_display function where memp_names table wasn't
synchronized with memp.h.

View File

@ -1239,9 +1239,10 @@ int lwip_setsockopt (int s, int level, int optname, const void *optval, socklen_
break;
#if LWIP_IGMP
case IP_MULTICAST_TTL:
{ if(( optlen != sizeof(char) ) && ( optlen != sizeof(int) )) //NOTE, some BSD implementation use "int", some others "char"
{ err = EINVAL;
}
{
/* NOTE, some BSD implementation use "int", some others "char" */
if(( optlen != sizeof(char) ) && ( optlen != sizeof(int) ))
err = EINVAL;
break;
}
case IP_ADD_MEMBERSHIP:

View File

@ -77,7 +77,7 @@ Steve Reynolds
#include "lwip/igmp.h"
#include "arch/perf.h"
#include "arch/PNX_if.h"
/*#include "arch/PNX_if.h"*/
#include "string.h"

View File

@ -38,7 +38,7 @@
/* IGMP support available? */
#if defined(LWIP_IGMP) && (LWIP_IGMP > 0)
// Some routers are not happy with ROUTER ALERT make it defineable, 1 to enable
/* Some routers are not happy with ROUTER ALERT make it defineable, 1 to enable */
#define USE_ROUTER_ALERT 0
/*

View File

@ -35,7 +35,7 @@
#include "lwip/opt.h"
// If you change this enum, think to update memp_names in stats_display (stats.c)
/* If you change this enum, think to update memp_names in stats_display (stats.c) */
typedef enum {
MEMP_PBUF,
MEMP_RAW_PCB,