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
fbernon
8abafc54a6
Fix comment
19 years ago
fbernon
885695fa67
Minor changes (tabs)
19 years ago
fbernon
e0bf309bb5
Add raw_init in tcpip_init + minor changes (tabs, ident, coding style...)
19 years ago
marcbou
d907bcd57a
lwip_recvfrom() tweaks.
19 years ago
marcbou
0167bbb89a
Per Frederic's suggestion, renamed
...
[MEMP_[NUM_]]TCPIP_MSG to [MEMP_[NUM_]]TCPIP_MSG_API
and
[MEMP_[NUM_]]TCPIP_MSG_INPUT to [MEMP_[NUM_]]TCPIP_MSG_INPKT.
Added defines in opt.h for temporary compatibility with older lwipopts.h.
19 years ago
marcbou
0471aaec52
Use enum pbuf_flag as pbuf_type.
...
Renumber PBUF_FLAG_*.
19 years ago
marcbou
18636a4df5
Fixed misplaced #endif.
19 years ago
fbernon
2be122875a
Minor changes (tabs, ident, coding style...)
19 years ago
marcbou
c517f6daf9
Backed out lwip_close() change after discussion with Frederic.
19 years ago
marcbou
07223bf5ef
Backed out last change to netconn_delete() after discussion with Frederic.
19 years ago
marcbou
7862ba583e
Moved lwip/src/netif/ppp/ppp_oe.h to lwip/src/include/netif/ppp_oe.h
19 years ago
marcbou
8c10d91135
ethbroadcast now a shared global provided by etharp.
19 years ago
marcbou
c81d0f3393
fix ethernet_input() return code warning.
19 years ago
marcbou
0b8b9e8033
Changed // style comment to /* style */ comment.
19 years ago
marcbou
b73198d5ef
Provide default value for MEMP_NUM_TCPIP_MSG_INPUT if not defined.
19 years ago
marcbou
4236699052
Split pbuf flags in pbuf type and flgs.
...
Improved lwip_recvfrom(). TCP push now propagated.
19 years ago
marcbou
75935ad251
Changed // style comments to /* style */ comments.
19 years ago
marcbou
a3c3f47e17
lwip_close(): call netconn_delete() under socksem to properly handle
...
concurrent closes.
19 years ago
marcbou
17f07a36ef
netconn_delete(): unblock potentially waiting recv.
19 years ago
marcbou
557a0c7ae3
Removed TCPIP_MSG_ETHINPUT. TCPIP_MSG_INPUT now used for
...
both ETHARP_TCPIP_INPUT and ETHARP_TCPIP_ETHINPUT.
19 years ago