/[lwip]/lwip/src/api/sockets.c
ViewVC logotype

Diff of /lwip/src/api/sockets.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.16.2.4 by kieranm, Wed Sep 10 17:14:27 2003 UTC revision 1.16.2.5 by kieranm, Mon Sep 22 09:38:09 2003 UTC
# Line 1007  int lwip_getsockopt (int s, int level, i Line 1007  int lwip_getsockopt (int s, int level, i
1007        /* UNIMPL case SO_SNDBUF: */        /* UNIMPL case SO_SNDBUF: */
1008        /* UNIMPL case SO_RCVLOWAT: */        /* UNIMPL case SO_RCVLOWAT: */
1009        /* UNIMPL case SO_SNDLOWAT: */        /* UNIMPL case SO_SNDLOWAT: */
1010        /* UNIMPL case SO_REUSEADDR: */  #ifdef SO_REUSE
1011        /* UNIMPL case SO_REUSEPORT: */        case SO_REUSEADDR:
1012          case SO_REUSEPORT:
1013    #endif /* SO_REUSE */
1014        case SO_TYPE:        case SO_TYPE:
1015        /* UNIMPL case SO_USELOOPBACK: */        /* UNIMPL case SO_USELOOPBACK: */
1016          if( *optlen < sizeof(int) ) {          if( *optlen < sizeof(int) ) {
# Line 1091  int lwip_getsockopt (int s, int level, i Line 1093  int lwip_getsockopt (int s, int level, i
1093      /* UNIMPL case SO_DONTROUTE: */      /* UNIMPL case SO_DONTROUTE: */
1094      case SO_KEEPALIVE:      case SO_KEEPALIVE:
1095      /* UNIMPL case SO_OOBINCLUDE: */      /* UNIMPL case SO_OOBINCLUDE: */
1096      /* UNIMPL case SO_REUSEADDR: */  #ifdef SO_REUSE
1097      /* UNIMPL case SO_REUSEPORT: */      case SO_REUSEADDR:
1098        case SO_REUSEPORT:
1099    #endif /* SO_REUSE */
1100      /*case SO_USELOOPBACK: UNIMPL */      /*case SO_USELOOPBACK: UNIMPL */
1101        *(int*)optval = sock->conn->pcb.tcp->so_options & optname;        *(int*)optval = sock->conn->pcb.tcp->so_options & optname;
1102        LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_getsockopt(%d, SOL_SOCKET, optname=0x%x, ..) = %s\n", s, optname, (*(int*)optval?"on":"off")));        LWIP_DEBUGF(SOCKETS_DEBUG, ("lwip_getsockopt(%d, SOL_SOCKET, optname=0x%x, ..) = %s\n", s, optname, (*(int*)optval?"on":"off")));
# Line 1192  int lwip_setsockopt (int s, int level, i Line 1196  int lwip_setsockopt (int s, int level, i
1196      /* UNIMPL case SO_SNDBUF: */      /* UNIMPL case SO_SNDBUF: */
1197      /* UNIMPL case SO_RCVLOWAT: */      /* UNIMPL case SO_RCVLOWAT: */
1198      /* UNIMPL case SO_SNDLOWAT: */      /* UNIMPL case SO_SNDLOWAT: */
1199      /* UNIMPL case SO_REUSEADDR: */  #ifdef SO_REUSE
1200      /* UNIMPL case SO_REUSEPORT: */      case SO_REUSEADDR:
1201        case SO_REUSEPORT:
1202    #endif /* SO_REUSE */
1203      /* UNIMPL case SO_USELOOPBACK: */      /* UNIMPL case SO_USELOOPBACK: */
1204        if( optlen < sizeof(int) ) {        if( optlen < sizeof(int) ) {
1205          err = EINVAL;          err = EINVAL;
# Line 1272  int lwip_setsockopt (int s, int level, i Line 1278  int lwip_setsockopt (int s, int level, i
1278      /* UNIMPL case SO_DONTROUTE: */      /* UNIMPL case SO_DONTROUTE: */
1279      case SO_KEEPALIVE:      case SO_KEEPALIVE:
1280      /* UNIMPL case SO_OOBINCLUDE: */      /* UNIMPL case SO_OOBINCLUDE: */
1281      /* UNIMPL case SO_REUSEADDR: */  #ifdef SO_REUSE
1282      /* UNIMPL case SO_REUSEPORT: */      case SO_REUSEADDR:
1283        case SO_REUSEPORT:
1284    #endif /* SO_REUSE */
1285      /* UNIMPL case SO_USELOOPBACK: */      /* UNIMPL case SO_USELOOPBACK: */
1286        if ( *(int*)optval ) {        if ( *(int*)optval ) {
1287          sock->conn->pcb.tcp->so_options |= optname;          sock->conn->pcb.tcp->so_options |= optname;

Legend:
Removed from v.1.16.2.4  
changed lines
  Added in v.1.16.2.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26