fbernon
|
95f2d48ac4
|
Avoid to lost previous error codes in sockets.c and api_lib.c.
|
2007-09-13 15:03:42 +00:00 |
|
fbernon
|
8205737fdb
|
sockets.c, ip.h, api.h, tcp.h: declare a "struct ip_pcb" which only contains IP_PCB. Add in the netconn's "pcb" union a "struct ip_pcb *ip;" (no size change). Use this new field to access to common pcb fields (ttl, tos, so_options, etc...). Enable to access to these fields with LWIP_TCP=0.
|
2007-09-07 23:47:02 +00:00 |
|
fbernon
|
e3cd1ac1f9
|
Minor changes (but in lot of files): add #if/#endif for options where they could miss. #if LWIP_xxx if always put after #include "lwip/opt.h" (note this one indirectly include cc.h). Move others includes inside #if/#endif block.
|
2007-09-07 23:01:59 +00:00 |
|
fbernon
|
62b4741b19
|
Changes for "#20503 IGMP Improvement". Initialize igmp_mac_filter to NULL in netif_add (this field should be set in the netif's "init" function). Use the "imr_interface" field (for socket layer) and/or the "interface" field (for netconn layer), for join/leave operations. The igmp_join/leavegroup first parameter change from a netif to an ipaddr. This field could be a netif's ipaddr, or "any" (same meaning than ip_addr_isany).
|
2007-09-03 14:53:18 +00:00 |
|
fbernon
|
da7b5135de
|
Minor Fix (ident)
|
2007-08-29 20:50:53 +00:00 |
|
fbernon
|
c4b97a1710
|
Forget to rename this line (pbuf->flgs->pbuf->flags)
|
2007-08-22 08:47:48 +00:00 |
|
fbernon
|
885695fa67
|
Minor changes (tabs)
|
2007-08-17 10:46:07 +00:00 |
|
marcbou
|
d907bcd57a
|
lwip_recvfrom() tweaks.
|
2007-08-17 05:55:24 +00:00 |
|
marcbou
|
c517f6daf9
|
Backed out lwip_close() change after discussion with Frederic.
|
2007-08-16 23:09:04 +00:00 |
|
marcbou
|
4236699052
|
Split pbuf flags in pbuf type and flgs.
Improved lwip_recvfrom(). TCP push now propagated.
|
2007-08-16 20:22:15 +00:00 |
|
marcbou
|
a3c3f47e17
|
lwip_close(): call netconn_delete() under socksem to properly handle
concurrent closes.
|
2007-08-16 20:08:33 +00:00 |
|
marcbou
|
0b4402ebc8
|
lwip_accept(): check netconn_peer() error return.
|
2007-08-16 18:29:37 +00:00 |
|
fbernon
|
9152d6671c
|
Comments Fix for Doxygen documentation
|
2007-08-09 22:21:44 +00:00 |
|
fbernon
|
11c94b6566
|
Minor fix (spaces)
|
2007-08-09 10:51:26 +00:00 |
|
fbernon
|
fdc4c25e67
|
Minor fix (warnings on unused args, wrong type, cast u32_t to u16_t...)
|
2007-08-01 13:41:31 +00:00 |
|
fbernon
|
083134bc12
|
Minor fix (warning when LWIP_DEBUG is undefined)
|
2007-07-29 09:25:19 +00:00 |
|
fbernon
|
5d872b26a1
|
sockets.c: Fix a possible problem because any new socket can't be created during the "close" (which can be "long" since fix for bug #20021).
|
2007-07-04 21:13:25 +00:00 |
|
fbernon
|
b6750de9e8
|
sockets.h, sockets.c: Implement MSG_PEEK flag for recv/recvfrom functions.
|
2007-06-30 13:24:11 +00:00 |
|
goldsimon
|
d73ca29a07
|
Fixed minor indentation fault
|
2007-06-28 10:29:13 +00:00 |
|
fbernon
|
dd1cd5e491
|
sockets.c: process NETCONN_RAW connections with LWIP_TCPIP_CORE_LOCKING=1
|
2007-06-28 09:56:37 +00:00 |
|
goldsimon
|
6f93a8f091
|
Set the err_to_errno_table to be const
|
2007-06-26 17:38:52 +00:00 |
|
goldsimon
|
bb9e9e5480
|
Changed the expression of LWIP_ERROR to the same as for LWIP_ASSERT
|
2007-06-22 20:50:21 +00:00 |
|
goldsimon
|
065b8c945b
|
Added ASSERT to check that lwip_send(to) is not called for length not fitting into u16_t (for UDP & RAW sockets)
|
2007-06-21 19:58:31 +00:00 |
|
goldsimon
|
9e0252b209
|
Corrected two formatters in LWIP_DEBUGF calls
|
2007-06-18 19:23:27 +00:00 |
|
goldsimon
|
531ea17088
|
Forgot to implement getsockopt for SO_NO_CHECK
|
2007-06-17 19:18:59 +00:00 |
|
goldsimon
|
ced2543be0
|
Done some work on task #6933: converted some LWIP_ASSERTs to LWIP_ERROR to give back an error return value for LWIP_NOASSERT=1
|
2007-06-17 14:39:50 +00:00 |
|
goldsimon
|
ea7b0052f3
|
Implemented socket options SO_NO_CHECK for UDP sockets to disable UDP checksum generation on transmit.
|
2007-06-17 11:46:30 +00:00 |
|
fbernon
|
ab4b59afb9
|
Partial fix for bug# 20147: "getsockopt() with SO_ERROR option" 'socket layer error is not updated if no operation on netconn).
|
2007-06-11 20:16:38 +00:00 |
|
goldsimon
|
046a270156
|
Added UDP lite support for sockets
|
2007-06-11 18:43:16 +00:00 |
|
fbernon
|
a42baedc28
|
Just add a comment to explain that the lwip_sendto patch for LWIP_TCPIP_CORE_LOCKING option is just show a sample (it's not a full implementation, RAW connection and "to" field are not handled, ...)
|
2007-06-09 09:59:16 +00:00 |
|
goldsimon
|
613acd93c0
|
Minor change: don't define some local (unused) variables if LWIP_TCPIP_CORE_LOCKING=1
|
2007-06-08 21:33:28 +00:00 |
|
fbernon
|
090aaefb39
|
Add LWIP_TCPIP_CORE_LOCKING option (0 as default value) to experiment "locking" as feature to communicate with tcpip_thread for sequential API (netconn & socket layers). Add a alternative code for lwip_sendto to how the code can be optimized with such feature....
|
2007-06-08 19:27:59 +00:00 |
|
goldsimon
|
aee6c1f72f
|
Corrected setsockopt for LWIP_IGMP=1 (did not compile & errors were not returned)
|
2007-06-05 18:46:10 +00:00 |
|
goldsimon
|
754fe60979
|
Typo in lwip_setsockopt() (getsockopt_internal was called instead of setsockopt_internal!!!)
|
2007-06-05 07:38:39 +00:00 |
|
goldsimon
|
add68e0da1
|
Checked in patch #5914: Moved sockopt processing into tcpip_thread.
|
2007-06-01 17:15:54 +00:00 |
|
fbernon
|
a330917ee8
|
api_lib.c, sockets.c: Fixed bug #5958 for netconn_listen (acceptmbox only allocated by do_listen if success) and netconn_accept errors handling. In most of api_lib functions, we replace some errors checkings like "if (conn==NULL)" by ASSERT, except for netconn_delete.
|
2007-05-23 18:43:30 +00:00 |
|
fbernon
|
953d783a3e
|
api.h, api_lib.c, api_msg.c, sockets.c: group the different NETCONN_UDPxxx code in only one part...
|
2007-05-23 17:46:53 +00:00 |
|
goldsimon
|
b5ab0c5285
|
Included some missing braces in lwip_send & lwip_sendto (if !LWIP_UDP && !LWIP_RAW)
|
2007-05-22 20:32:22 +00:00 |
|
goldsimon
|
2442b985bf
|
Broke some (too long) lines down to multiple lines, made the file fit our coding standards
|
2007-05-22 20:30:30 +00:00 |
|
fbernon
|
6bfa99a774
|
Minor fixs to reduce footprint on the "recv part" of Sequential API...
|
2007-05-19 13:54:56 +00:00 |
|
goldsimon
|
8fa3b6802e
|
Added #if !NO_SYS to most of the api files since they only work with a sys layer (makes it easier for port projects).
|
2007-05-18 11:27:46 +00:00 |
|
goldsimon
|
efd3104fd0
|
Fixed bug from patch #5865 by moving the defines for socket options (lwip_set/-getsockopt) used with level IPPROTO_TCP from tcp.h to sockets.h.
|
2007-05-13 14:34:02 +00:00 |
|
fbernon
|
9cf1390dc6
|
sockets.c, api_lib.c, api_msg.h, api_msg.c, netifapi.h, netifapi.c, tcpip.c: Include a function pointer instead of a table index in the message to reduce footprint. Disable some part of lwip_send and lwip_sendto if some options are not set (LWIP_TCP, LWIP_UDP, LWIP_RAW).
|
2007-05-11 08:58:23 +00:00 |
|
goldsimon
|
255d5a748f
|
Included patch #5920: Create define to override C-library memcpy. 2 Defines are created: MEMCPY() for normal memcpy, SMEMCPY() for situations where some compilers might inline the copy and save a function call. Also replaced all calls to memcpy() with calls to (S)MEMCPY().
|
2007-05-10 05:20:05 +00:00 |
|
fbernon
|
5a12aeb4a1
|
sockets.c, api.h, api_lib.c, api_msg.h, api_msg.c: Fix bug #19162 "lwip_sento: a possible to corrupt remote addr/port connection state". Reduce problems "not enought memory" with netbuf (if we receive lot of datagrams). Improve lwip_sendto (only one exchange between sockets api and api_msg which run in tcpip_thread context). Add netconn_sento function. WARNING, if you directly access to "fromaddr" & "fromport" field from netbuf struct, these fields are now renamed "addr" & "port".
|
2007-05-04 15:18:29 +00:00 |
|
jifl
|
e895aa71a4
|
* sockets.c: Fix ioctl FIONREAD when some data remains from last recv.
(patch #3574).
|
2007-05-03 19:13:27 +00:00 |
|
fbernon
|
7fdd312cca
|
sockets.c: remplace ENOBUFS errors on alloc_socket by ENFILE to be more BSD compliant.
|
2007-04-05 16:49:33 +00:00 |
|
goldsimon
|
f6bdd2cae4
|
Introduced #define LWIP_UNUSED_ARG(x) use this for and architecture-independent form to tell the compiler you intentionally are not using this variable. Can be overriden in cc.h.
|
2007-04-04 19:54:22 +00:00 |
|
fbernon
|
9ec08fa76a
|
Missing recv_timeout initialize in accept_function. Minor style fix (indent, mbox checking...)
|
2007-03-28 18:21:24 +00:00 |
|
fbernon
|
913a99dd35
|
api.h, api_lib.c, sockets.c: netbuf_ref doesn't check its internal pbuf_alloc call result and can cause a crash. lwip_send now check netbuf_ref result.
|
2007-03-28 17:26:06 +00:00 |
|