Commit Graph

1167 Commits

Author SHA1 Message Date
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
goldsimon
837cb42679 Done some work on task #1549 (function documentation) 2007-06-08 20:59:17 +00:00
goldsimon
0e9cb48ea1 Changed define NETIF_INIT_SNMP(type, speed) to include the name of the struct netif to change... 2007-06-08 19:59:20 +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
0b9c9f9ede pbuf_copy(): Corrected a wrong comment & try to behave correctly if LWIP_NOASSERT is defined 2007-06-08 17:27:36 +00:00
goldsimon
8e65fb920f loopif_output(): use pbuf_copy() to copy the pbuf to reduce code size 2007-06-08 17:24:58 +00:00
goldsimon
945460c67e Added define NETIF_INIT_SNMP(type, speed) to initialize per-netif snmp variables, added initialization of those to slipif and loopif. 2007-06-08 17:17:41 +00:00
goldsimon
b7e4d2a8ff Done some work on task #1549 (function documentation) and minor changes to meet coding standard + added some comments to make the code easier to read. 2007-06-08 17:10:05 +00:00
fbernon
9768657fc7 Minor fix (spaces) 2007-06-08 16:24:28 +00:00
goldsimon
a185e19bc1 Let lookup_group() call lookfor_group() to reduce code size, done some work on task #1549 (function documentation) and minor changes to meet coding standard 2007-06-08 12:54:40 +00:00
goldsimon
b7603f8600 Done some work on task #1549 (function documentation) 2007-06-08 12:52:46 +00:00
goldsimon
d8d281281c Done some work on task #1549 (function documentation) 2007-06-08 12:08:44 +00:00
goldsimon
5ee9c95ebd Fixed a cast warning by including the type to TCP_PCB_COMMON: (Moved members common to structures tcp_pcp and tcp_listen_pcb into define TCP_PCB_COMMON (like IP_PCB) to keep (possible) code changes consistent.) 2007-06-08 12:00:45 +00:00
goldsimon
fb5a1a2c0f Minor changes to meet coding standard 2007-06-08 11:51:57 +00:00
goldsimon
4a5a7ee922 Done some work on task #1549 (function documentation) 2007-06-08 11:49:59 +00:00
goldsimon
d258bc263a Done some work on task #1549 (function documentation) 2007-06-08 11:35:54 +00:00
goldsimon
8a30754e9c Done some work on task #1549 (function documentation) and minor changes to meet coding standard 2007-06-08 11:30:14 +00:00
goldsimon
a14bc9ed44 Moved members common to structures tcp_pcp and tcp_listen_pcb into define TCP_PCB_COMMON (like IP_PCB) to keep (possible) code changes consistent. 2007-06-08 11:28:47 +00:00
fbernon
75adf4bac6 Fix typo and remove RAW_STATS (not used) 2007-06-08 07:22:21 +00:00
goldsimon
8d6013454c Done some work on task #1549 (function documentation) 2007-06-07 21:36:20 +00:00
goldsimon
1a25062af0 Done some work on task #1549 (function documentation) 2007-06-07 21:29:44 +00:00
goldsimon
8aedcadd3e Done some work on task #1549 (function documentation) and minor changes to meet coding standard 2007-06-07 21:29:13 +00:00
goldsimon
027d59fd46 Done some work on task #1549 (function documentation) 2007-06-07 20:56:48 +00:00
fbernon
273e70e403 Minor, fix an obsolete comment about LWIP_SO_RCVTIMEO 2007-06-07 14:18:38 +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
9ee40d9f88 Defined IGMP_DEBUG defaulting to LWIP_DBG_OFF in opt.h 2007-06-05 18:19:48 +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
3a429eabcd Set q to NULL after freeing it before returning: cleaner code! 2007-06-04 10:42:03 +00:00
fbernon
9209a2ee33 Minor fix for warning: pbuf_copy declaration is now mandatory (since it's used in icmp.c) 2007-06-04 09:54:58 +00:00
goldsimon
3a607a197e opt.h, ip_frag.c, ip_frag.h, ip.c: Added option IP_FRAG_USES_STATIC_BUF (defaulting to off for now) that can be set to 0 to send fragmented packets by passing PBUF_REFs down the stack. 2007-06-03 18:36:42 +00:00
goldsimon
3639daa329 IPv6: #define IPH_PROTO(hdr) (iphdr->nexthdr) to remove #ifdef IPv6 in udp_input() 2007-06-03 18:10:33 +00:00
goldsimon
8fd6a61df6 Done some work on task #1549 (function documentation) 2007-06-03 18:05:52 +00:00
goldsimon
a6b0d40f9d Converted some DEBUGFs that should never happen to LWIP_ASSERTs 2007-06-03 17:18:33 +00:00
goldsimon
974cf08e5d udp_input(): Input pbuf was not freed if pcb had no recv function registered, p->payload was modified without modifying p->len if sending icmp_dest_unreach() (had no negative effect but was definitively wrong). 2007-06-03 11:32:03 +00:00
goldsimon
75fd6fc4a4 Needed for patch to bug #19937: pbuf_copy is always compiled, not only if ARP_QUEUEING is enabled 2007-06-03 11:28:25 +00:00
goldsimon
4f7dc3c76c Done some work on task #1549 (function documentation) 2007-06-03 11:26:55 +00:00
goldsimon
7abfe74fa4 Corrected bug #19937: ICMP assumes p_buf has space for ethernet header. Allocating new pbuf if the input pbuf isn't big enough. 2007-06-03 10:48:23 +00:00
goldsimon
d5a159d7af Done some work on task #1549 (function documentation) 2007-06-02 17:12:36 +00:00
goldsimon
add68e0da1 Checked in patch #5914: Moved sockopt processing into tcpip_thread. 2007-06-01 17:15:54 +00:00
goldsimon
a85f9db5b1 Made etharp_find_addr() use find_entry to concentrate the knowledge of arp_table layout in find_entry(). 2007-06-01 17:11:47 +00:00
goldsimon
c43ab76bbe Use TCP_RMV instead of tcp_pcb_remove when removing pcbs from tcp_bound_pcbs list (bug introduced while fixing bug #1895) 2007-05-29 11:02:53 +00:00
goldsimon
98df3c6e0a Removed LWIP_DEBUG_ASSERT 2007-05-24 07:19:34 +00:00
fbernon
0a4130a4ff Minor, fix files modified by last patch... 2007-05-23 19:49:55 +00:00
fbernon
93828fde80 Fixed patch #5965 : Remove unused conntype in struct api_msg_msg, by Simon Goldsmith 2007-05-23 19:28:07 +00:00
fbernon
a3fdc33f88 api_lib.c: Implement SO_RCVTIMEO for accept and recv on TCP connections, such present in patch #5959. 2007-05-23 19:18:09 +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
0fe5dd8d43 api_lib.c: Fixed bug #5957 "Safe-thread problem inside netconn_recv" to return an error code if it's impossible to fetch a pbuf on a TCP connection (and not directly close the recvmbox). 2007-05-23 17:53:35 +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
fbernon
d1ef610822 Minor fix (spaces, indent) and check for LWIP_SO_RCVTIMEO.. 2007-05-22 21:29:04 +00:00
fbernon
2ff620e1b5 sys.h, sys.c, api_lib.c, tcpip.c: remove sys_mbox_fetch_timeout() (was only used for LWIP_SO_RCVTIMEO option) and use sys_arch_mbox_fetch() instead of sys_mbox_fetch() in api files. Now, users SHOULD NOT use internal lwIP features like "sys_timeout" in their application threads. 2007-05-22 20:51:34 +00:00