goldsimon
5f0fbdcde9
fixed warning about potentially unused variable 'netif' after changing ip4/6_input_accept to return in, not netif*
9 years ago
Dirk Ziegelmeier
ea41480232
Replace several C++ style comments by C-style
9 years ago
Dirk Ziegelmeier
4ef21e2597
Fix compile when SNMPv3 is disabled
9 years ago
Dirk Ziegelmeier
78cdbff1b3
Several compile fixes for Marco's patch
9 years ago
Dirk Ziegelmeier
576a8228c2
Add new files to Filelists.ml
9 years ago
Dirk Ziegelmeier
fef7ce3c0d
Some whitespace fixes to Marco's patches
9 years ago
Marco
f0605a510f
Modified the snmpv3_dummy implementation to be more functional.
...
The dummy implementation also implements the user table as a reference.
9 years ago
Marco
3b8bb580e4
Add framework MIB and USM mib if SNMPv3 is enabled.
9 years ago
Marco
4b97f2bb8e
Implemented usm mib.
9 years ago
Marco
46df850cb9
Implemented framework mib.
9 years ago
Marco
f8f3cc039a
Start a timer for enginetime handling.
...
This timer function should be implemented in the snmpv3_xxx.c file.
9 years ago
Marco
f092d09121
Added handling invalid packets in SNMPv3.
9 years ago
Marco
78806001e5
Made accepted SNMP version runtime configurable.
...
This feature can be disabled by setting LWIP_SNMP_CONFIGURE_VERSIONS to 0.
9 years ago
Marco
8fd09d4608
Added missing context specific tags.
9 years ago
Marco
ec044e826e
Replaced old LWIP_SNMPV3_GET_ENGINE_BOOTS macro.
...
Replaced old LWIP_SNMPV3_GET_ENGINE_BOOTS macro with the new snmpv3_get_engine_boots_internal function.
9 years ago
goldsimon
a9bfe7b72f
Fix compiling httpd for LWIP_HTTPD_SUPPORT_POST==1 (assigning int to u16_t)
9 years ago
goldsimon
0d585d55d3
Added LWIP_SINGLE_NETIF for small targets with only one netif (see task #13515 , there might be more optimizations to come with this option)
9 years ago
goldsimon
f978a7ed31
let ip4/6_input_accept return int instead of netif*
9 years ago
goldsimon
18c7c5d81c
fixed my last commit (NETIF_FOREACH does not yet exist :)
9 years ago
goldsimon
7c9a6317b9
refactor ip4/ip6 packet-to-netif matching to remove the ugly 'first' flag
9 years ago
Dirk Ziegelmeier
ec4f00179d
Fix bug #50242 : dhcp_release does not stop autoip (in coop mode)
...
Create new function dhcp_release_and_stop() that stops DHCP statemachine and sends release message if needed. Also stops AUTOIP if in coop mode.
Old dhcp_release() and dhcp_stop() function internally call dhcp_release_and_stop() now.
9 years ago
Dirk Ziegelmeier
d8135f9ae2
Fix bug #50427 : SNMP: ifIndex should use netif_get_index()
...
We have netif_get_index(netif) now
9 years ago
goldsimon
1741edf159
make tcp apps depend on LWIP_CALLBACK_API, too
9 years ago
goldsimon
f85eed0ab3
tcp: fixed bug #50418 : LWIP_EVENT_API: fix invalid calbacks for SYN_RCVD pcb
9 years ago
David van Moolenbroek
d3fc398580
arp/ndp: allow overriding the decision to copy pbufs
...
lwIP aims to support zero-copy TX, and thus, must internally handle
all cases that pbufs are referenced rather than copied upon low-level
output. However, in the current situation, the arp/ndp packet queuing
routines conservatively copy entire packets, even when unnecessary in
cases where lwIP is used in a zero-copy compliant manner. This patch
moves the decision whether to copy into a centralized macro, allowing
zero-copy compliant applications to override the macro to avoid the
unnecessary copies. The macro defaults to the safe behavior, though.
9 years ago
Dirk Ziegelmeier
27c835aa56
Remove netif_invoke_ext_callback() from doxygen docs, it is intended for internal use only
9 years ago
Dirk Ziegelmeier
e4b356f08c
Add netif extended callback to doxygen docs
9 years ago
Dirk Ziegelmeier
01f9a04e4a
Add pbuf_get_contiguous() to doxygen docs
9 years ago
Dirk Ziegelmeier
9ab2eefc37
Fix documentation in sockets.c
9 years ago
Dirk Ziegelmeier
08931b33c1
Fix documentation on pbuf_get_contiguous()
9 years ago
Joel Cunningham
36b9a45c3b
netconn_write_partly cleanups
...
This commit changes netconn_write_partly to use msg.w.offset to set
bytes_written for both blocking and non-blocking connections
This is correct because msg.w.offset is the canonical output from
the do_write call and in the case that not all bytes were written,
(a bug?) returning the full size to the caller is dangerous
Lastly, this commit adds an assert for the blocking case to sanity
check that all the bytes we requested were written. This will help
catch bugs in do_write
9 years ago
Joel Cunningham
36fa1a97d4
lwip_netconn_do_writemore() cleanups
...
This commit makes a couple of cleanups discussed in patch #8882 :
1) msg.w.offset should not be set to 0 in the error case. It is
only valid when err == ERR_OK
2) Remove out-of-date comment which indicated the entire write had
completed (not true for non-blocking write)
This also updates the documentation on offset to include that offset
is only valid when err == ERR_OK
9 years ago
goldsimon
0da9cf70ea
Added pbuf_get_contiguous() to get data in one piece (either zero copy from pbuf or memcpied into a supplied buffer)
9 years ago
goldsimon
a38e937dd6
fixed close race conditions in lwip_select (for LWIP_NETCONN_FULLDUPLEX)
9 years ago
goldsimon
f4d13d52d3
fixed get_socket, fixed LWIP_SOCKET_OFFSET != 0
9 years ago
goldsimon
8bb43e7388
Added a few missing calls to done_socket()
9 years ago
goldsimon
6786c9f143
Start working on bug #44032 : added sock->fd_used that is != 0 when at least one thread is using a socket
9 years ago
goldsimon
9afe10e23d
make get_socket use tryget_socket, added tryget_socket_unconn in preparation of properly fixing bug #44032
9 years ago
goldsimon
f1f6050ad7
minor: comment, whitespace
9 years ago
goldsimon
d73e225519
lwip_select: check for correct 'maxfdp1' parameter range
9 years ago
goldsimon
3107d4a0fa
fixed that select ignored invalid/not open sockets in the fd_sets (bug #50392 )
9 years ago
goldsimon
01cc06bcb8
netif_add: ensure netif->num is unique even if more than 255 netifs have been added/removed since system startup (e.g. by ppp)
9 years ago
goldsimon
76763c9bcd
pbuf_ref: assert-check for 'ref' overflow
9 years ago
Dirk Ziegelmeier
e94e2da3ec
opt.h: Set LWIP_PBUF_REF_T back to u8_t, s8_t has no advantage any more after reverting last commit
9 years ago
Dirk Ziegelmeier
2cf3bbddd4
pbuf_free: Use correct type LWIP_PBUF_REF_T for local variable
9 years ago
Dirk Ziegelmeier
0f6d8ccd90
Revert "Improve pbuf refcount underflow check by checking the local variable on the stack that was assigned in a protected region"
...
This reverts commit 62c44138da .
Didn't notice due to local changes the ASSERTION was already inside the locks...
9 years ago
Dirk Ziegelmeier
62c44138da
Improve pbuf refcount underflow check by checking the local variable on the stack that was assigned in a protected region
...
The old code was vulnerable to race conditions since it checked ref to be >0 without locks
9 years ago
Dirk Ziegelmeier
0a7734cf64
Preparation for task #14369 : Define ways to work with a netif having multiple ports
...
Let ethernet_input() fill in pbuf's if_idx (if not already set by driver or an L2 bridge)
9 years ago
Dirk Ziegelmeier
0eeb10d4bb
Preparation for task #14369 : Define ways to work with a netif having multiple ports
...
Add if_idx member to struct pbuf
9 years ago
Dirk Ziegelmeier
2e1b12d09f
Make pbuf refcount type an LWIP option and #define it to s8_t (to be able to check for underflow!)
9 years ago