Browse Source

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

comment out missing header include in icmp.c
STABLE-2_1_x
kieranm 19 years ago
parent
commit
b422864d5d
  1. 4
      CHANGELOG
  2. 7
      src/api/sockets.c
  3. 2
      src/core/ipv4/igmp.c
  4. 2
      src/include/ipv4/lwip/igmp.h
  5. 2
      src/include/lwip/memp.h

4
CHANGELOG

@ -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.

7
src/api/sockets.c

@ -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:

2
src/core/ipv4/igmp.c

@ -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"

2
src/include/ipv4/lwip/igmp.h

@ -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
/*

2
src/include/lwip/memp.h

@ -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,

Loading…
Cancel
Save