fbernon
90a3f88c08
Change parameters list for sys_thread_new (see "task #7252 : Create sys_thread_new_ex()"). Two new parameters have to be provided: a task name, and a task stack size. For this one, since it's platform dependant, you could define the best one for you in your lwipopts.h. For port maintainers, you can just add these new parameters in your sys_arch.c file, and but it's not mandatory, use them in your OS specific functions.
19 years ago
fbernon
c1f89c5640
Move some build time checkings inside init.c for task #7142 "Sanity check user-configurable values".
19 years ago
fbernon
5865a78c1e
Minor fix (add some parenthesis where macro expansion could cause problems)
19 years ago
fbernon
d4616a7fc6
Replace mem_malloc call by memp_malloc, and use a new MEMP_NUM_IGMP_GROUP option (see opt.h to define the value). It will avoid potential fragmentation problems, use a counter to know how many times a group is used on an netif, and free it when all applications leave it. MEMP_NUM_IGMP_GROUP got 8 as default value (and init.c got a sanity check if LWIP_IGMP!=0).
19 years ago
fbernon
d794357504
Fix warnings inside sockets.c with "gcc" compilers. See "Description" in http://www.opengroup.org/onlinepubs/007908799/xns/syssocket.h.html :
19 years ago
fbernon
79b0484e20
Minor changes (fix some warnings like "function declaration isn't a prototype" and "no previous prototype for 'lwip_init'"...)
19 years ago
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).
19 years ago
fbernon
327f06bbaf
Replace "netif_default = NULL;" by "netif_set_default(NULL);" in netif_remove (do some processing, like for SNMP...)
19 years ago
fbernon
d7cd90b5b8
Add in igmp_joingroup & igmp_leavegroup a LWIP_ERROR checking on netif value.
19 years ago
fbernon
85fef90c94
Add enum snmp_ifType in snmp.h, and use it in network interfaces for NETIF_INIT_SNMP
19 years ago
fbernon
fca25479ad
Minor fix (else, cause build error). Since SO_REUSE is always used in the code (even if the current code is not working), it is defined in opt.h with 0 as default value (it's normal). So, the error is not if it is defined, but if it is defined to 1.
19 years ago
fbernon
231d965bcb
Minor fix (use ETHARP_HWADDR_LEN)
19 years ago
jgrubb
6c10282f9a
Put back in SO_REUSE
19 years ago
jgrubb
cb399272fd
Move deprecated options from opt.h to init.c
19 years ago
fbernon
245bce04d1
Add netbuf.h, netbuf.c, Change api.h, api_lib.c: #7249 "Split netbuf functions from api/api_lib". Now netbuf API is independant of netconn, and can be used with other API (application based on raw API, or future "socket2" API). Ports maintainers just have to add src/api/netbuf.c in their makefile/projects.
19 years ago
fbernon
3101bdf127
Add some others sanity checkings
19 years ago
fbernon
384ae9c407
Minor change (ident, remove comment, change trace text)
19 years ago
fbernon
c671f8e7ef
Replace API programmation error checking for IGMP join/leave (ismulticast(addr)) by LWIP_ERROR checking.
19 years ago
jifl
f39b9c85fe
Add further checks. Move compile-time checks out of LWIP_DEBUG ifdef
19 years ago
fbernon
ab36270885
igmp.h, igmp.c: Some changes to remove some redundant code, add some traces, and fix some coding style.
19 years ago
fbernon
bd65dd8098
init.c: Add first version of lwip_sanity_check for task #7142 "Sanity check user-configurable values".
19 years ago
fbernon
36b6f308e6
Minor fix (coding style, comments, spaces, endline...)
19 years ago
fbernon
cd208314e0
igmp.h, igmp.c, tcpip.c, init.c, netif.c: change igmp_init and add igmp_start. igmp_start is call inside netif_add. Now, igmp initialization is in the same spirit than the others modules. Modify some IGMP debug traces.
19 years ago
fbernon
da7b5135de
Minor Fix (ident)
19 years ago
fbernon
cb3d2b327a
Minor fix: replace C++ comments by C comments.
19 years ago
fbernon
48db3a3e92
Add init.h, init.c, Change opt.h, tcpip.c: Task #7213 "Add a lwip_init function" Add lwip_init function to regroup all modules initializations, and to provide a place to add code for task #7142 "Sanity check user-configurable values". Ports maintainers should remove direct initializations calls from their code, and add init.c in their makefiles. Note that lwip_init() function is called inside tcpip_init, but can also be used by raw api users since all calls are disabled when matching options are disabled. Also note that their is new options in opt.h, you should configure in your lwipopts.h (they are enabled per default).
19 years ago
fbernon
7182fb8fb0
tcpip.c: Fix TCPIP_MSG_INPKT processing: now, tcpip_input can be used for any kind of packets. These packets are considered like Ethernet packets (payload pointing to ethhdr) if the netif got the NETIF_FLAG_ETHARP flag. Else, packets are considered like IP packets (payload pointing to iphdr).
19 years ago
fbernon
d7da390ae9
Fix coding style (use #if and not #ifdef) for IPv6
19 years ago
fbernon
54c1025ec0
First fix for "bug #20900 : Potential crash error problem with netconn_peer & netconn_addr". Introduce NETCONN_LISTEN netconn_state and remove obsolete ones (NETCONN_RECV & NETCONN_ACCEPT).
19 years ago
jifl
5e7b7cba31
"Fix" a few more cases where Paradigm C++ may mis-compile 16-bit right shifts on 32-bit quantities
19 years ago
marcbou
5a6b1cbf66
Added CHANGELOG entries for my recent contributions.
19 years ago
marcbou
180e6d2c75
Reset the callbacks and arg (conn) to NULL in do_close_internal(), because
...
TCP callbacks in api_msg.c can under certain circumstances be called with an
invalid conn pointer after the connection has been closed (and conn has been
freed).
19 years ago
fbernon
acbf25f2eb
netif.h, netif.c: Integrate "patch #6163 : Function to check if link layer is up". Add a netif_is_link_up() function if LWIP_NETIF_LINK_CALLBACK option is set.
19 years ago
kieranm
7c90cc6aac
inet.c Modify (acc >> 16) test to ((acc >> 16) != 0) to help buggy
...
compiler (Paradigm C++)
19 years ago
fbernon
261af8dc07
netif.h, netif.c, opt.h: Rename LWIP_NETIF_CALLBACK in LWIP_NETIF_STATUS_CALLBACK to be coherent with new LWIP_NETIF_LINK_CALLBACK option before next release.
19 years ago
fbernon
2f344268ff
Minor fix (spaces and comment)
19 years ago
fbernon
42f3c24fc4
tcpip.h, tcpip.c, ethernetif.c, opt.h: remove options ETHARP_TCPIP_INPUT & ETHARP_TCPIP_ETHINPUT, now, only "ethinput" code is supported, even if the name is tcpip_input (we keep the name of 1.2.0 function).
19 years ago
fbernon
c4b97a1710
Forget to rename this line (pbuf->flgs->pbuf->flags)
19 years ago
fbernon
4f76bc42d7
Rename pbuf's "flgs" in "flags" (see in [lwip-devel] Last changes by Marc)
19 years ago
fbernon
fbd5600563
Force a build error if MEMP_NUM_TCPIP_MSG is always defined
19 years ago
fbernon
3259e2eac9
Replace PBUF_LINK_HLEN before PBUF_POOL_BUFSIZE, restore PPP options changed by Marc Boucher but lost with last Jared changes...
19 years ago
jgrubb
baca292f47
Task #7136 : Fix bug of wrong file name for centralized mempool settings.
19 years ago
fbernon
8babf0ec73
Fix wrong define for both pool "struct tcpip_msg" + minor fix (coding style)
19 years ago
fbernon
c07d124d4b
Minor change (fix comment)
19 years ago
marcbou
a0db1eaa32
Removed PBUF_FLAG_LINK_BROADCAST.
19 years ago
marcbou
dbd61d129d
Fix potential pbuf leaks.
19 years ago
jgrubb
21b5fb5ddb
Task #7143 : Clean up opt.h. Made all the comment formats the same (uses Doxygen style), a couple minor reorderings. Changed a few of the default stats variables to depend on whether the modules were even used (i.e. #define TCP_STATS (LWIP_TCP) ). PPP options could still use some cleaning.
19 years ago
jgrubb
f55fafbc66
*** empty log message ***
19 years ago
jgrubb
768843f1f0
Task #7136 : Centralize mempool settings into new memp_std.h and optional user file lwippools.h. (Remove MEMP_POOL_SIZE/NUM flags, add new MEMP_USE_CUSTOM_POOLS option)
19 years ago
jgrubb
cc7d1226ee
Task #7136 : Centralize mempool settings into new memp_std.h and optional user file lwippools.h.
19 years ago