goldsimon
7385449f33
Fixed wrong endianess of port in bind() and connect() broken with the last commit
2011-07-06 07:18:06 +00:00
goldsimon
1f4b814d0b
Include opt.h so that LWIP_ERROR works correctly
2011-07-06 07:13:45 +00:00
goldsimon
a93d9c4310
Fixed bug #33561 bugs in recvfrom() and sendto()
2011-07-05 19:42:23 +00:00
goldsimon
1813d11b9d
Fixed invalid SOCK_ADDR_TYPE_MATCH check in lwip_sendto()
2011-07-04 19:39:16 +00:00
goldsimon
09ac68c196
Fixed documentation after changing sys arch prototypes for 1.4.0
2011-07-04 19:33:33 +00:00
goldsimon
c2fd905e32
No need to pass 'acc' as u16_t since the _base functions are internal (we save one AND op when passing as u32_t)
2011-07-04 19:10:49 +00:00
goldsimon
cc84f28d1b
Fixed bug #33672 (checksum calculate error!!!) by folding 'acc' to u16_t before calling checksum_pseudo_*_base functions
2011-06-29 19:54:33 +00:00
goldsimon
2bd498524d
Fixed bug #33653 (ip_data.current_ip_header_tot_len calculation errors!) introduced while mergin IPv4 and IPv6
2011-06-29 19:46:21 +00:00
goldsimon
4b934945f3
Slightly reorderd fields of struct tcp_pcb to plug holes introduced by member alignment (to reduce RAM usage)
2011-06-26 17:53:45 +00:00
goldsimon
b666ab0673
Init checks: LWIP_RAND is needed for IPv6, too
2011-06-26 17:51:55 +00:00
goldsimon
6a4c30fe5d
fixed bug #31723 (tcp_kill_prio() kills pcbs with the same prio) by updating its documentation only.
2011-06-26 17:37:09 +00:00
goldsimon
4002aef594
fixed bug #33545 : With MEM_USE_POOLS==1, mem_malloc can return an unaligned pointer.
2011-06-26 17:31:10 +00:00
goldsimon
ba28d36e67
Fixed bug #33544 (warning in mem.c in lwip 1.4.0 with NO_SYS=1)
2011-06-26 17:13:57 +00:00
goldsimon
4444db2990
Added some more asserts to check that pcb->state != LISTEN
2011-06-26 17:07:13 +00:00
goldsimon
d0026793bf
Cleaned up usage of sys.h a bit
2011-06-26 16:51:04 +00:00
goldsimon
93b5cd5ddd
Provide a default for SNMP_GET_SYSUPTIME() based on sys_now()
2011-06-26 16:50:28 +00:00
goldsimon
12c2d7e4cf
- changed "struct ip_addr" to "ip_addr_t";
...
- tcp_accepted(): added a note to call this on the listening pcb, not the connection pcb;
- tcp_write(): change last parameter from "copy" to "apiflags", documented the apiflags
2011-06-25 18:39:37 +00:00
idelamer
4eb5acd9e2
Don't forward IPv6 packets that are larger than outgoing MTU, send ICMPv6 message back for Path MTU discovery.
2011-06-22 12:14:58 +00:00
idelamer
0f56d838ec
Process IPv6 packets arriving from non-Ethernet links.
2011-06-17 11:06:06 +00:00
idelamer
12a948dacb
Allow routing IPv6 packets to neighbours with manually-configured non-link-local addresses.
2011-06-17 11:05:38 +00:00
idelamer
137953605e
Allow IPv6 addresses with arbitrary prefix.
2011-06-17 11:04:47 +00:00
idelamer
629fad6f5f
Minor edits for for IPv6 compilation
2011-06-17 11:03:15 +00:00
goldsimon
2911c84a69
Fixed compilation error after converting sockaddr_aligned from struct to union
2011-06-12 11:57:34 +00:00
goldsimon
89a1420609
Fix compilation error when checking for hidden variable names ('s8_t i' was hidden in some case statements in nd6_input()).
2011-06-08 16:31:55 +00:00
goldsimon
e584557afe
- sockaddr_aligned: use a union instead of a manually aligned struct;
...
- fixed compilation for different configurations
2011-06-07 19:36:05 +00:00
goldsimon
2ed5413e24
use const char for name pointers in display functions
2011-06-07 19:32:20 +00:00
goldsimon
91532b2d5c
Removed unused static function
2011-06-07 19:19:24 +00:00
goldsimon
732cac1c0e
Moved static variable from inside the function to global scope
2011-06-07 19:10:55 +00:00
goldsimon
5b04860b8b
Moved common call to pbuf_header outside the switch()
2011-06-07 19:10:10 +00:00
goldsimon
5a674f419d
Restructured the code a bit to help my dump compiler not creating a jump table in ROM
2011-06-07 19:07:00 +00:00
goldsimon
d30246dc05
Fixed bug #33492 (fixed stats for IPv6 protocols)
2011-06-07 19:05:22 +00:00
goldsimon
af5a913019
Fixed compilation with LWIP_IPV6==0
2011-06-06 16:04:06 +00:00
goldsimon
604e69c7ae
- fixed bug #33485 (forgot '!' before SOCK_ADDR_MATCH*);
...
- fixed 'cast increases alignment' by casting via 'void*';
- introduced 'struct sockaddr_aligned' where the 'base' type is instantiated to make sure the alignment is correct;
2011-06-06 16:00:06 +00:00
goldsimon
d765c9de37
Fixed ipX_netif_get_local_ipX for LWIP_IPV6==0
2011-05-28 09:32:42 +00:00
goldsimon
98b6e2bcce
Fixed ip_2_ipX() and ip6_2_ipX() macros #if !LWIP_ALLOW_STATIC_FN_IN_HEADER
2011-05-28 09:32:07 +00:00
goldsimon
d80be7961c
use PCB_IS_IPV6(pcb) instead of pcb->isipv6 everywhere; fixed compilation with LWIP_IPV6==1 but LWIP_IGMP==0
2011-05-28 09:30:43 +00:00
goldsimon
2aec3a9789
use PCB_IS_IPV6(pcb) instead of pcb->isipv6 everywhere
2011-05-28 09:28:18 +00:00
goldsimon
ccd7dbe0e4
Added ipX versions for routing
2011-05-26 15:46:44 +00:00
goldsimon
92fcfd7a6f
Fixed two compilation errors with different opt.h settings
2011-05-26 14:47:28 +00:00
goldsimon
1b2b054139
Fixed bug #33337 (which is #32906 reappearing after adding IPv6 support)
2011-05-25 17:40:42 +00:00
goldsimon
853d1eac96
Fixed pointless conversion when checking TCP port range (bug #33398 )
2011-05-25 17:22:56 +00:00
goldsimon
2ef29d6839
Use conversion defines instead of casting IP addresses
2011-05-25 17:22:13 +00:00
goldsimon
6865806b55
Combined IPv4 and IPv6 code where possible, added defines to access IPv4/IPv6 in non-IP code so that the code is more readable.
2011-05-25 17:16:35 +00:00
goldsimon
9546e65617
Removed autoip_init() since it does nothing; minor coding style changes
2011-05-21 16:01:19 +00:00
goldsimon
5852993243
Removed files of old IPv6 implementation
2011-05-17 19:56:08 +00:00
goldsimon
90a03a77ad
Added new files for IPv6
2011-05-17 19:54:40 +00:00
goldsimon
4bfbe7ebeb
... and finally, we got a first working version of a dual-stack lwIP runnin IPv4 and IPv6 in parallel - big thanks to Ivan Delamer! (this is work in progress, so please beware, test a lot and report problems!)
2011-05-17 19:35:14 +00:00
goldsimon
f3c1686a40
replaced tab with spaces
2011-05-16 18:45:51 +00:00
goldsimon
33a587d97e
Added a test for fast-rexmit
2011-05-14 15:26:43 +00:00
goldsimon
a444ec5111
patch #7449 allow tcpip callback from interrupt with static memory message
2011-05-14 12:23:10 +00:00
kieranm
5ead1bf5c8
Update version numbers for 1.4.1 development
2011-05-06 09:07:38 +00:00
kieranm
3a267586f4
Update CHANGELOG and version numbers for 1.4.0 release
2011-05-06 08:48:37 +00:00
goldsimon
52271e0366
Used upper case 'L' instead of lower case 'l' for long constant for better readability
2011-04-29 11:37:29 +00:00
goldsimon
e4739da961
Fixed overflow in tcp_new_port() after changing port range to IANA "Dynamic and/or Private Ports" range
2011-04-29 11:23:04 +00:00
goldsimon
80b344e9fc
Fixed printf-format error (bug #33079 )
2011-04-21 05:15:45 +00:00
goldsimon
036cb26fa3
sys_arch_timeouts() is not needed any more.
2011-04-20 11:31:07 +00:00
goldsimon
33d6dcec5b
Fixed bug #33048 (Bad range for IP source port numbers) by using ports in the IANA private/dynamic range (49152 through 65535).
2011-04-13 17:52:00 +00:00
goldsimon
791505ab6e
Fixed tcp unit tests after introducing ip_addr_p_t and letting tcp_input check for broadcasts by using current_iphdr_dest.
2011-03-30 18:50:00 +00:00
goldsimon
88e1719d8e
Fixed etharp unit test after changing struct etharp_hdr
2011-03-30 18:47:20 +00:00
goldsimon
0885555521
Fixed broken VLAN support.
2011-03-29 18:56:26 +00:00
goldsimon
36c1750b8f
ethernet_input: check for minimum packet length to prevent assertions from firing.
2011-03-29 07:55:16 +00:00
goldsimon
11b1c9f19f
Fixed bug #32926 (TCP_RMV(&tcp_bound_pcbs) is called on unbound tcp pcbs) by checking if the pcb was bound (local_port != 0).
2011-03-27 17:12:26 +00:00
goldsimon
b5dd87b184
Fixed bug #32280 (ppp: a pbuf is freed twice)
2011-03-27 13:58:26 +00:00
goldsimon
b54c7bedfd
Fixed bug #32906 : lwip_connect+lwip_send did not work for udp and raw pcbs with LWIP_TCPIP_CORE_LOCKING==1.
2011-03-27 13:36:32 +00:00
goldsimon
783404d8d4
Move tcp_pcb_lists to const section.
2011-03-27 13:04:16 +00:00
goldsimon
3bad9f013e
Fixed bug #32820 (Outgoing TCP connections created before route is present never times out) by starting retransmission timer before checking route.
2011-03-27 13:00:54 +00:00
goldsimon
4495516497
Removed 'dataptr' from 'struct tcp_seg' and calculate it in tcp_zero_window_probe (the only place where it was used).
2011-03-27 12:56:16 +00:00
goldsimon
3f849848a4
Fixed bug #32648 (PPP code crashes when terminating a link) by only calling sio_read_abort() if the file descriptor is valid.
2011-03-22 20:59:49 +00:00
goldsimon
7203680146
fixed bug #31748 (Calling non-blocking connect more than once can render a socket useless) since it mainly involves changing "FATAL" classification of error codes: ERR_USE and ERR_ISCONN just aren't fatal.
2011-03-14 21:21:26 +00:00
goldsimon
d793ed3b9b
fixed bug #32769 (ESHUTDOWN is linux-specific) by fixing err_to_errno_table (ERR_CLSD: ENOTCONN instead of ESHUTDOWN), ERR_ISCONN: use EALRADY instead of -1
2011-03-13 11:21:06 +00:00
goldsimon
c6de17d1e5
netconn_accept: return ERR_ABRT instead of ERR_CLSD if the connection has been aborted by err_tcp (since this is not a normal closing procedure).
2011-03-13 11:17:18 +00:00
goldsimon
5b084f4b95
tcp_bind: return ERR_VAL instead of ERR_ISCONN when trying to bind with state!=CLOSED; fixed a typo
2011-03-13 11:15:32 +00:00
goldsimon
4e3b2b9f6b
Fixed bug #32561 tcp_poll argument definition out-of-order in documentation
2011-02-21 19:26:57 +00:00
goldsimon
856ccb5bb7
Added missing U/UL modifiers to fix 16-bit-arch portability.
2011-02-18 13:31:28 +00:00
goldsimon
dbf5659cd9
Indentation changed
2011-02-18 13:30:35 +00:00
goldsimon
fee0c6afe9
Fixed constant not being 32 bit.
2011-02-17 17:03:12 +00:00
kieranm
fb7d3a159a
Update version for 1.4.0 rc2
2011-02-03 12:46:56 +00:00
goldsimon
dc6b4e65e0
Adde missing extern "C"
2011-01-25 11:35:48 +00:00
goldsimon
17d4ef4053
Added missing "extern "C" {"
2011-01-25 06:18:50 +00:00
goldsimon
03be8f88fe
Fixed bug #31741 : lwip_select seems to have threading problems
2011-01-24 19:28:28 +00:00
goldsimon
effcb90fdf
Mreged back changes that were lost during the savannah hack 3 weeks ago (using the sources from http://git.infradead.org/users/dwmw2/lwip.git )
2010-12-20 18:03:51 +00:00
goldsimon
1bd06bee82
Added note about changed ARP_QUEUEING==0
2010-12-02 20:09:58 +00:00
goldsimon
92cdc1e33f
Fixed ERR_IS_FATAL so that ERR_WOULDBLOCK is not fatal.
2010-12-02 07:07:18 +00:00
goldsimon
377628216e
Fixed bug #31590 : getsockopt(... SO_ERROR ...) gives EINPROGRESS after a successful nonblocking connection.
2010-11-22 20:55:57 +00:00
goldsimon
f7627929d5
Fixed bug #31722 : IP packets sent with an AutoIP source addr must be sent link-local
2010-11-22 19:55:05 +00:00
goldsimon
b49cf5e7a2
patch #7328 : Autoip: ETHADDR16_COPY can be used
2010-11-22 17:35:57 +00:00
goldsimon
231a6cecb4
patch #7329 : tcp_timer_needed prototype was ifdef'ed out for LWIP_TIMERS==0
2010-11-22 17:32:12 +00:00
goldsimon
32f02325f9
Added a function to deallocate the struct dhcp from a netif (fixes bug #31525 ).
2010-11-21 13:41:11 +00:00
goldsimon
f418782c2c
tcp_slowtmr(): change the scope of 'pcb2' to reflect its block-only usage.
2010-11-21 10:41:27 +00:00
goldsimon
e52730d1fb
Fixed bug #31170 : lwip_setsockopt() does not set socket number
2010-11-20 18:01:01 +00:00
goldsimon
d2679e58a6
Fixed bug #31304 : Changed SHUT_RD, SHUT_WR and SHUT_RDWR to resemble other stacks.
2010-11-20 17:48:10 +00:00
goldsimon
e3817cd549
Fixed bug #31535 : TCP_SND_QUEUELEN must be at least 2 or else no-copy TCP writes will never succeed.
2010-11-20 17:34:10 +00:00
goldsimon
4ace50a7d7
Fix alignment checking of tcphdr: check for MEM_ALIGNMENT, not for 4
2010-11-20 17:30:48 +00:00
goldsimon
fa092c47c8
Fixed bug #31701 : Error return value from dns_gethostbyname() does not match documentation: return ERR_ARG instead of ERR_VAL if not initialized or wrong argument.
2010-11-20 16:40:35 +00:00
goldsimon
704d90f693
Fixed bug #31385 : sizeof(struct sockaddr) is 30 but should be 16
2010-10-20 17:58:52 +00:00
goldsimon
93dc36e091
Once again fixed #30038 : DHCP/AutoIP cooperation failed when replugging the network cable after an AutoIP address was assigned.
2010-10-06 11:40:30 +00:00
goldsimon
4cc36b2284
Fixed bug #30728 : tcp_new_port() did not check listen pcbs
2010-08-10 20:15:31 +00:00
goldsimon
aaa8d2795e
Don't chain empty pbufs when sending them (fixes bug #30625 )
2010-08-03 08:38:59 +00:00
goldsimon
229137cad1
Applied patch #7264 (PPP protocols are rejected incorrectly on big endian architectures)
2010-08-01 11:15:48 +00:00
goldsimon
d73262a0e5
Fixed compilation with TCP or UDP disabled.
2010-07-29 19:25:50 +00:00
goldsimon
cd22a8d851
Fixed bug #30565 (tcp_connect() check bound list): that check did no harm but never did anything
2010-07-28 16:48:51 +00:00
goldsimon
7f7df4ae19
Fixed bug #30447 : tcp.c:tcp_bind() - suspicious nested #if
2010-07-28 16:44:59 +00:00
goldsimon
3c5723e49d
Fixed invalid fix for bug #30402 (CHECKSUM_GEN_IP_INLINE does not add IP options)
2010-07-21 12:11:22 +00:00
kieranm
960fb14bf5
Update release number for 1.4.0 release candidate 1
2010-07-16 12:50:29 +00:00
kieranm
21e17f649a
Fixed SNMP ASN constant defines to not use ! operator
2010-07-16 12:14:01 +00:00
goldsimon
9782c40d21
fixed the change not about tcp_close chang (bug #30444 )
2010-07-14 15:53:44 +00:00
goldsimon
04beab4f7d
IP_MULTICAST_LOOP shall be disabled by default
2010-07-12 14:10:28 +00:00
goldsimon
194a85387b
patch #7239 : make tcp_state_str pointers constant
2010-07-12 09:49:00 +00:00
goldsimon
a99219ad1f
added missing casts
2010-07-12 09:34:17 +00:00
goldsimon
691410ba18
task #10495 : Added support for IP_MULTICAST_LOOP at socket- and raw-API level.
2010-07-12 09:34:11 +00:00
goldsimon
714a43b18c
Fixed bug #30402 : CHECKSUM_GEN_IP_INLINE does not add IP options
2010-07-10 12:02:28 +00:00
goldsimon
9f457d3331
Updated to current CHANGELOG
2010-07-06 20:18:12 +00:00
goldsimon
60a456f757
Added ip_addr_netmask_valid() to check if a netmask is valid (starting with ones, then only zeros)
2010-07-05 14:20:58 +00:00
goldsimon
2b355d6b34
Added some helper functions to find strings in chained pbufs
2010-07-05 14:18:03 +00:00
goldsimon
48be546357
fixed bug #30300 (shutdown parameter was not initialized in netconn_delete)
2010-06-30 08:33:14 +00:00
goldsimon
0f74a57267
Re-enabled timer logging if LWIP_DEBUG_TIMERNAMES!=0 (without function pointers, only function names), changed parameter names from 'h' to 'handler'
2010-06-29 19:55:21 +00:00
kieranm
272270c7f4
Remove unportable printing of C function pointers
2010-06-28 13:32:13 +00:00
kieranm
e2f014f457
cleanup: fix minor build failures on unix
2010-06-28 13:24:14 +00:00
goldsimon
1fba33628d
Fixed compilation error due to unexpected include order
2010-06-25 18:59:29 +00:00
goldsimon
7d604a23f0
From patch #7221 : added flag NO_SYS_NO_TIMERS to drop timer support for NO_SYS==1 for easier upgrading
2010-06-24 20:27:49 +00:00
goldsimon
6929a786aa
Fixed bug #10088 : Correctly implemented shutdown at socket level.
2010-06-24 19:33:14 +00:00
goldsimon
f61b80ca6a
Fixed bug #29361 (ip_frag has problems with zero-copy DMA MACs) by adding custom pbufs and implementing custom pbufs that reference other (original) pbufs. Additionally set IP_FRAG_USES_STATIC_BUF=0 as default to be on the safe side.
2010-06-21 18:50:16 +00:00
goldsimon
1aba9f031d
nicer code for the last fix
2010-06-17 11:53:16 +00:00
goldsimon
2ffcc52f03
Fixed bug #30159 : WomnIP_ACCEPT_LINK_LAYER_ADDRESSING
2010-06-16 19:53:07 +00:00
goldsimon
72518a0d6e
fixed typos that MSVS did not complain about
2010-06-16 12:53:46 +00:00
goldsimon
1242575f0f
Added an optional define (LWIP_IP_ACCEPT_UDP_PORT) that can allow link-layer-addressed UDP traffic to be received while a netif is down (just like DHCP during configuration)
2010-06-16 12:25:00 +00:00
goldsimon
6ccc2ef804
Removed leading underscore from struct name, added a comment
2010-06-15 20:33:40 +00:00
goldsimon
b3dc6f2b5b
... and forgot one tiny character...
2010-06-15 20:21:30 +00:00
goldsimon
2427917db8
Fixed bug #29970 : DHCP endian issue parsing option responses
2010-06-15 20:19:14 +00:00
goldsimon
5ab40f016d
Fixed bug #30039 : AutoIP does not reuse previous addresses
2010-06-14 20:27:14 +00:00
goldsimon
435115d4fb
Use ip_addr_set_zero instead of memset(0)
2010-06-14 20:17:08 +00:00
goldsimon
24d823dae6
bug #30129 : struct _ip_addr should be struct ip_addr
2010-06-14 19:52:45 +00:00
goldsimon
2c60a48d02
ip_addr_set_any does not work on pointers...
2010-06-14 19:52:17 +00:00
goldsimon
4b0be4a477
Fixed invalid fix for bug #30038
2010-06-14 19:18:11 +00:00
goldsimon
505dd10d3c
Fixed bug #29979 (lwip_sendto did not check parameter "to" != NULL)
2010-06-12 18:46:19 +00:00
goldsimon
ddd2b69f27
bug #29976 : forgot some places using the changed IP address (copy vs. pointer)
2010-06-12 18:37:41 +00:00
goldsimon
66b57f89df
Fixed bug #30038 : dhcp_network_changed doesn't reset AUTOIP coop state
2010-06-12 17:14:00 +00:00
goldsimon
69bd5a29d9
Fixed a possible NULL-pointer deref before checking it
2010-06-12 17:05:54 +00:00
goldsimon
f7479781c1
bug #27352 : removed packing from ip_addr_t, the packed version is now only used in protocol headers. Added global storage for current src/dest IP address while in input functions.
2010-05-22 21:11:02 +00:00
goldsimon
9bfeb4e5af
Minor: added some spaces for indentation
2010-05-22 21:01:38 +00:00
goldsimon
d3e5ade2da
Correctly NULL-terminate h_addr_list
2010-05-17 12:36:45 +00:00
goldsimon
3833dd86aa
Added LWIP_DEBUGF warning if dns_send returns an error
2010-05-17 12:29:31 +00:00
goldsimon
25f33c8444
struct etharp_hdr: split _hwlen_protolen into two u8_t's to prevent using htons on little-endian platforms
2010-05-16 16:26:12 +00:00
goldsimon
dae247809b
Add preprocessor-macros for compile-time htonl calculation (and use them throughout the stack where applicable)
2010-05-16 15:57:42 +00:00
goldsimon
81df8bdabd
Added PP_HTONx/PP_NTOHx macros that can be calculated by the preprocessor (used for constants only)
2010-05-16 15:55:45 +00:00
goldsimon
03e4eb4de8
changed the semantics of LWIP_PREFIX_BYTEORDER_FUNCS to prevent "symbol already defined" i.e. when linking to winsock
2010-05-16 15:09:55 +00:00
goldsimon
290bd400c3
No need to call pppoe_init any more (since the linked list is implicitly initialized to zero by the loader)
2010-05-16 14:35:03 +00:00
goldsimon
5d0785e47a
PPPoE now uses its own MEMP pool instead of the heap (moved struct pppoe_softc from ppp_oe.c to ppp_oe.h)
2010-05-16 14:34:16 +00:00
goldsimon
16434568b0
Use a simple linked list (next pointer) instead of sys/queue.h (from BSD)
2010-05-16 14:24:40 +00:00
goldsimon
c0e7d54e37
Removed 2 mem_mallocs: error string can be a global variable, include memory for sc_ac_cookie in struct pppoe_softc; commented out unused code (sc_service_name/sc_concentrator_name)
2010-05-16 14:11:53 +00:00
goldsimon
ccb53d9e7d
DNS_LOCAL_HOSTLIST_IS_DYNAMIC uses its own MEMP pool instead of the heap
2010-05-16 14:06:46 +00:00
goldsimon
03bd61c799
DNS_LOCAL_HOSTLIST_IS_DYNAMIC uses its own MEMP pool instead of the heap
2010-05-16 13:36:51 +00:00
goldsimon
6ffd29507c
Free recv_data when TF_RXCLOSED is set
2010-05-16 13:12:15 +00:00
goldsimon
a880709776
Let FIN come through although TF_RXCLOSED is set, send RST when data is received although TF_RXCLOSED is set, added TCP_EVENT_CLOSED for clearer code
2010-05-15 18:12:37 +00:00
goldsimon
874d1641df
Fix compilation for LWIP_EVENT_API==1 (unused args)
2010-05-15 18:10:55 +00:00
goldsimon
d8d964d09e
udp_input/SO_REUSE_RXTOALL: only call pbuf_header if there is a 2nd pcb to pass the data to
2010-05-15 17:11:41 +00:00
goldsimon
46b3cb580d
Removed unused SOF_* flags, ip_pcb.so_options can now be an u8_t instead of an u16_t (saves 3 bytes per pcb on a 32-bit platform)
2010-05-15 17:10:08 +00:00
goldsimon
02f5e19420
udp_input: use SO_REUSE && SO_REUSE_RXTOALL to copy incoming (broad-/multicast) data to additional pcbs
2010-05-15 16:46:53 +00:00
goldsimon
a945bf07af
SO_REUSE: tcp_input: correctly handle multiple pcbs listening on the same port (but different address): first search for a specific address an only pass to ANY if no specific address has been found listening
2010-05-15 16:45:43 +00:00
goldsimon
7e5b0a9eb6
SO_REUSE: tcp_listen/tcp_connect: make sure that the 5-tuple is unique
2010-05-15 16:44:09 +00:00
goldsimon
a56795c149
Added new option SO_REUSE_RXTOALL to pass received UDP broadcast/multicast packets to more than one pcb
2010-05-15 14:52:39 +00:00
goldsimon
baeb41f5f4
SO_REUSEADDR / SO_REUSE is implemented and safe to use
2010-05-12 22:34:06 +00:00
goldsimon
d0348e0c60
task #6995 : Implement SO_REUSEADDR (correctly)
2010-05-12 22:29:58 +00:00
goldsimon
ef0a7ecbcd
Remove uused SOF_* flags, define inherited flags in ip.h, not in tcp_in.c
2010-05-12 22:26:06 +00:00
goldsimon
778c65d27c
CHECKSUM_GEN_IP_INLINE: Use defines to access the u32_t part of an IP address
2010-05-12 08:11:45 +00:00
goldsimon
f3face9f0c
Fix printf-formatter for sio_fd_t/size_t
2010-05-12 07:48:30 +00:00
goldsimon
2edd5230c9
auth_withpeer_fail(): call lcp_close(), like pppd 2.4.5 does
2010-05-11 18:11:46 +00:00
goldsimon
1551bb702d
Fixed bug #29855 : PPP: Backport a bugfix in LcpSendEchoRequest from pppd
2010-05-11 16:53:41 +00:00
goldsimon
d656e9f28e
Added option LWIP_ARP_FILTER_NETIF to use multiple IPs on one hardware interface (by using multiple netifs, each with its own IP)
2010-05-10 14:10:46 +00:00
goldsimon
597764e35b
Minor: source code layout
2010-05-10 14:02:52 +00:00
goldsimon
f9f77876a1
.. and deleted NAT again as Christian obviously didn't have the copyright on the code he sent us... THANKS!!!
2010-05-05 19:49:40 +00:00
goldsimon
67d8c7999a
Free NAT entries on remove (fixes a memory leak)
2010-05-05 19:39:29 +00:00
goldsimon
a7fdb67e8f
task #7506 : added NAT support
2010-05-05 19:34:23 +00:00
goldsimon
4d1ff2418e
Fixed bug #29271 (Application can't re-use pbufs) by updating the doc to not allow reusing pbufs after passing them to a send function
2010-05-04 19:36:49 +00:00
goldsimon
71f5fdef42
Fixed bug #29769 (sys_check_timeouts: sys_now() may overflow)
2010-05-04 19:27:42 +00:00
goldsimon
abc36471d9
Fixed bug #29763 (CHECKSUM_GEN_IP_INLINE), added macro LWIP_MAKE_U16() that's improved for endianess
2010-05-04 18:59:52 +00:00
goldsimon
4b7288e8f4
use checksum-on-copy for sending UDP data for LWIP_NETIF_TX_SINGLE_PBUF==1
2010-05-02 17:25:33 +00:00
goldsimon
108ed3c81a
struct netbuf: reorder members to save some space
2010-05-02 09:10:58 +00:00
goldsimon
f98e5717e5
task #6849 : added udp_send(_to/_if) functions that take a precalculated checksum, added pbuf_fill_chksum() to copy data into a pbuf and at the same time calculating the checksum for that data
2010-04-30 20:39:45 +00:00
goldsimon
3685bc4828
fixed a type
2010-04-30 20:37:22 +00:00
goldsimon
72c580236e
Create overridable macros for copying 2-byte-aligned IP addresses and MAC addresses
2010-04-29 04:57:31 +00:00
goldsimon
01d2a87f5d
Inline generating IP checksum to save a function call
2010-04-28 19:36:51 +00:00
goldsimon
51061fb61e
Fixed bug #29617 (sometime cause stall on delete listening connection)
2010-04-21 19:59:40 +00:00
goldsimon
49e8e28cf6
Check that tcp_abort/tcp_abandon isn't called for listen-pcbs
2010-04-21 19:55:14 +00:00
goldsimon
d2c632fb18
patch #7145 : Various typos in SNMP files
2010-04-14 19:13:35 +00:00
goldsimon
3562be2188
tabs -> spaces
2010-04-14 07:03:31 +00:00
goldsimon
2e18a9be63
Added an overridable define to get informed when the tcpip_thread processes messages or timeouts to implement a watchdog.
2010-04-14 07:02:26 +00:00
goldsimon
3347762df3
MEMP_OVERFLOW_CHECK: dump the element's pool's index and name when an overflow/underflow is detected
2010-04-12 11:08:11 +00:00
goldsimon
f1bc73c3ed
Fixed compilation errors
2010-04-02 16:48:53 +00:00
goldsimon
a96fa7d221
Fixed compilation of debug log code (that is currently commented out)
2010-04-02 16:17:51 +00:00
goldsimon
cc3e01a9f5
Fixed compilation (removed extra tokens after #endif)
2010-03-28 18:47:37 +00:00
goldsimon
6caa389c48
Check IP_FRAG && IP_FRAG_USES_STATIC_BUF && LWIP_NETIF_TX_SINGLE_PBUF
2010-03-28 10:50:05 +00:00
goldsimon
e86446b785
patch #7143 : Add a few missing const qualifiers
2010-03-28 10:28:32 +00:00
goldsimon
a00448c35a
create a new (contiguous) PBUF_RAM for every outgoing fragment if LWIP_NETIF_TX_SINGLE_PBUF==1
2010-03-28 10:22:48 +00:00
goldsimon
82b9152b8d
Removed checking ARP_TABLE_SIZE, this is done by the etharp module itself
2010-03-27 17:12:48 +00:00
goldsimon
d778fbb24f
Speedup TX by moving code from find_entry to etharp_output/etharp_query to prevent unnecessary function calls (inspired by patch #7135 ).
2010-03-27 16:51:27 +00:00
goldsimon
3803a0021d
patch #7130 : remove meaningless const qualifiers
2010-03-27 16:25:35 +00:00
goldsimon
3c96819a2c
Make LWIP_NETIF_TX_SINGLE_PBUF work for TCP, too
2010-03-26 16:54:15 +00:00
goldsimon
846a2fb933
Fixed compiling with different options disabled (TCP/UDP), triggered by bug #29345 ; don't allocate acceptmbox if LWIP_TCP is disabled
2010-03-26 16:09:02 +00:00
goldsimon
7e9eb55350
Added printf format modifier for mem_size_t depending on heap size
2010-03-26 15:38:01 +00:00
goldsimon
46b7bd6ec3
Make functions static where applicable, add default cases to switches where applicable, prevent old-style function prototypes (without arguments)
2010-03-26 14:07:05 +00:00
goldsimon
8bbe3d2fe0
Correctly cast pointers when assigning from void*
2010-03-26 14:05:56 +00:00
goldsimon
25f59761b3
fixed bug #29346 (removed comma after last enum member)
2010-03-26 14:05:22 +00:00
goldsimon
4b038f13de
sys_thread_new: name is a const pointer
2010-03-26 14:04:03 +00:00
goldsimon
da3d84d1dc
Fix compilation if ETHARP_SUPPORT_STATIC_ENTRIES==0
2010-03-26 13:40:31 +00:00
goldsimon
5ef976aed5
Fixed bug #29332 : lwip_select() processes readset incorrectly
2010-03-25 12:19:39 +00:00
goldsimon
cf0b831971
Fixed bug #29080 : Correctly handle remote side overrunning our rcv_wnd in ooseq case.
2010-03-25 06:39:01 +00:00
goldsimon
d861daeb4e
Removed function prototype that had no corresponding implementation (pbuf_ref_chain)
2010-03-22 15:46:09 +00:00
goldsimon
0a2eb3fdc8
minor: fixed coding style
2010-03-22 15:45:34 +00:00
goldsimon
6fb248c9e0
task #10088 : Fixed a bug in RST-on-close-when-not-all-data-acked implementation (plus removed some unnecessary casts)
2010-03-22 12:32:05 +00:00
goldsimon
40946a79d3
Removed duplicate TCP_REG/TCP_RMV macros, fixed debug macro implementation
2010-03-22 12:27:38 +00:00
goldsimon
124ca0fed2
tcp_listen() did not copy the pcb's prio
2010-03-22 10:06:49 +00:00
goldsimon
5d153ca1b3
Fixed compilation for MEM_USE_POOLS under MSVC (where ++ doesn't work for enums)
2010-03-22 08:38:28 +00:00
goldsimon
a5b0ea97d6
Updated netconn_write doc/comment about api_flags
2010-03-21 12:19:56 +00:00
goldsimon
0a49f2e068
Corrected spelling of ERR_WOULDBLOCK (D was missing)
2010-03-20 12:56:47 +00:00
goldsimon
57594ad7b6
tcp_write: moved initial checks to an own static function for clarity
2010-03-20 12:08:07 +00:00
goldsimon
75bb43698c
Disable MEMP_TCPIP_MSG_INPKT pool for LWIP_TCPIP_CORE_LOCKING_INPUT==1
2010-03-20 11:57:34 +00:00
goldsimon
f70014b8ea
Added an option to disable tcpip_(un)timeout code since the linker cannot do this automatically to save space.
2010-03-20 11:55:41 +00:00
goldsimon
5fd410db4b
Added support for static ARP table entries (added option ETHARP_SUPPORT_STATIC_ENTRIES) (+ added test); refactored the etharp code a bit
2010-03-20 11:45:25 +00:00
goldsimon
385d044f7d
Corrected spelling of milliseconds (my dictionary tells me to use two l's :)
2010-03-20 11:34:50 +00:00
goldsimon
d0f1c552e2
Fixed bug #29256 : SNMP Trap address was not correctly set
2010-03-19 20:49:13 +00:00
goldsimon
a54bb7205d
Added missing casts, use strlen + MEMCPY instead of strcpy (as that might overrun the buffer)
2010-03-16 15:14:14 +00:00
goldsimon
7466474365
Fixed compiler warnings when casting where we know the source is aligned (by casting to void-pointer first)
2010-03-15 10:44:19 +00:00
goldsimon
c4bc9ce59a
Fixed alignment warnings when we know alignment is correct (by using LWIP_MEM_ALIGN)
2010-03-15 09:57:03 +00:00
goldsimon
e25c9f7951
Fixed compiler warning when LWIP_SNMP==0
2010-03-15 09:47:43 +00:00
goldsimon
94cbed5096
Corrected comment
2010-03-14 12:35:30 +00:00
goldsimon
f83ace2034
task #6849 : Calculate checksum when creating TCP segments, not when (re-)transmitting them.
2010-03-14 11:26:05 +00:00
goldsimon
84ed9de21a
Prepared for checksum-on-copy (task #6849 ):
...
- Added option LWIP_CHECKSUM_ON_COPY;
- Added function + define lwip_chksum_copy to create checksum when copying data
2010-03-14 11:23:37 +00:00
goldsimon
4e764017c1
Fixed bug #29148 (Incorrect PBUF_POOL_BUFSIZE for ports where ETH_PAD_SIZE > 0) by moving definition of ETH_PAD_SIZE to opt.h and basing PBUF_LINK_HLEN on it.
2010-03-14 10:16:43 +00:00
goldsimon
67f5e17588
Bug #29210 : check alignment of struct sockaddr vs. struct sockaddr_in
2010-03-14 09:54:47 +00:00
goldsimon
d13ac66cc4
Fixed sending one byte of data in tcp_zero_window_probe (which I accidentally broke with v1.103)
2010-03-14 09:43:10 +00:00
goldsimon
9f0b7261e5
Fix calculation of tcp_mss(): when timestamps are on, this is pcb->mss - 12 or else NOCOPY-apps might generate unperformant PBUF_REF chains
2010-03-13 15:04:08 +00:00
goldsimon
ad4a869b94
Some fixes to the TCP_OVERSIZE code:
...
- fix compiling with TCP_OVERSIZE==0;
- fix segment-size calculation when options are used;
2010-03-13 14:29:13 +00:00
goldsimon
79d3b41e13
Reverted the change in struct sockaddr since it wasn't compatible to the standard (bug #29210 )
2010-03-13 14:09:52 +00:00
goldsimon
839befe68a
Corrected comment
2010-03-12 16:06:08 +00:00
goldsimon
097e8c8eb4
Fixed some issues in the TCP_OVERSIZE code:
...
- reset tcp_pcb.unsent_oversize when last_unsent is changed;
- added TCP_OVERSIZE_DBGCHECK: check tcp_pcb.unsent_oversize vs. (debug-only) tcp_seg.oversize_left to ensure the pcb counter is correct;
- fixed a memory leak in tcp_write;
2010-03-12 15:40:01 +00:00
goldsimon
90c7d3aaff
Temporary upgrade helper: define format string for u8_t as hex if not defined in cc.h
2010-03-10 16:18:12 +00:00
goldsimon
2621e3fa19
Use a union to let struct sockaddr have the same alignment requirements as struct sockaddr_in
2010-03-10 10:53:14 +00:00
goldsimon
36d7f50d77
Renamed tcp_output_set_header to tcp_output_alloc_header and included more code common to all callers
2010-03-09 16:29:19 +00:00
goldsimon
ffbb582dde
ip_output: assert for p->ref == 1 to catch TCP retransmissions where the netif hasn't freed the pbuf yet
2010-03-09 16:24:38 +00:00
goldsimon
3bfc07eb92
Added comment, use braces for single-line if-blocks
2010-03-09 15:49:57 +00:00
goldsimon
d91caf1cd3
ip_input: better check for old link-local-address (explicitly check for autoip->llipaddr instead of letting all link-local-addresses through)
2010-03-08 18:24:23 +00:00
goldsimon
2a2be49d2c
task #10241 (AutoIP: don't break existing connections when assiging routable address): when checking incoming packets and aborting existing connection on address change, filter out link-local addresses.
2010-03-08 18:17:52 +00:00
goldsimon
d47a04456b
bug #29105 : Review printf formatters
2010-03-08 17:07:35 +00:00
goldsimon
b9499d07c2
bug #29105 : Review printf formatters: added X8_F to cc.h and use it in etharp.c
2010-03-08 17:04:27 +00:00
goldsimon
5d20e690fd
Added/corrected casts
2010-03-08 12:17:29 +00:00
goldsimon
1c23bfdc7f
Only add hostname if it's not empty (strlen > 0)
2010-03-08 12:15:58 +00:00
goldsimon
d5531a239b
bug #28775 (select/event_callback: only check select_cb_list on change) plus use SYS_LIGHTWEIGHT_PROT to protect the select code. This should speed up receiving data on sockets as the select code in event_callback is only executed when select is waiting.
2010-03-07 18:40:54 +00:00
goldsimon
9e37d70163
Create mem_mutext at the end of mem_init. This enables sys_mutex_new to use the heap if required.
2010-03-07 16:50:08 +00:00
goldsimon
99ff7efe80
Use braces for if-blocks
2010-03-06 12:26:20 +00:00
goldsimon
43a08bef14
tcp_accepted(): check pcb state to verify it isn't called on a connection-pcb
2010-03-06 12:06:27 +00:00
goldsimon
92beddd72f
task #7013 (Create option to have all packets delivered to netif->output in one piece): Always copy to try to create single pbufs in tcp_write.
2010-03-06 11:55:00 +00:00
goldsimon
f5b783d107
Fixed LWIP_NETIF_TX_SINGLE_PBUF for LWIP_TCPIP_CORE_LOCKING
2010-03-06 11:52:55 +00:00
goldsimon
a5a870c683
LWIP_NETIF_TX_SINGLE_PBUF needs TCP_OVERSIZE >= TCP_MSS for TCP
2010-03-06 11:51:31 +00:00
goldsimon
19ab25c861
LWIP_TCPIP_CORE_LOCKING_INPUT needs LWIP_TCPIP_CORE_LOCKING to work correctly
2010-03-06 11:32:40 +00:00
goldsimon
38fcfcdfac
task #10167 (sockets: speed up TCP recv by not allocating a netbuf): added function netconn_recv_tcp_pbuf() for tcp netconns to receive pbufs, not netbufs; use that function for tcp sockets.
2010-03-06 11:29:01 +00:00
goldsimon
957f4d8096
renamed struct lwip_socket to struct lwip_sock to avoid duplicate names (function lwip_socket)
2010-03-06 10:21:03 +00:00
goldsimon
5d4438e652
Don't try to forward link-local addresses
2010-03-06 10:15:39 +00:00
goldsimon
4649c14856
Correctly identify link-local addresses when sending ARP packets
2010-03-06 09:56:52 +00:00
goldsimon
fcf6434b4b
Fixed bug #29087 : etharp: don't send packets for LinkLocal-addresses to gw
2010-03-06 09:33:17 +00:00
goldsimon
464950d51e
Fixed bug #29072 : Correctly set ciaddr based on message-type and state. Renamed dhcp_create/delect_request to dhcp_create/delete_msg.
2010-03-05 13:37:37 +00:00
goldsimon
0b5d60db5e
Correctly set TCP_WRITE_FLAG_MORE when netconn_write is split into multiple calls to tcp_write.
2010-03-05 11:34:43 +00:00
goldsimon
b6542b977e
task #7040 (Work on tcp_enqueue): Don't waste memory when chaining segments, added option TCP_OVERSIZE to prevent creating many small pbufs when calling tcp_write with many small blocks of data. Instead, pbufs are allocated larger than needed and the space is used for later calls to tcp_write.
2010-03-05 11:14:31 +00:00
goldsimon
2bf1184c39
Added comment after #endif
2010-03-03 16:05:20 +00:00
goldsimon
103b5a760f
tcp_connect: send timestamp-option only if (pcb->flags & TF_TIMESTAMP) != NULL (same as for passive open)
2010-03-01 19:05:52 +00:00
goldsimon
2b1c389955
Fixed accessing invalid memory when closing a listening pcb (introduced with tcp_shutdown)
2010-03-01 18:43:37 +00:00
goldsimon
8d9fa63460
PPP: use LWIP_DEBUGF() instead of ppp_trace()
2010-02-22 20:16:39 +00:00
goldsimon
52b87b751f
Added a note about socket recv/accept timeout errno value
2010-02-22 19:12:21 +00:00
goldsimon
e934f8aac6
Added/improved comments and debug output; renamed 'pc' to 'pcrx' where appropriate to reflect the variable type
2010-02-22 17:58:05 +00:00
goldsimon
311d16df7d
Fixed compilation error after splitting tcp.h/tcp_impl.h
2010-02-22 17:52:09 +00:00
goldsimon
ea78d69c6d
Added debug output and missing casts
2010-02-22 17:49:49 +00:00
goldsimon
402597c2cb
Fixed bug #28970 (invalid preprocessor macro introduced with LWIP_TCPIP_CORE_LOCKING_INPUT)
2010-02-22 12:57:00 +00:00
goldsimon
68678e21df
Fixed compilation for DNS_LOCAL_HOSTLIST==1 and DNS_LOCAL_HOSTLIST_IS_DYNAMIC==1 (bug #28968 )
2010-02-22 08:36:23 +00:00
goldsimon
19a9b52c06
Corrected comment
2010-02-21 19:28:46 +00:00
goldsimon
db38ee6630
Added define LWIP_TCPIP_CORE_LOCKING_INPUT that lets tcpip_input omit the thread-change to tcpip_thread and instead lock the core
2010-02-21 12:38:08 +00:00
goldsimon
1d8538bca4
Added const char* name to mem- and memp-stats for easier debugging.
2010-02-21 12:32:29 +00:00
goldsimon
b73dcfb8cf
task #10140 : Remove DNS_USES_STATIC_BUF (keep the implementation of DNS_USES_STATIC_BUF==1)
2010-02-21 12:15:01 +00:00
goldsimon
bcd4b76d31
Moved stack-internal parts of tcp.h to tcp_impl.h, tcp.h now only contains the actual application programmer's API
2010-02-21 11:35:21 +00:00
goldsimon
7c57ee0c17
Use tcp_debug_state_str() instead of tcp_debug_print_state()
2010-02-21 10:56:00 +00:00
goldsimon
d9157a71bb
Task #10088 : Correctly implement close() vs. shutdown(). Now the application does not get any more recv callbacks after calling tcp_close(). Added tcp_shutdown().
2010-02-20 18:05:56 +00:00
goldsimon
eae9798276
Fixed pcb leak when accept-callback is NULL and asserts are disabled
2010-02-20 17:27:08 +00:00
goldsimon
e131d3e32a
tcp_alloc: set given prio to the new pcb, not TCP_PRIO_NORMAL; minor: changed comments and source code layout
2010-02-20 10:03:03 +00:00
goldsimon
36043a92e7
Restructured TCP_PCB_COMMON for a smaller size (u16_t at the end)
2010-02-20 10:01:43 +00:00
goldsimon
9b48657444
Added UPGRADING doc file that should help to upgrade apps/ports from older versions of lwIP
2010-02-20 09:36:40 +00:00
goldsimon
52970c2459
Renamed mem_realloc() to mem_trim() to prevent confusion with realloc()
2010-02-19 16:23:46 +00:00
goldsimon
8336796c1a
Add matching comment to #endif
2010-02-16 21:05:06 +00:00
goldsimon
16a63c6554
Bug #28917 : don't increase error counters for icmp echo response
2010-02-16 20:38:35 +00:00
goldsimon
c637441f52
tcp_seg(s)_free: remove return value, noone uses it
2010-02-16 17:20:10 +00:00
goldsimon
5b221ecd4f
Added missing cast; added more debug output
2010-02-16 11:28:40 +00:00
goldsimon
7af77aefa7
Added missing casts
2010-02-16 11:28:15 +00:00
goldsimon
7c2054091d
Link status does not depend on LWIP_NETIF_LINK_CALLBACK (fixes bug #28899 )
2010-02-15 19:53:46 +00:00
goldsimon
e04e0cb98e
Fixed bug #28877 (Duplicate ARP gratuitous packet with LWIP_NETIF_LINK_CALLBACK set on) by only sending if both link- and admin-status of a netif are up
2010-02-14 20:20:28 +00:00
goldsimon
e983865ad5
Disable ETHARP_TRUST_IP_MAC by default since it slows down packet reception and is not really necessary
2010-02-14 18:10:34 +00:00
goldsimon
4c9fe60693
Fixed ARP input processing: only add a new entry if a request was directed as us (RFC 826, Packet Reception), otherwise only update existing entries; internalized some functions
2010-02-14 18:08:16 +00:00
goldsimon
c5dfa4099d
Fixed bug #28183 (ARP and TCP/IP cannot be disabled on netif used for PPPoE) by adding a new netif flag (NETIF_FLAG_ETHERNET) that tells the stack the device is an ethernet device but prevents usage of ARP (so that ethernet_input can be used for PPPoE).
2010-02-14 16:44:47 +00:00
goldsimon
524b7bc36b
Documented the use of netif flags
2010-02-14 16:00:46 +00:00
goldsimon
8908055b63
Revert my last changes and remove structure packing from struct dns_query and struct dns_answer since they are only used with SMEMCPY
2010-02-14 14:02:05 +00:00
goldsimon
10abe8aba2
Use pointers instead of using SMEMCPY
2010-02-14 12:51:53 +00:00
goldsimon
7b24a6360c
Minor speedups: use ip_addr_copy, use SMEMCPY, use htonX on constants instead of variables
2010-02-14 12:43:24 +00:00
goldsimon
96e9689dbd
Use new macro ip_addr_copy where applicable
2010-02-14 12:42:49 +00:00
goldsimon
7e0204bb7b
Improved some defines working on ip addresses, added faster macro to copy addresses that cannot be NULL
2010-02-14 12:41:46 +00:00
goldsimon
dfb80c6b86
fixed compilation for LWIp_SNMP && PPP_INPROC_MULTITHREADED
2010-02-14 12:26:01 +00:00
goldsimon
838c35acf6
struct ip_hdr: split u16_t _ttl_proto to u8_t _ttl and u8_t _proto to prevent unnecessary loading and htons
2010-02-14 11:42:08 +00:00
goldsimon
c858aa5686
Fixed compiler warnings for checksum algorithms 2 and 3
2010-02-14 11:40:13 +00:00
goldsimon
b1736b13d7
Use checksum algorithm 2 as default as it should be faster than 1 on most (if not all) platforms
2010-02-14 11:31:10 +00:00
goldsimon
cbb86fe590
Added stats for mutexes
2010-02-13 17:26:40 +00:00
goldsimon
a61f5f3a78
Fixed old comments
2010-02-13 17:26:08 +00:00
goldsimon
0792effc2a
task #7865 (implement non-blocking send operation)
2010-02-13 17:08:40 +00:00
goldsimon
49c6ce3703
Add a new err_t, ERR_WOULDBLOCK in preparation for non-blocking send
2010-02-13 16:03:12 +00:00
goldsimon
0f05a6aede
Fixed compilation for LWIP_DNS==1 after changing sys layer
2010-02-13 15:43:19 +00:00
goldsimon
7ccf8cb731
Fixed compilation with LWIP_DNS==1 after changing sys layer
2010-02-13 15:01:55 +00:00
goldsimon
7c28c66d32
Don't use C++ reserved keyword 'class'
2010-02-13 14:51:46 +00:00
goldsimon
c49a3ab2d6
Fixed compilation for LWIP_SO_RCVBUF==0
2010-02-13 10:06:42 +00:00
goldsimon
8fbaf0304a
Added a minimal version of posix fctl() to have a standardised way to set O_NONBLOCK for nonblocking sockets.
2010-02-12 17:59:20 +00:00
goldsimon
f89c08872c
Fixed indentation
2010-02-12 17:57:02 +00:00
goldsimon
29eb56a2f6
netif_set_link_up/down: only do something if the link state actually changes
2010-02-12 16:50:23 +00:00
goldsimon
2e795d2706
task #10139 (Prefer statically allocated memory): added autoip_set_struct() and dhcp_set_struct() to let autoip and dhcp work with user-allocated structs instead of callin mem_malloc
2010-02-12 16:42:02 +00:00
goldsimon
8768e4488a
patch #6865 : use so_options SOF_REUSEADDR instead of flags TF_REUSEADDR (which has ben removed again)
2010-02-12 16:32:31 +00:00
goldsimon
bd3f86e505
Code layout: splitted long line
2010-02-12 16:31:18 +00:00
goldsimon
82e4716784
Fixed comment to our flag names
2010-02-12 16:30:58 +00:00
goldsimon
d3635c5eef
patch #6865 (SO_REUSEADDR for TCP): if tcp_pcb.flags has TF_REUSEADDR set, allow binding to endpoint in TIME_WAIT
2010-02-12 15:33:02 +00:00
goldsimon
c73b1b4fa2
Fixed bug #28865 (Cannot close socket/netconn in non-blocking connect)
2010-02-12 15:21:37 +00:00
goldsimon
39df7d048c
Added comment about mem_realloc() vs. realloc()
2010-02-12 14:56:34 +00:00
goldsimon
3529349470
Fixed compilation for NO_SYS==1
2010-02-12 13:56:51 +00:00
goldsimon
0030d1ade5
task #10139 (Prefer statically allocated memory): converted mbox and semaphore functions to take pointers to sys_mbox_t/sys_sem_t; converted sys_mbox_new/sys_sem_new to take pointers and return err_t; task #7212 : Add Mutex concept in sys_arch (define LWIP_COMPAT_MUTEX to let sys.h use binary semaphores instead of mutexes - as before)
2010-02-12 13:49:21 +00:00
goldsimon
2d1631792a
struct netconn.socket is only used with LWIP_SOCKET; added comments
2010-02-12 09:58:44 +00:00
goldsimon
b6babe38ea
Use braces for if blocks
2010-02-12 09:51:30 +00:00
goldsimon
df7e435b86
Fixed bug #28866 (mem_realloc function defined in mem.h)
2010-02-12 09:30:31 +00:00
goldsimon
9e59f661bc
Fixed a compiler warning (comparison between signed and unsigned)
2010-02-10 08:11:18 +00:00
goldsimon
87c2d911c9
Removed invalid assert (always true)
2010-02-10 07:58:21 +00:00
goldsimon
44af02aa1e
Fixed wrong printf formatter
2010-02-10 07:58:01 +00:00
goldsimon
45e51d1929
Removed sys_sem_wait_timeout, added comments to the port-supplied sys(-arch)-functions
2010-02-09 21:05:39 +00:00
goldsimon
59a623e648
Use sys_arch_sem_wait instead of sys_sem_wait_timeout (same function, different name)
2010-02-09 21:04:50 +00:00
goldsimon
306f2203fa
Fixed bug #22110 (recv() makes receive window update for data that wasn't received by application); added function-like macros to correctly access/change conn->recv_timeout and conn->recv_bufsize
2010-02-09 20:23:39 +00:00
goldsimon
7699b59e27
Another fix for bug #28853 (recv returns 0 on recv-timeout or any other error), fixed err_to_errno_table: ERR_TIMEOUT is EWOULDBLOCK, not ETIMEDOUT
2010-02-09 20:17:06 +00:00
goldsimon
1550c4215d
Fixed bug #28853 (lwip_recvfrom() returns 0 on receive time-out or any netconn_recv() error)
2010-02-09 18:46:54 +00:00
goldsimon
a84590273d
Merge 3 u8_t for netconn-internal status into one u8_t 'flags' to prevent waisting memory when adding more flags
2010-02-09 18:41:07 +00:00
goldsimon
6fe258c6bc
task #10154 (PPP: Update snmp in/out counters for tx/rx packets)
2010-02-09 18:21:21 +00:00
goldsimon
27c1c7a0f7
Added function sys_restart_timeouts() from patch #7085 (Restart system timeout handling)
2010-02-09 17:49:20 +00:00
goldsimon
a668a4e4d1
Fixed compilation for NO_SYS==1
2010-02-09 17:41:34 +00:00
goldsimon
b1250f003d
For loopback packets, adjust the stats- and snmp-counters for the loopback netif.
2010-02-09 17:00:57 +00:00
goldsimon
3f8e6c423c
Fixed unit tests after changing struct ip_addr to ip_addr_t
2010-02-09 16:40:52 +00:00
goldsimon
077caac76d
task #10153 (Integrate loopif into netif.c) - loopif does not have to be created by the port any more, just define LWIP_HAVE_LOOPIF to 1.
2010-02-09 16:01:24 +00:00
goldsimon
91d70a3364
Fixed copying multiple IP addresses from options (e.g. multiple DNS servers) - the amount copied was correct, but the value copied was always the first.
2010-02-09 11:40:46 +00:00
goldsimon
6af20340dd
Minor: Fixed indentation after changing struct ip_addr to ip_addr_t
2010-02-09 11:38:59 +00:00
goldsimon
68ab197b68
Fixed a missing cast warning
2010-02-09 11:38:00 +00:00
goldsimon
79e6b4c819
Added reentrant versions of inet_ntoa/ipaddr_ntoa inet_ntoa_r/ipaddr_ntoa_r
2010-02-08 20:14:21 +00:00
goldsimon
ececc3ca45
Internalize another function; use the supplied max_response_time instead of dividing it by 2
2010-02-08 19:50:49 +00:00
goldsimon
630f575017
Moved most defines from igmp.h to igmp.c for clarity since they are not used anywhere else; removed some function prototypes from igmp.h, too
2010-02-08 19:41:53 +00:00
goldsimon
49274c1507
added netif_s/get_igmp_mac_filter() macros
2010-02-08 19:32:40 +00:00
goldsimon
27d4cf6aef
Improved IGMP stats (patch from bug #28798 )
2010-02-08 19:19:26 +00:00
goldsimon
b156d392cb
Fixed bug #28798 (Error in "Max Response Time" processing) and another bug when LWIP_RAND() returns zero.
2010-02-08 18:12:53 +00:00
goldsimon
b0b4290c29
Reduced the time SYS_ARCH_PROTECT is protecting the socket array
2010-02-08 17:25:57 +00:00
goldsimon
90bed0c5ac
Added yet another IP-address-modifying define, ip_addr_set_any()
2010-02-08 17:24:08 +00:00
goldsimon
b3caddab30
Minor: source code layout
2010-02-08 17:12:45 +00:00
goldsimon
1017279e68
Minor: removed one space
2010-02-08 17:12:14 +00:00
goldsimon
f74cebcbcd
Minot: Fixed comments and code style
2010-02-08 16:53:47 +00:00
goldsimon
848debf999
Fixed bug #28818 (New connection probably not marked writable on accept()) introduced a week ago while implementing non-blocking connect
2010-02-08 12:33:28 +00:00
goldsimon
47756a8faa
Fixed macro ip_addr_set_loopback(): htonl was missing (fixes bug #28828 : ip_addr.h some macro error)
2010-02-08 12:25:01 +00:00
goldsimon
6c027c153b
Fixed compiler warnings
2010-02-08 12:24:29 +00:00
goldsimon
28dc5f491c
Correctly initialize netif flags in pppifNetifInit
2010-02-05 11:20:49 +00:00
goldsimon
758e99f362
Added function-like macros to get/set the hostname on a netif
2010-02-05 11:17:55 +00:00
goldsimon
010dc6258e
Fixed another compiler warning (missing cast)
2010-02-05 10:35:47 +00:00
goldsimon
a5c5949009
Added missing casts to suppress compiler warnings (this mainly satisfies MSVC - the double casts are a bit ugly but don't hurt...)
2010-02-05 10:09:38 +00:00
goldsimon
d51d6b2d89
Use macros to compare IP addresses
2010-02-05 10:08:49 +00:00
goldsimon
c58dfa2156
Added missing casts to suppress compiler warnings
2010-02-05 10:08:41 +00:00
goldsimon
5d360a6711
Replaced struct ip_addr by typedef ip_addr_t to make changing the actual implementation behind the typedef easier.
2010-02-04 18:47:44 +00:00
goldsimon
24fcf9a86e
Accidentally changed the member name of struct ip_addr for testing...
2010-02-04 17:25:22 +00:00
goldsimon
a23b446ddf
Use macros defined in ip_addr.h (some of them new) to work with IP addresses (preparation for bug #27352 - Change ip_addr from struct to typedef (u32_t) - and better code).
2010-02-04 17:21:32 +00:00
goldsimon
258fe88232
Added an own debug-print option for timers.c (used TCPIP_DEBUG and SYS_DEBUG as the code was copied from there)
2010-02-04 16:53:10 +00:00
goldsimon
9ff7d29696
Fixed compiler warnings when MEM_SIZE < 64000
2010-02-02 20:14:05 +00:00
goldsimon
30d69d68e3
Fix handling of zero-padding and parse file before sname field (if overloaded, according to the RFC)
2010-02-02 18:26:40 +00:00
goldsimon
4495d9ef5b
Fixed an error in dhcp_free_request() from dhcp_inform()
2010-02-02 16:30:11 +00:00
goldsimon
a66039b86c
Let netdb use a memp pool for allocating memory when getaddrinfo() is called.
2010-02-01 21:04:29 +00:00
goldsimon
81c5d9e983
Prevent mem_free (leave struct dhcp allocated on dhcp_stop) to prevent calling mem_malloc when restarting dhcp later
2010-02-01 20:20:38 +00:00
goldsimon
c6f7a34abe
Prevent mem_malloc in dhcp_inform, fix check for subnet mask (remember if it was given by server or not) set back request_timeout in dhcp_set_state()
2010-02-01 19:55:16 +00:00
goldsimon
72d6f1a418
Don't parse broadcast option, we don't use it anyway (made up from ipaddr and netmask), layout change of struct dhcp
2010-01-31 18:59:37 +00:00
goldsimon
8cb3ea1398
Reworked the code that parses DHCP options: parse them once instead of parsing for every option. This also removes the need for mem_malloc from dhcp_recv and makes it possible to correctly retrieve the BOOTP file.
2010-01-31 17:27:15 +00:00
goldsimon
8712deb0b2
Don't call the link-callback from netif_set_up/down() since
...
this invalidly retriggers DHCP.
2010-01-31 13:30:47 +00:00
goldsimon
2e8de4f601
Updated comment about recv_bufsize
2010-01-30 15:20:01 +00:00
goldsimon
c22d3b4c98
Use SYS_LIGHTWEIGHT_PROT instead of a semaphore to protect the sockets array since the protection time is short
2010-01-30 15:01:29 +00:00
goldsimon
f8c22c7428
Moved freeing a socket to its own function (free_socket, like alloc_socket
2010-01-30 14:19:18 +00:00
goldsimon
855dcadf7a
Added except set support in select (patch #6860 )
2010-01-29 23:05:33 +00:00
goldsimon
9c41e1eea3
Replaced tabs with spaces
2010-01-29 23:04:06 +00:00
goldsimon
c70c3eac62
Added function-like macro for struct netconn::non_blocking
2010-01-29 22:21:45 +00:00
goldsimon
e58f4c567a
Add non-blocking support for connect (partly from patch #6860 ) plus many cleanups in socket & netconn API
2010-01-29 22:09:31 +00:00
goldsimon
1dd8300e69
Added comments
2010-01-29 14:41:54 +00:00
goldsimon
5fa0347e64
Cleanly separate the portability file inet.h and its contents from the stack: moved htonX- functions to def.h (and the new def.c - they are not ipv4 dependent), let inet.h depend on ip_addr.h and not the other way round. This fixes bug #28732 .
2010-01-29 08:20:32 +00:00
goldsimon
32c16fad42
igmp related: renamed netif pointers from 'interface' to 'netif' to not use keywords (or at least my editor highlights it as one...)
2010-01-28 18:42:40 +00:00
goldsimon
ea3b8f52d5
renamed netif pointer in struct igmp from 'interface' to 'netif' to not use keywords (or at least my editor highlights it as one...); minor layout change
2010-01-28 18:27:26 +00:00
kieranm
95445fc328
Ensure ssthresh >= 2*MSS
2010-01-28 13:14:42 +00:00
goldsimon
21e3cde95c
Added missing casts (bug #28659 )
2010-01-28 12:05:14 +00:00
goldsimon
d587940801
Keep 'const' of varius snmp structs the same throughout 'derived structs'
2010-01-28 12:04:06 +00:00
goldsimon
f5d4f3d83c
For wrong configurations, let the test fail instead of the compiler
2010-01-27 20:37:02 +00:00
goldsimon
04a8b0f85d
Added TCP_SNDQUEUELOWAT corresponding to TCP_SNDLOWAT and added tcp_sndqueuelen() - this fixes bug #28605
2010-01-27 18:24:57 +00:00
goldsimon
853e33bdb4
snmp_recv: don't peek the UDP header, p->tot_len does the same; no need for the extra checks at the beginning; don't use so many if/else but if/return instead to make the code more readable
2010-01-27 17:36:37 +00:00
goldsimon
0644c4c08e
Fixed bug #27871 : Calling tcp_abort() in recv callback can lead to accessing unallocated memory. As a consequence, ERR_ABRT means the application has called tcp_abort()!
2010-01-27 17:22:06 +00:00
goldsimon
606fed8896
Use memp pools for snmp instead of the heap; added 4 new pools.
2010-01-26 20:28:24 +00:00
goldsimon
a5463f0400
Moved missing include
2010-01-26 16:09:03 +00:00
goldsimon
96338314f1
Partly fixed bug #22070 (MIB_OBJECT_WRITE_ONLY not implemented in SNMP): write-only or not-accessible are still returned by getnext (though not by get)
2010-01-25 17:44:07 +00:00
goldsimon
5d3cab0042
Added one more missing cast
2010-01-25 09:19:52 +00:00
goldsimon
e678e1bdcb
bug #28659 : Missing casts
2010-01-25 08:24:30 +00:00
goldsimon
1811a344f5
Renamed the private mib node from 'private' to 'mib_private' to *not* use reserved C/C++ keywords
2010-01-24 17:25:22 +00:00
goldsimon
ef31aa12e2
Renamed the private mib node from 'private' to 'mib_private' to *not* use reserved C/C++ keywords, added comments, added init-define for private MIB
2010-01-24 17:16:37 +00:00
goldsimon
9dd6c28523
bug #26523 : Compiler Warnings
2010-01-24 14:35:28 +00:00
goldsimon
61e5301d49
bug #26523 : Compiler Warnings
2010-01-24 13:19:34 +00:00
goldsimon
408829bcf6
Fixed compilation for LWIP_TCPIP_CORE_LOCKING
2010-01-23 18:13:55 +00:00
goldsimon
dbcce3a4be
bug #26523 : Compiler Warnings
2010-01-23 17:48:36 +00:00
goldsimon
426dd9bfad
Fixed bug #28716 : select() returns 0 after waiting for less than 1 ms
2010-01-23 15:01:15 +00:00
goldsimon
82318c0ef1
Fixed bug #28651 (tcp_connect: no callbacks called if tcp_enqueue fails) both in raw- and netconn-API
2010-01-21 18:43:37 +00:00
goldsimon
60696a8485
Removed unused function declaration for netbuf_len (is a macro now)
2010-01-21 17:18:15 +00:00
goldsimon
7044385d8e
Fixed netconn_err() macro
2010-01-20 07:37:24 +00:00
goldsimon
a7139ef06b
Added missing include
2010-01-20 07:36:45 +00:00
goldsimon
52389fc09a
Fixed bug #27316 (netconn: Possible deadlock in err_tcp) by using sys_mbox_trypost in err_tcp
2010-01-19 18:34:01 +00:00
goldsimon
972ca9e6c1
reorganised PPP sourcecode to 2.3.11 including some bugfix backports from 2.4.x.
2010-01-18 20:49:43 +00:00
goldsimon
e0c5c4de88
Fixed bug #28679 : mem_realloc calculates mem_stats wrong and added test case for it
2010-01-18 17:45:41 +00:00
goldsimon
149f21dc58
Only check for LWIP_RAND() if IGMP is used, for now
2010-01-18 08:19:48 +00:00
goldsimon
9632632b85
Minor: source code layout
2010-01-18 08:11:57 +00:00
goldsimon
cc1e9370af
Minor: fixed argument casts for mbox_fetch parameters (to fix compiler warnings)
2010-01-18 08:11:39 +00:00
goldsimon
34139606ca
task #10102 : "netconn: clean up conn->err threading issues" by adding error return value to struct api_msg_msg
2010-01-17 18:28:56 +00:00
goldsimon
3e1cca65bd
task #10102 : "netconn: clean up conn->err threading issues" by adding error return value to struct api_msg_msg
2010-01-17 18:28:56 +00:00
goldsimon
0e3c256667
Added comment
2010-01-17 17:37:10 +00:00
goldsimon
618355f5a7
Minor: source code layout
2010-01-17 16:23:26 +00:00
goldsimon
ca11baf1cd
Changed netconn_recv() and netconn_accept() to return err_t (bugs #27709 and #28087 )
2010-01-17 16:21:07 +00:00
goldsimon
7ede02ca8b
Fixed bug #27856 : PPP: Set netif link- and status-callback by adding ppp_set_netif_statuscallback()/ppp_set_netif_linkcallback()
2010-01-14 20:04:52 +00:00
goldsimon
2d4e76874c
Using typedefs for function prototypes and -pointers throughout the stack for clarity
2010-01-14 20:02:15 +00:00
goldsimon
b463562241
Use protocol definition from tcp.h, not from sockets.h
2010-01-14 19:59:28 +00:00
goldsimon
04f17c4709
Improved includes in snmp
2010-01-14 19:59:03 +00:00
goldsimon
97f797e859
do_connect(): set conn->err to an error if conn->pcb is NULL
2010-01-14 19:49:27 +00:00
goldsimon
9521f54741
Another fix for bug #28562 : Segfault @ err_tcp
2010-01-14 15:43:11 +00:00
goldsimon
0e38a52edc
Again: Fixed bug #26672 (close connection when receive window = 0) by correctly draining recvmbox/acceptmbox
2010-01-13 15:59:47 +00:00
goldsimon
6df94d3c76
Coding style
2010-01-13 15:17:01 +00:00
goldsimon
59005b544f
Minor fix: bug #28555 : Retransmission timer only stopped if TCP_QUEUE_OOSEQ==1
2010-01-13 14:24:15 +00:00
goldsimon
8596bb7e7e
The heap now may be moved to user-defined memory by defining LWIP_RAM_HEAP_POINTER as a void pointer to that memory's address (patch #6966 and bug #26133 )
2010-01-13 13:09:55 +00:00
goldsimon
1c47d15577
Minor speedup ip_output_if when writing TTL/proto to ip header
2010-01-13 12:52:15 +00:00
goldsimon
67c587f9f7
Fixed NO_SYS==0: starting pppInputThread failed; fixed some comments
2010-01-13 11:19:03 +00:00
goldsimon
052be0a328
Added comments
2010-01-13 11:16:47 +00:00
goldsimon
68ddcc6ca7
Fixed bug #13315 (PPP PAP authentication can result in erroneous callbacks) by copying the code from recent pppd
2010-01-11 16:38:56 +00:00
goldsimon
9a2d97ec41
Fixed bug #28551 (Compiler warning introduced with closed bug #28506 )
2010-01-11 09:51:33 +00:00
goldsimon
47e770dffa
Fixed comment on struct mem.prev
2010-01-11 09:49:31 +00:00
goldsimon
8292cebfd9
Fixed bug #28506 (raw_bind should filter received packets)
2010-01-10 13:45:24 +00:00
goldsimon
c483c13dc4
Fixed bug #28248 (netif_remove doesn't call netif callback) by calling netif_set_down() from netif_remove()
2010-01-10 13:34:21 +00:00
goldsimon
86f2942c2a
Minor coding style changes, added assertion
2010-01-10 13:32:36 +00:00
goldsimon
e4d19dc4a0
GCC didn't like memp_memory_XXX -> now using memp_memory_XXX_base (as in Bill's original patch)
2010-01-10 13:09:55 +00:00
goldsimon
763760503b
patch #6822 (Add option to place memory pools in separate arrays) - new config option MEMP_SEPARATE_POOLS
2010-01-10 12:44:09 +00:00
goldsimon
13c9d2dade
Added/changed comments
2010-01-10 11:48:28 +00:00
goldsimon
97f6c5b239
D'Oh!
2010-01-10 11:42:31 +00:00
goldsimon
f4a9d173a1
bug #28127 : remove call to tcp_output() from tcp_ack(_now)()
2010-01-10 11:41:25 +00:00
goldsimon
d85a18752f
patch #6463 (IGMP - Adding Random Delay): added define LWIP_RAND() for lwip-wide randomization (to be defined in cc.h)
2010-01-10 10:47:27 +00:00
goldsimon
aa7dd9a8ad
Forgot one line & comments
2010-01-10 10:32:56 +00:00
goldsimon
27c9670718
Fixed bug #28529 : macro LWIP_DEBUG_TIMERNAMES in timers.h
2010-01-09 19:14:23 +00:00
goldsimon
32833bcd56
Inlined netif_is_up() and netif_is_link_up() as defines for speed reasons; fixed type and macro definition.
2010-01-09 13:25:15 +00:00
goldsimon
53bc34f3e2
Fixed bug #28195 (PPP: remove duplicate TCP/IP protocol header definitions - use the lwIP ones) - deleted unused header file
2010-01-09 12:45:23 +00:00
goldsimon
81640c4a83
Fixed compilation of VJ_SUPPORT after separating tx and rx
2010-01-08 15:52:17 +00:00
goldsimon
533e6b5f8d
Fixed bug #26672 (close connection when receive window = 0) by correctly draining recvmbox/acceptmbox
2010-01-08 15:10:03 +00:00
goldsimon
28f0bbd575
Fixed bug #28519 (lwip_recvfrom bug with len > 65535)
2010-01-08 14:51:14 +00:00
goldsimon
39717b2d9d
Copy hostname for DNS_LOCAL_HOSTLIST_IS_DYNAMIC==1 since string passed to dns_local_addhost() might be volatile
2010-01-08 14:42:09 +00:00
goldsimon
79c88cdcfd
Added function names to timer debug output
2010-01-08 14:08:47 +00:00
goldsimon
8a34c16aee
Improved assertion message when MEMP_SYS_TIMEOUT pool is empty
2010-01-08 13:40:50 +00:00
goldsimon
cce192a671
Call tcp_timer_needed() with NO_SYS==1, too
2010-01-07 09:47:30 +00:00
goldsimon
cfe4a12a46
Fixed bug #28496 : missing include guards in netdb.h
2010-01-06 16:30:23 +00:00
goldsimon
3269da52cc
Initial version of PPP for NO_SYS==1, some TODOs are remaining, but it works...
2009-12-31 17:56:51 +00:00
goldsimon
9c51487d1a
Renamed PPP tasks from "pppMain" to "pppInputThread"
2009-12-31 17:21:11 +00:00
goldsimon
3ba5ddefa7
Removed unnecessary tcpip-callbacks: this whole module runs inside the tcpip-thread. This also makes PPPoE usable with NO_SYS==1
2009-12-31 17:18:09 +00:00
goldsimon
1d45aa8d45
Reorganised PPP source code from ucip structure to pppd structure to easily compare our code against the pppd code (around v2.3.1)
2009-12-31 17:08:08 +00:00
goldsimon
a7bcdf4398
Remove warning for TCP_LISTEN_BACKLOG==0
2009-12-31 16:51:17 +00:00
goldsimon
9a0dac5885
Removed unused test function
2009-12-31 16:50:11 +00:00
goldsimon
c9e0652526
Remove C++-style comments
2009-12-31 16:49:36 +00:00
goldsimon
a566f9d8f2
Separated timer implementation from semaphore/mbox implementation, moved timer implementation to timers.c/.h (TASK#7235)
2009-12-31 16:16:44 +00:00
goldsimon
1740b0d421
Some functions were located outside extern "C" {}
2009-12-31 15:57:22 +00:00
goldsimon
802a048302
Commented 2 variables
2009-12-31 15:12:00 +00:00
goldsimon
fa08823ac4
Added an additional option LWIP_ETHERNET to support ethernet without ARP (necessary for pure PPPoE)
2009-12-27 11:42:16 +00:00
goldsimon
a1c0b9da7b
Added an additional option LWIP_ETHERNET to support ethernet without ARP (necessary for pure PPPoE) - no changes in the ppp code yet
2009-12-27 11:40:48 +00:00
goldsimon
bf261f4f13
Another fix for bug #28241 (ooseq processing) and adapted corresponding unit test
2009-12-27 11:31:19 +00:00
kieranm
dc8639bc06
Update version numbering for 1.4.0 CVS development
2009-12-24 15:49:12 +00:00
kieranm
125efd8396
Update CHANGELOG for 1.3.2
2009-12-24 15:33:19 +00:00
kieranm
4a9557fa84
Update version information for 1.3.2
2009-12-24 15:32:19 +00:00
kieranm
6b6c82aaee
BUG28241: improve oos sequence processing with patches from Oleg Tyshev.
2009-12-24 15:31:44 +00:00
goldsimon
feca27d69e
Slightly modified the out-of-sequence-FIN test: receive packets with FIN & data and with FIN alone
2009-12-11 13:07:47 +00:00
goldsimon
fbef894674
tcp_set_state: fail on unimplemented state
2009-12-11 13:07:06 +00:00
goldsimon
2e4bb8b3b7
Added explicit check for number of segments and seqno/len of each segment on pcb->ooseq
2009-12-10 17:34:11 +00:00
goldsimon
e9940acb54
Updated comments on which sio-functions are used
2009-12-07 18:58:13 +00:00
goldsimon
957331fff4
Added a note why MSCHAP currently doesn't work with lwIP PPP
2009-12-07 07:50:24 +00:00
goldsimon
faba395cae
Added description about the PPP stack
2009-12-07 07:28:27 +00:00
goldsimon
1d5809679b
Various small improvements from patch #6965 (removed _inet_ntoa, set PPP netif down before removing, change log message and comment)
2009-12-06 11:59:56 +00:00
goldsimon
b5014b0966
tcp_process: add state info to log message that is used for multiple states ("TCP connection closed")
2009-12-06 11:57:31 +00:00
goldsimon
b1ad36eece
Fixed bug #27079 (Yet another leak in PPP): outpacket_buf can be statically allocated (like in ucip)
2009-12-06 11:12:18 +00:00
goldsimon
1b42286bda
pppInit: Remove zeroing the stats - no protocol does that
2009-12-06 10:56:28 +00:00
goldsimon
5da0620c6b
Fixed checking input packet length (20 bytes is a valid packet and is used e.g. with MS RAS server)
2009-12-06 10:14:46 +00:00
goldsimon
96e8f16c05
Sligthly reordered struct netif's members to better meet alignment requirements
2009-12-06 08:58:41 +00:00
goldsimon
b5d28e0a9c
patch #6969 : PPP: missing PAP authentication UNTIMEOUT
2009-12-04 15:41:26 +00:00
goldsimon
73251bc9c1
PPP: Make MAXNAMELEN/MAXSECRETLEN overridable in lwipopts.h
2009-12-04 09:00:55 +00:00
goldsimon
3fa63b35b3
The guy's name is Van Jacobson (not Jabobsen or Jacobsen :-)
2009-12-04 08:57:22 +00:00
goldsimon
65f006e52e
Moved the function definitions so that other modules can use the ICMP protocol header definitions when LWIP_ICMP==0
2009-12-04 08:11:57 +00:00
goldsimon
7d46e06824
Fixed bug #28106 : dup ack for fast retransmit could have non-zero length
2009-12-03 19:42:35 +00:00
goldsimon
32acb82bc0
Fixed some typos
2009-12-03 18:07:00 +00:00
goldsimon
3a1c5944e7
Fixed bug #27904 : TCP sends too many ACKs: delay resetting tcp_input_pcb until after calling the pcb's callbacks
2009-12-02 17:01:29 +00:00
goldsimon
04c5246e02
Fix compilation for PPPOE without PPPOS and VJ_SUPPORT without PPPOS_SUPPORT
2009-12-01 20:46:14 +00:00
goldsimon
46dc1c9bfb
Minor (null-pointer check for not-on-list-netif)
2009-12-01 19:59:36 +00:00
goldsimon
b900253c09
tcp_receive(): removed unnecessary return value, added comment
2009-11-29 13:43:38 +00:00
goldsimon
59a5fb7ce8
Fixed bug #28054 : Two segments with FIN flag on the out-of-sequence queue, also fixed PBUF_POOL leak in the out-of-sequence code
2009-11-29 13:23:21 +00:00
goldsimon
c5d2e536cf
Worked on tcp_oos unit tests, nearly all TCP_QUEUE_OOS code is covered now
2009-11-29 13:20:13 +00:00
goldsimon
aeef0a21f3
Fixed bug #28064 : pbuf_alloc(PBUF_POOL) is not thread-safe by queueing a call into tcpip_thread to free ooseq-bufs if the pool is empty
2009-11-29 11:57:35 +00:00
goldsimon
902ad897b8
Initial check-in of some unit tests
2009-11-27 08:03:53 +00:00
goldsimon
478ccee5fc
tcp_rexmit(): no need to call tcp_output, since always called from tcp_input and thus tcp_output always returns without sending (prevent confusion by thinking data was sent while in tcp_rexmit!)
2009-11-26 16:44:16 +00:00
goldsimon
43fd5c28b5
Fixed bug #28098 : Nagle can prevent fast retransmit from sending segment by basing the nagle-decision on TF_INFR also
2009-11-26 16:42:13 +00:00
goldsimon
4391463832
Got the tcp_nagle_*() defines wrong (inverted) :-(
2009-11-26 15:51:29 +00:00
goldsimon
c8d2d2a8ea
Fixed bug #28099 (API required to disable Nagle algorithm at PCB level): added tcp_nagele_*() function-like macros
2009-11-26 15:19:30 +00:00
goldsimon
6795aabecf
Fixed filename in last comment
2009-11-22 17:57:19 +00:00
goldsimon
a939c09a6b
Fixed bug #27905 : FIN isn't combined with data on unsent
2009-11-22 17:55:03 +00:00
goldsimon
35d1c33e0a
tcp_alloc: prevent increasing stats.err for MEMP_TCP_PCB when reusing time-wait pcb as suggested by Bill 4 months ago
2009-11-22 17:52:48 +00:00
goldsimon
10edf64873
Fixed bug #27851 (TCP_EVENT_RECV(pcb, NULL,...) results in unreachable code warning) by calling tcp_recv_null if pcb->recv is null.
2009-11-22 16:17:55 +00:00
goldsimon
6d22c38e59
tcp_recv_null: call tcp_recved() if p != NULL to keep the window correct
2009-11-22 16:16:55 +00:00
goldsimon
8a81cb4ba0
Fixed bug #27955 : netconn_close may nether return when LWIP_TCPIP_CORE_LOCKING enabled
2009-11-22 16:08:52 +00:00
goldsimon
6bb7f987f2
Fixed bug #28049 (Keep Alive timeout frees pcb then uses it, sometimes causing crash error) by calling tcp_rst() instead of tcp_abort() in tcp_slowtmr() when retransmit timer expires.
2009-11-22 15:44:12 +00:00
goldsimon
1c018caefe
move tcp_debug_print_state to prevent accessing pcb when it might already be deallocated due to recv_flags == TF_RESET or TF_CLOSED
2009-11-22 15:42:30 +00:00
goldsimon
0c136893e5
Fixed logging of timeout-function-pointer (pointer to local stack was logged instead of actual function pointer), minor coding style fix
2009-11-22 15:25:13 +00:00
goldsimon
f4c0655190
Fixed usage of logging levels (bug #27948 : Incorrect logging levels used in various places)
2009-11-22 15:14:46 +00:00
goldsimon
49bdf32765
Fixed usage of logging levels (bug #27948 : Incorrect logging levels used in various places)
2009-11-22 13:31:31 +00:00
goldsimon
88d02a624a
Clarified debug levels by renaming level OFF to ALL (the old define still exists for now to prevent breaking old code)
2009-11-22 13:14:57 +00:00
goldsimon
98a58f9e67
tcp_input: move tcp_debug_print_state to prevent accessing pcb when it might already be deallocated due to calling tcp_abort in tcp_process.
2009-11-20 16:56:25 +00:00
goldsimon
b30c6f8b9e
Fixed comment: tcp_pcb_remove does *not* deallocate the pcb
2009-11-20 16:43:57 +00:00
goldsimon
94a7fee8c8
Fixed bug #28062 : Data received directly after accepting does not wake up select
2009-11-20 16:16:20 +00:00
goldsimon
6f38b63a47
Fixed bug #27994 : incorrect define for freeaddrinfo(addrinfo)
2009-11-11 16:52:05 +00:00
goldsimon
70b05c8096
Increased default value for TCP_MSS to 536, updated default value for TCP_WND to 4*TCP_MSS to keep delayed ACK working.
2009-10-30 10:02:06 +00:00
goldsimon
28ac4347d4
Fixed wrong filename
2009-10-29 17:10:19 +00:00
kieranm
dee1d82c11
re-work the fast retransmission code to follow algorithm from TCP/IP
...
Illustrated
2009-10-29 15:48:57 +00:00
kieranm
6d73f82f41
Update version for 1.3.2 rc 1
2009-10-28 15:17:16 +00:00
kieranm
71ddff4964
Fix BUG#27445: grow cwnd with every duplicate ACK
2009-10-28 15:13:51 +00:00
goldsimon
af3b796488
Corrected parameter spelling in doc
2009-10-27 20:30:44 +00:00
goldsimon
e2de2c6bb2
Added netifapi_netif_set_addr()
2009-10-27 20:29:16 +00:00
goldsimon
2ff0ce2d0a
Minor: Improved memory layout/alignment of struct dhcp for 32-bit platforms
2009-10-26 09:59:54 +00:00
goldsimon
b09b8a0ccc
Tiny code size improvement using goto instead of duplicating code
2009-10-26 09:55:46 +00:00
goldsimon
db259c3557
Improved heap usage of lwip_getaddrinfo by only allocating one block of memory per call.
2009-10-26 09:30:50 +00:00
goldsimon
bcc87ef851
bug-fix in the TCP_EVENT_RECV macro (has to call tcp_recved if pcb->recv is NULL to keep rcv_wnd correct)
2009-10-25 18:47:44 +00:00
goldsimon
650f16b6d9
Minor: fixed typo
2009-10-25 16:47:41 +00:00
goldsimon
ae2dd38e0d
Another fix for bug #26251 : RST process in TIME_WAIT TCP state
2009-10-25 11:45:11 +00:00
kieranm
0319c1cf90
Update link to wiki in README file
2009-10-23 15:23:23 +00:00
goldsimon
81f9442ac7
Fixed bug #27783 : Silly window avoidance for small window sizes
2009-10-23 13:17:18 +00:00
goldsimon
18ab274af3
Fixed bug #26251 : RST process in TIME_WAIT TCP state
2009-10-22 13:37:44 +00:00
goldsimon
65d1f52423
Changed fix for bug #27215 (TCP sent() callback gives leagin and trailing 1 byte len (SYN/FIN)) by decreasing pcb->acked appropriately
2009-10-21 15:42:14 +00:00
goldsimon
f1b82e0e9a
bug #27315 : zero window probe and FIN: only send pure FIN if the enqueued FIN segment doesn't contain any other data
2009-10-21 15:15:34 +00:00
goldsimon
67411c4299
Minor code simplification (don't store received pbuf, change conditional code to assert where applicable), check pbuf length before testing for valid reply
2009-10-19 20:06:01 +00:00
goldsimon
a37e62b7d0
Removed most calls to udp_connect since they aren't necessary when using udp_sendto_if() - always stay connected to IP_ADDR_ANY.
2009-10-19 16:43:50 +00:00
goldsimon
e2c1f7d5b5
dhcp_unfold_reply: NULL memory might have been freed after mem_malloc returned NULL
2009-10-18 09:26:27 +00:00
goldsimon
ec97fbd101
dhcp_inform(): netif->dhcp pointed to unallocated memory when udp_new() failed
2009-10-18 09:13:47 +00:00
goldsimon
b7d7559cc9
Fixed bug #27215 : TCP sent() callback gives leadin and trailing 1 byte len (SYN/FIN)
2009-10-18 08:30:44 +00:00
goldsimon
b4404ff0c8
Corrected typo
2009-10-18 08:23:05 +00:00
goldsimon
502e89f4ad
Fixed bug #27315 : zero window probe and FIN
2009-10-16 21:07:48 +00:00
goldsimon
d8d8cf7e98
Fixed bug #27390 : Source IP check in ip_input() causes it to drop valid DHCP packets -> allow 0.0.0.0 as source address when LWIP_DHCP is enabled
2009-10-16 12:39:24 +00:00
goldsimon
d9a5094068
Fixed bug #27329 : dupacks by unidirectional data transmit
2009-10-15 20:09:13 +00:00
goldsimon
a9740c6a44
Fixed bug #27709 : conn->err race condition on netconn_recv() timeout by directly returning when sys_arch_mbox_fetch times out.
2009-10-15 14:33:18 +00:00
goldsimon
2dc027401f
Fixed bug #27704 : autoip starts with wrong address: LWIP_AUTOIP_CREATE_SEED_ADDR() returned address in host byte order instead of network byte order
2009-10-15 14:05:35 +00:00
goldsimon
ac638c85f3
Fixed bug #27504 : tcp_enqueue wrongly concatenates segments which are not consecutive when retransmitting unacked segments
2009-10-11 13:06:44 +00:00
goldsimon
c0e22c255c
Fixed default values of some stats to only be enabled if used Fixes bug #27338 : sys_stats is defined when NO_SYS = 1
2009-10-09 20:18:15 +00:00
goldsimon
1309e5e86f
Accidentally endabled to compile the code -> back to #if 0
2009-10-09 20:16:26 +00:00
goldsimon
c34c024dd5
Updated comment in low_level_input() about pbuf len vs. tot_len if using preallocated pbufs (as requested in bug #27576 : pbuf_realloc will assert or crash on a non-chained pbuf list)
2009-10-09 19:56:54 +00:00
goldsimon
6ef69ece95
patch #6930 : [PATCH trivial] TCP_RMV remove unnecessary check - removed two checks for NULL which are not necessary.
2009-10-07 18:04:24 +00:00
goldsimon
a9cbdc141b
patch #6888 : Patch for UDP Netbufs to support dest-addr and dest-port
2009-10-07 17:58:30 +00:00
goldsimon
9e5cf1cf8e
Reverted change for bug #27252 (Address pointer invalid after freeing pbuf in UDP receive callback) as it made more problems than before :-(
2009-10-07 17:50:46 +00:00
goldsimon
ddc783bee7
Make ip_current_netif() and ip_current_header() a define referring to extern variables to be save the function call.
2009-10-07 17:47:05 +00:00
goldsimon
68f92050e9
Make tcp_debug_state_str() always available, not only in DEBUG mode
2009-10-07 17:44:59 +00:00
goldsimon
bd2bc2ee14
Fixed bug bug #27345 : "ip_frag() does not use the LWIP_NETIF_LOOPBACK function" by checking for loopback before calling ip_frag
2009-08-30 20:52:43 +00:00
goldsimon
8a7c1c4926
do_connect: LWIP_ERROR on invalid/disabled protocol
2009-08-30 20:24:08 +00:00
goldsimon
cff3e0cad2
bug #26397 : Added SLIP polling support (uses sio_tryread)
2009-08-26 21:06:18 +00:00
stoklund
b55cfbc342
Add patch #6725 to CHANGELOG
2009-08-26 07:18:50 +00:00
goldsimon
3115087d26
Commented the functions, added sio_tryread() for non-blocking read (to be used in slipif-polling mode)
2009-08-25 17:54:28 +00:00
goldsimon
057c51ff6d
Use LWIP_UNUSED_ARG() instead of if(){}, fix unused arg warning if LWIP_ARP==0
2009-08-25 17:50:59 +00:00
goldsimon
f2f20cf133
fixed invalid dependency to etharp_query if DHCP_DOES_ARP_CHECK==0
2009-08-25 17:49:47 +00:00
goldsimon
2c618705f0
task #9033 : Support IEEE 802.1q tagged frame (VLAN), New configuration options ETHARP_SUPPORT_VLAN and ETHARP_VLAN_CHECK.
2009-08-25 15:24:49 +00:00
goldsimon
bc10ad2356
patch #6900 : added define ip_ntoa(struct ip_addr*)
2009-08-25 14:53:25 +00:00
stoklund
857fac1168
Add C++ guards to autoip.h header.
2009-08-24 13:17:42 +00:00
stoklund
103ba9b0fc
The DHCP client should enter the REBOOTING state when connecting to a
...
new network. If DHCP has bound to an address, it must be verified
after netif_set_link_up.
2009-08-24 13:12:37 +00:00
stoklund
d83fc6893b
Don't use an AutoIP-configured address on a new network until the address has been configured.
...
When connecting to a new network with an AutoIP address, take the
interface down until the old address has passed the
AUTOIP_STATE_PROBING state.
2009-08-24 13:11:35 +00:00
goldsimon
e7d5739ce7
Fixed bug #27078 : Possible memory leak in pppInit()
2009-08-23 17:40:29 +00:00
goldsimon
8bf57c0e14
Fixed bug #26657 : DNS, if host name is "localhost", result is error.
2009-08-23 13:51:12 +00:00
goldsimon
dea7255fc5
Fixed bug #26649 : TCP fails when TCP_MSS > TCP_SND_BUF, Fixed wrong parenthesis, added check in init.c
2009-08-23 13:03:20 +00:00
goldsimon
ce3082976c
Fixed bug #27266 : wait-state debug message in pppMain occurs every ms
2009-08-23 12:37:36 +00:00
goldsimon
362a295e06
Fixed bug #27252 : Address pointer invalid after freeing pbuf in UDP receive callback
2009-08-23 11:32:38 +00:00
goldsimon
0e91e2adf2
bug #27267 : Added include to string.h where needed
2009-08-23 11:24:51 +00:00
goldsimon
4d49d952b6
patch #6843 : tcp.h macro optimization patch (for little endian)
2009-08-23 11:13:19 +00:00
goldsimon
ae7a7a0abf
Added function tcp_debug_state_str() to convert a tcp state to a human-readable string.
2009-08-23 10:57:37 +00:00
kieranm
4f265dce60
Update version number for CVS development
2009-08-18 12:53:35 +00:00
kieranm
bd96db8c9f
Update version number of 1.3.1 final release
2009-08-18 12:47:13 +00:00
kieranm
0b75917121
BUG27209: handle trimming of segments when out of window or out of
...
order properly
2009-08-12 08:34:48 +00:00
kieranm
fa2dbc2b1b
BUG27199: use snd_wl2 instead of snd_wl1
2009-08-12 08:32:14 +00:00
goldsimon
3a6165f0b9
Added missing include to <string.h>
2009-08-11 14:38:55 +00:00
goldsimon
62c27f7fce
Fixed bug #27155 : "'NULL' undeclared in inet_checksum.c"
2009-08-03 19:28:35 +00:00
goldsimon
7feb116bae
Fixed bug #27105 : "realloc() cannot replace mem_realloc()" by making mem_realloc static doing nothing when MEM_LIBC_MALLOC==1
2009-07-28 17:18:46 +00:00
goldsimon
730a938912
Added debug print when rejecting incoming connections due to exceeded listen backlog
2009-07-28 17:04:04 +00:00
goldsimon
3553efb75e
Added newline to TCP header flags debug print
2009-07-28 17:02:48 +00:00
kieranm
6111230fe9
Fix compile warning on Linux
2009-07-27 15:39:40 +00:00
kieranm
6bce84e070
Update for 1.3.1rc2
2009-07-27 15:21:36 +00:00
kieranm
a6e316a92d
Add missing #include directives
2009-07-27 15:20:33 +00:00
goldsimon
22bcf5892a
Fixed bug #27034 : "Invalid ASSERT in pbuf_alloc()" to prevent breaking PPP (for now).
2009-07-27 15:17:13 +00:00
goldsimon
cc4b968f0a
Fixed bug #27114 : Missing #include in api_msg.c on LWIP 1.3.1RC1; added include <string.h>
2009-07-27 15:13:24 +00:00
stoklund
893ddcf61b
Implement exponential backoff in dhcp.c
2009-07-23 08:59:13 +00:00
stoklund
cf81dbcca4
Reuse XIDs for DHCP retransmissions
2009-07-23 08:57:45 +00:00
goldsimon
5830200029
Added missing include to netif.h
2009-07-20 15:48:55 +00:00
kieranm
972592cf8a
Update version numbers for release candidate
2009-07-09 11:43:28 +00:00
fbernon
ce5699f41b
minor changes: typos and coding style
2009-07-09 10:21:16 +00:00
kieranm
1eee0be951
BUG23240 use signed counters for recv_avail and don't increment
...
counters until message successfully sent to mbox
2009-07-09 09:35:07 +00:00
kieranm
fb555a0633
Update changelog for recent commits
2009-06-25 12:58:52 +00:00
kieranm
2b87f899ab
BUG26722: initialise netconn write variables in netconn_alloc
2009-06-25 10:17:18 +00:00
kieranm
776e1926a3
BUG26879: set ret value in TCP_EVENT_ macros when function is not set
2009-06-25 10:03:53 +00:00
kieranm
c232edb83a
BUG26301 and BUG26267: correct simultaneous close behaviour, and make
...
snd_nxt have the same meaning as in the RFCs.
2009-06-25 09:57:36 +00:00
goldsimon
aefeba3fc0
Added note about printf formatter defines
2009-05-20 18:59:05 +00:00
goldsimon
6d4064799a
Corrected structure packing
2009-05-20 18:33:45 +00:00
goldsimon
e0e9a63e63
Corrected function implementation of ip_current_* (void was missing)
2009-05-19 18:11:01 +00:00
goldsimon
bcdffce6ce
Corrected function definition of ip_current_* (void was missing)
2009-05-19 05:40:30 +00:00
goldsimon
ff97c8a1a9
Moved function definition below defines and typedefs, added missing include to netif.h
2009-05-18 17:56:01 +00:00
goldsimon
30acd1662d
fixed bug #26507 : "Gratuitous ARP depends on arp_table / uses etharp_query" by adding etharp_gratuitous()
2009-05-12 20:13:45 +00:00
goldsimon
078e2f60d6
bug #26487 : Added ip_output_if_opt that can add IP options to the IP header (used by igmp_ip_output_if)
2009-05-12 18:00:47 +00:00
goldsimon
c7ce2792c8
Fixed compilation if LWIP_PLATFORM_BYTESWAP && (BYTE_ORDER == LITTLE_ENDIAN)
2009-05-11 16:11:18 +00:00
goldsimon
22d6558f13
task #7013 : Added option LWIP_NETIF_TX_SINGLE_PBUF to try to create transmit packets from only one pbuf to help MACs that don't support scatter-gather DMA.
2009-05-10 17:07:25 +00:00
goldsimon
105d72a3c2
Shrinked ICMP code, added option to NOT check icoming ECHO pbuf for size (just use it): LWIP_ICMP_ECHO_CHECK_INPUT_PBUF_LEN
2009-05-09 08:36:36 +00:00
goldsimon
c752e5731c
Worked on dns: local host-list can be put into FLASH (by defining storage target/linker section), external function can be defined for lookup, combined dns_local_removehostname/removehostaddr to dns_local_removehost
2009-05-07 15:27:02 +00:00
goldsimon
72e9cf53e7
Added netbuf.h to files that may be called from any thread
2009-05-07 14:20:37 +00:00
goldsimon
e66d315c9b
Added more threading info
2009-05-07 14:15:51 +00:00
goldsimon
95f6dc7011
On little endian architectures, use LWIP_PLATFORM_HTONS (if defined) for SWAP_BYTES_IN_WORD to speed up checksumming.
2009-05-06 17:35:50 +00:00
goldsimon
ac9e758f41
Patch #6823 : tcp_in.c - small optimization
2009-05-06 17:30:18 +00:00
goldsimon
518b18dad0
Added #if LWIP_SNMP around snmp-internal header files
2009-05-06 15:35:13 +00:00
goldsimon
bdd5586cee
Added a word or two on threading, which should be sufficient to close task #6683
2009-05-05 19:33:41 +00:00
goldsimon
14dba4ae2b
Added ip_current_netif() & ip_current_header() to receive extended info about the currently received packet.
2009-05-05 17:50:39 +00:00
goldsimon
99d82c4980
Fixed bug #26405 : Prematurely released semaphore causes lwip_select() to crash
2009-05-05 17:20:45 +00:00
goldsimon
fb46e0f192
snmp was not initialized in lwip_init()
2009-05-04 19:22:26 +00:00
fbernon
b055128ec4
CHANGELOG: minor, typo
2009-05-04 08:50:24 +00:00
fbernon
e29f94a980
dhcp.c, netbios.c: Changes if IF_SOF_BROADCAST is enabled.
2009-05-04 08:40:44 +00:00
goldsimon
24342eaab0
Fixed bug #26349 : Nagle algorithm doesn't send although segment is full (and unsent->next == NULL)
2009-05-03 14:17:33 +00:00
goldsimon
152d22d4f9
fixed tcpip_untimeout (does not need the time, broken after 1.3.0 in CVS only) - fixes compilation of ppp_oe.c
2009-05-02 16:12:35 +00:00
goldsimon
41eecb67d2
fixed bug #25636 : SNMPSET value is ignored for integer fields
2009-05-02 15:45:53 +00:00
goldsimon
9317105c37
Addition to patch #6721 , bug #25575 : call autoip_stop in dhcp_stop if in coop-mode
2009-05-02 15:40:39 +00:00
goldsimon
23d7f5425d
Fixed bug #21680 : PPP upap_rauthnak() drops legal NAK packets
2009-05-01 12:10:34 +00:00
goldsimon
217f279fdb
Fixed bug #24228 : Memory corruption with PPP and DHCP
2009-05-01 11:42:36 +00:00
fbernon
d4ecb23015
raw.c, udp.c, init.c, opt.h, ip.h, sockets.h: bug #26309 : Implement the SO(F)_BROADCAST filter for all API layers. Avoid the unindented reception of broadcast packets even when this option wasn't set. Port maintainers which want to enable this filter have to set IP_SOF_BROADCAST=1 in opt.h. If you want this option also filter broadcast on recv operations, you also have to set IP_SOF_BROADCAST_RECV=1 in opt.h.
2009-04-29 12:42:43 +00:00
fbernon
42c59e1079
netif.c: minor, fix a warning
2009-04-29 12:39:16 +00:00
goldsimon
3b5993e6ee
Integrated patch #6721 : new option to adjust the time when DHCP gives over to AUTOIP and some improvements in DHCP/AUTOIP cooperation
2009-04-28 19:29:46 +00:00
goldsimon
4b8255a588
Bug #25608 : Made SYS_LIGHTWEIGHT_PROT and sys_now() work with NO_SYS=1
2009-04-27 20:09:52 +00:00
goldsimon
36e3d24331
Fixed a bug in tcp_enqueue introduced with v1.79 of this file while fixing bug #25094 (zero-length pbuf)
2009-04-27 19:00:23 +00:00
goldsimon
261dfdf010
fixed bug #24212 : "Deadlocked tcp_retransmit due to exceeded pcb->cwnd": Fixed by sorting the unsent and unacked queues (segments are inserted at the right place in tcp_output and tcp_rexmit)
2009-04-26 12:27:11 +00:00
goldsimon
cbfacb7ed9
bug #26213 "Problem with memory allocation when debugging": memp_sizes contained the wrong sizes (including sanity regions); memp pools for MEM_USE_POOLS were too small; Added option MEM_USE_POOLS_TRY_BIGGER_POOL to try the next bigger malloc pool if one is empty (only usable with MEM_USE_POOLS).
2009-04-25 17:42:27 +00:00
fbernon
4eda29abf9
inet.c: patch #6765 : Fix a small problem with the last changes (incorrect behavior, with ip address string not ended by a '\0', a space or a end of line)
2009-04-24 12:14:54 +00:00
goldsimon
c3f7107e2b
Fixed some issues with DNS_LOCAL_HOSTLIST
2009-04-23 16:54:30 +00:00
fbernon
67a3976a24
init.c: typo
2009-04-23 15:28:52 +00:00
fbernon
4fba1b1430
netdb.c: remplace some %#p by %p to be more portable.
2009-04-23 14:41:52 +00:00
goldsimon
029b786c77
Fixed bug #26069 : Corrected documentation: if tcp_connect fails, pcb->err is called, not pcb->connected (with an error code).
2009-04-21 19:15:16 +00:00
goldsimon
51e02176da
task #7507 , patch #6786 : DNS supports static hosts table. New configuration options DNS_LOCAL_HOSTLIST and DNS_LOCAL_HOSTLIST_IS_DYNAMIC.
2009-04-21 18:35:18 +00:00
goldsimon
ed65d9cd75
Fixed bug #26236 : "TCP options (timestamp) don't work with no-copy-tcpwrite": deallocate option data, only concat segments with same flags
2009-04-19 12:42:48 +00:00
goldsimon
542b8fffb1
Fixed bug #25094 : "Zero-length pbuf" (options are now allocated in the header pbuf, not the data pbuf); added function comments; "inline" is not supported by ANSI C (tcp_build_timetamp_option)
2009-04-19 12:31:16 +00:00
goldsimon
12c50ed87b
tcp_listen_input: format code for #if LWIP_TCP_TIMESTAMPS that calls tcp_enqueue like the other calls.
2009-04-19 12:17:59 +00:00
goldsimon
9d5bf57dd9
fixed bug #25695 : Segmentation fault in do_writemore()
2009-04-18 17:48:41 +00:00
goldsimon
04df18bcd3
Changed ??? to LINK_SPEED_OF_YOUR_NETIF_IN_BPS
2009-04-17 10:14:09 +00:00
goldsimon
422ba5bcec
tried to fix bug #23559 : lwip_recvfrom problem with tcp
2009-04-15 21:13:55 +00:00
goldsimon
27b28a9306
Converted netconn_type() from a function to a macro
2009-04-15 21:04:19 +00:00
goldsimon
620b3e6739
task #9192 : mem_free of dhcp->options_in and dhcp->msg_in
2009-04-15 19:53:59 +00:00
goldsimon
580f334274
patch #6808 : Add a utility function ip_hinted_output() (for smaller code mainly)
2009-04-15 19:32:01 +00:00
goldsimon
4f52183a39
patch #6765 : Supporting new line characters in inet_aton()
2009-04-15 19:06:39 +00:00
goldsimon
a55f354687
patch #6763 : Global DHCP XID can be redefined to something more unique
2009-04-15 18:48:10 +00:00
goldsimon
9630c9136b
patch #6764 : DHCP rebind and renew did not send hostnam option; Converted constant OPTION_MAX_MSG_SIZE to netif->mtu, check if netif->mtu is big enough in dhcp_start
2009-04-15 18:35:04 +00:00
goldsimon
dbd6d7ec8d
bug #26027 : netbuf_chain resulted in pbuf memory leak
2009-04-15 14:57:32 +00:00
goldsimon
b3a5d6df0d
bug #25763 : Corrected 4 occurrences of SMEMCPY to MEMCPY; corrected indentation
2009-04-15 14:48:56 +00:00
goldsimon
3587e8481d
bug #26121 : set_errno can be overridden
2009-04-15 14:33:05 +00:00
kieranm
4f8f6ba205
Patch#6774 TCP_QUEUE_OOSEQ breaks compilation when LWIP_TCP==0
2009-04-09 15:16:26 +00:00
kieranm
f81ed216db
Patch#6802 Add do-while-clauses to those function like macros in tcp.h
2009-04-09 15:09:22 +00:00
kieranm
f1a9f7ea70
BUG20515: rework way TCP window updates are calculated and sent
2009-03-31 14:23:40 +00:00
kieranm
4b14621208
TASK9218: add support for TCP timestamp options
2009-03-31 14:13:32 +00:00
kieranm
baf30f5eae
BUG20779: cope with SYN packets received during established states,
...
and retransmission of initial SYN.
2009-03-31 10:55:31 +00:00
kieranm
e7a2ab5de9
BUG26010: set push bit correctly when tcp segments are merged
2009-03-31 10:53:11 +00:00
kieranm
fd41c5de2d
Correct change to probe window setting
2009-03-27 11:04:04 +00:00
kieranm
efac109803
BUG25622: handle return code of tcp_enqueue in tcp_listen_input()
2009-03-26 14:31:02 +00:00
kieranm
84505d4cc8
BUG25629: set TCP_ACK flags on keepalive and zero window probes
2009-03-26 14:25:46 +00:00
kieranm
7d8fac62ec
Fix compiler warning about %#p
2009-03-25 11:02:24 +00:00
goldsimon
b6e18d9c6f
cc.h: Added printf formatter for size_t: SZT_F
2009-02-19 19:29:28 +00:00
goldsimon
c05e968278
Fixed many LWIP_DEBUGF format strings; added new format string SZT_F for size_t
2009-02-18 21:13:06 +00:00
goldsimon
103fe60362
mem_free: fix a warning by converting pointer to mem_ptr_t instead of unsigned long
2009-02-18 20:42:16 +00:00
goldsimon
638020ec70
sys_now() must return u32_t, not unsigned long
2009-02-18 20:37:42 +00:00
goldsimon
56038b6457
Fixed many warnings: use %p to pass pointers to printf
2009-02-18 20:37:09 +00:00
goldsimon
96b788bea7
patch #6528 : the buffer used for IP_FRAG_USES_STATIC_BUF could be too small depending on MEM_ALIGNMENT
2009-02-18 16:54:02 +00:00
goldsimon
7b6c11360f
Added check: PBUF_POOL_BUFSIZE must be greater than MEM_ALIGNMENT or else the offset of a pbuf may take the full first pbuf in a chain (resulting in the first pbuf having len==0)
2009-02-18 16:50:40 +00:00
goldsimon
ea1eb45e3f
etharp_raw: allocating PBUF_RAW for outgoing ARP packets instead of PBUF_LINK is enough.
2009-02-18 16:48:30 +00:00
goldsimon
e001a021d5
patch #6539 : (configurable) response to broadcast- and multicast pings
2009-02-16 20:24:29 +00:00
goldsimon
14cb4eb735
fixed arguments of socket functions to match the standard; converted size argument of netconn_write to 'size_t' for that; fixed some warnings
2009-02-16 19:33:51 +00:00
goldsimon
d976c8e85f
fixed bug #24440 : TCP connection close problem on 64-bit host by moving accept callback function pointer to TCP_PCB_COMMON
2009-02-16 16:50:58 +00:00
goldsimon
d2d33cb984
Fixed compilation error in LWIP_VERSION
2009-02-16 16:43:06 +00:00
goldsimon
eeae59ecb7
LWIP_VERSION: corrected shifting for 16-bit platforms, added LWIP_RC_DEVELOPMENT
2009-02-15 20:44:40 +00:00
goldsimon
466f4e699c
Added LWIP_VERSION to get the current version of the stack (implements task #9032 : Provide means to get Version of Stack and submodules)
2009-02-12 21:00:11 +00:00
goldsimon
bf09400c4c
fixed bug #25345 (DHCPDECLINE is sent with "Maximum message size" option)
2009-02-12 16:16:25 +00:00
goldsimon
c4509e700d
added MEMP_MEM_MALLOC to use mem_malloc/mem_free instead of the pool allocator (can save code size with MEM_LIBC_MALLOC if libc-malloc is otherwise used)
2009-02-11 20:43:41 +00:00
goldsimon
6472e3b35e
fixed bug #24480 (releasing old udp_pdb and pbuf in dhcp_start)
2009-02-11 20:27:00 +00:00
goldsimon
f9bd5019fa
including inet.h because htonl is used
2009-02-11 20:21:20 +00:00
goldsimon
8c7705bbf9
added configurable default valud for netconn->recv_bufsize: RECV_BUFSIZE_DEFAULT (fixes bug #23726 : pbuf pool exhaustion on slow recv())
2009-02-11 19:07:22 +00:00
goldsimon
243e3d0d91
Fixed bug #25544 : DHCP_COARSE_TIMER_MSECS could overflow on 16-bit targets
2009-02-11 17:48:34 +00:00
goldsimon
19884f40b8
Moved INADDR_* defines to inet.h; removing dependency from inet.h to ip_addr.h
2009-02-10 20:44:51 +00:00
goldsimon
10c3ce08af
fixed bug #25467 : Listen backlog is not reset on timeout in SYN_RCVD: Accepts_pending is decrease on a corresponding listen pcb when a connection in state SYN_RCVD is close.
2009-02-10 20:29:38 +00:00
jifl
878532a30d
* ipv4/inet_chksum.c, ipv4/lwip/inet_chksum.h: inet_chksum_pseudo_partial()
...
is only used by UDPLITE at present, so conditionalise it.
2009-01-28 23:58:15 +00:00
jifl
102d69004a
* pbuf.c: reclaim pbufs from TCP out-of-sequence segments if we run
...
out of pool pbufs.
2009-01-28 05:43:35 +00:00
goldsimon
b0c61ffbb1
Reverted last changes since it's wrong when sizeof(int)==2...
2008-12-20 12:24:41 +00:00
goldsimon
9f96f09652
Another fix for bug #6683 (and a typo in changelog)
2008-12-19 18:16:50 +00:00
goldsimon
aa568727d1
patch #6699 : fixed some warnings on platform where sizeof(int) == 2
2008-12-19 18:08:29 +00:00
fbernon
411cb39eb4
sockets.c: fixed bug #25051 : lwip_recvfrom problem with udp: fromaddr and port uses deleted netbuf.
2008-12-10 21:36:44 +00:00
goldsimon
6777ae2ada
Another modification for patch #6683 (Customizable AUTOIP seed address)
2008-12-10 17:08:42 +00:00
goldsimon
2cf3e6e9bc
Corrected the range calculation of LWIP_AUTOIP_CREATE_SEED_ADDR, corrected comments
2008-12-04 18:34:48 +00:00
goldsimon
491b73d5f2
Checked in (slightly modified) patch #6683 : Customizable AUTOIP "seed" address. This should reduce AUTOIP conflicts if LWIP_AUTOIP_CREATE_SEED_ADDR is overridden.
2008-12-03 15:13:21 +00:00
jifl
1f3fe200df
Correct commented description of do_recv().
...
Reported by Charles Landau on lwip-users.
2008-11-12 19:14:21 +00:00
goldsimon
299e2a7077
fixed bug ##24596: Vulnerability on faulty TCP options length in tcp_parseopt
2008-10-18 15:24:06 +00:00
goldsimon
13a139eef7
fixed bug #24517 : IP reassembly crashes on unaligned IP headers by packing the struct ip_reass_helper.
2008-10-15 18:20:23 +00:00
jifl
06df1647e1
* etharp.c (etharp_arp_input): Fix type aliasing problem copying ip address.
2008-10-03 14:47:33 +00:00
jifl
1d2804d6a2
* sockets.c (lwip_accept): Return EWOULDBLOCK if would block on non-blocking
...
socket.
2008-10-02 13:59:18 +00:00
jifl
ba98bcdc60
* dns.c: Hard-code structure sizes, to avoid issues on some compilers where
...
padding is included.
2008-10-02 13:53:16 +00:00
jifl
0d7dccba5e
* sockets.c (lwip_accept): check addr isn't NULL. If it's valid, do an
...
assertion check that addrlen isn't NULL.
2008-09-30 14:51:27 +00:00
jifl
c231e95cce
* tcp.c: Fix bug #24227 , wrong error message in tcp_bind.
2008-09-30 13:50:39 +00:00
jifl
6f6c8c5434
* pbuf.c (pbuf_copy_partial): Improve function description comment. Thanks to Luca Ceresoli
2008-09-30 13:40:41 +00:00
goldsimon
edf72a7dfb
fixed one small warning (compared u16_t to <= 0)
2008-08-26 19:57:20 +00:00
goldsimon
ba636e19a2
fixed bug #24132 : Cross-dependency between ip_addr.h and inet.h -> moved declaration of struct in_addr from ip_addr.h to inet.h
2008-08-26 19:47:05 +00:00
goldsimon
6374766a55
Added 2 asserts in pbuf_realloc to prevent dereferencing a null pointer in invalid pbuf queues
2008-08-26 19:34:18 +00:00
goldsimon
c779a9f29f
Fixed some warnings, changed some debug defines to include better names
2008-07-16 20:36:12 +00:00
goldsimon
ae2d5266c5
removed invalid call to tcp_connect() in do_close_internal()
2008-07-15 11:18:58 +00:00
goldsimon
99db244124
fixed bug #23847 : do_close_internal references freed memory
2008-07-14 20:12:36 +00:00
fbernon
8367feafa9
stats.h: Fix some build bugs introduced with patch #6483 (missing some parameters in macros, mainly if MEM_STATS=0 and MEMP_STATS=0).
2008-07-08 09:15:56 +00:00
jifl
f6a28808e3
Fix typo of including type in stats_display_memp empty macro
2008-07-07 12:45:47 +00:00
goldsimon
13d8ae859d
fixed bug #21433 : Calling mem_free/pbuf_free from interrupt context isn't safe: LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT allows mem_free to run between mem_malloc iterations. Added illegal counter for mem stats.
2008-06-30 18:16:51 +00:00
goldsimon
95b15fe463
Fix typo, add comment
2008-06-27 20:34:51 +00:00
goldsimon
779938ea68
patch #6483 : stats module improvement: Added defines to display each module's statistic individually, added stats defines for MEM, MEMP and SYS modules, removed (unused) rexmit counter.
2008-06-27 18:37:53 +00:00
jifl
139944a3ac
* tcp_in.c: Fix for bug #23693 as suggested by Art R. Ensure cseg is unused
...
if tcp_seg_copy fails.
2008-06-24 15:46:38 +00:00
goldsimon
b94e3a874d
Added debug trace for incoming eth packets in ethernet_input like suggested in patch #6519
2008-06-19 16:40:59 +00:00
goldsimon
3d8e5003af
Fixed includes in netif.c, removed loop_cnt_max member in struct netif (instead the define LWIP_LOOPBACK_MAX_PBUFS is used directly)
2008-06-19 16:27:18 +00:00
goldsimon
94cd14e90d
patch #6459 : Made err_t overridable to use a more efficient type (define LWIP_ERR_T in cc.h)
2008-06-17 20:27:31 +00:00
goldsimon
c93cfb2c74
Changed two MEMCPY calls to SMEMCPY
2008-06-17 20:16:23 +00:00
goldsimon
521d439a07
Added a configuration option for slipif for symmetry to loopif (patch #6480 )
2008-06-17 20:14:05 +00:00
goldsimon
460b18e82c
Fixed loopif_poll define (now maps directly to netif_poll)
2008-06-17 20:12:22 +00:00
goldsimon
ef3666ef26
Checked in some ideas of patch #6460 (loop optimizations) and created defines for swapping bytes and folding u32 to u16.
2008-06-17 20:06:25 +00:00
goldsimon
e0aaa87b1f
Increasing etharp error stats on unsupported ethtype in ethernet_input()
2008-06-17 19:46:30 +00:00
goldsimon
eba83ab740
Changed loopback code (less difference between NO_SYS = 0 / 1), added setting LWIP_LOOPBACK_MAX_PBUFS to limit loopback-queued pbufs
2008-06-17 19:39:22 +00:00
goldsimon
a8141c53a8
Got the date & place of the newest feature wrong ;-)
2008-06-12 20:21:40 +00:00
goldsimon
88ff8c83e9
Checked in slightly modified version of patch # 6370: Moved loopif code to netif.c so that loopback traffic is supported on all netifs (all local IPs).
2008-06-12 20:10:08 +00:00
kieranm
24e0b25215
Remove redundant "if" statement, and use real rcv_wnd
...
rather than rcv_ann_wnd when deciding if packets are in-window.
Contributed by <arasmussen@consultant.datasys.swri.edu >
2008-05-30 12:21:29 +00:00
kieranm
7bc881ccc5
Fix BUG#23254. Change macro definition of mem_* to allow
...
passing as function pointers when MEM_LIBC_MALLOC is defined.
2008-05-30 11:37:15 +00:00
jifl
a3bc6cd666
* err.h, err.c, sockets.c: Fix bug #23119 : Reorder timeout error code to
...
stop it being treated as a fatal error.
2008-05-09 12:14:23 +00:00
jifl
40d4a8fc2f
Trivial change: correct sense of comment about LWIP_ERROR macro
2008-04-29 16:51:35 +00:00
fbernon
7be9e292dc
sockets.h: minor changes, add comments for ToS options
2008-04-26 10:46:23 +00:00
goldsimon
9ccd31a12e
fixed bug #22804 : dhcp_stop doesn't clear NETIF_FLAG_DHCP (flag now cleared)
2008-04-15 17:24:54 +00:00
goldsimon
a9aefcc1be
Fixed comments for pbuf_copy() and find_entry() as proposed by Luca Ceresoli on lwip-users
2008-04-01 19:05:40 +00:00
goldsimon
05587f5da9
Changed the pbuf_free/mem_free callback functions a little: created extra functions for that
2008-03-28 07:56:47 +00:00
goldsimon
43dd38df0a
fixed bug #21433 (Calling mem_free/pbuf_free from interrupt context isn't safe): set LWIP_USE_HEAP_FROM_INTERRUPT to 1 in lwipopts.h or use tcpip_callback_nonblocking(pbuf_free_int, p)/ tcpip_callback_nonblocking(mem_free, m) to free pbufs or heap memory from interrupt context
2008-03-27 19:29:35 +00:00
goldsimon
64fa8d78bc
Added global #ifndef __SIO_H__ and some comments
2008-03-27 18:06:02 +00:00
goldsimon
aee9c4c8e6
fixed bug #22249 : division by zero could occur if a remote host sent a zero mss as TCP option.
2008-03-26 11:57:12 +00:00
kieranm
bcb4afa886
Update CHANGELOG for 1.3.0
2008-03-23 13:49:39 +00:00
fbernon
7774b57a1c
api_msg.c: fix wrong mailbox invalidate (NULL was used instead of SYS_MBOX_NULL). Spoted by Silas Boyd-Wickizer.
2008-03-21 16:23:14 +00:00
goldsimon
90cb4b4e09
Corrected comment in do_writemore()
2008-03-19 20:59:59 +00:00
fbernon
7fa9010f35
igmp.h, igmp.c: Fix bug #22613 "IGMP iphdr problem" (could have some problems to fill the IP header on some targets, use now the ip.h macros to do it).
2008-03-17 13:40:00 +00:00
fbernon
03f888c968
ppp: minor changes: fix some 'is unused' warning when debug is off.
2008-03-16 08:53:58 +00:00
fbernon
e07d71f5e8
sockets.c: Fix bug #22435 "lwip_recvfrom with TCP break;". Using (lwip_)recvfrom with valid "from" and "fromlen" parameters, on a TCP connection caused a crash. Note that using (lwip_)recvfrom like this is a bit slow and that using (lwip)getpeername is the good lwip way to do it (so, using recv is faster on tcp sockets).
2008-03-13 20:03:57 +00:00
fbernon
afcf49ad3a
api_msg.c: minor change, fix warning.
2008-03-13 19:57:11 +00:00
fbernon
a2f1892480
api_msg.c: fix the netbuf::addr field to point on the ip_src on the pbuf's copy (about bug#22530).
2008-03-12 12:58:07 +00:00
fbernon
552106e2a4
api_msg.c: Fix bug #22530 "api_msg.c's recv_raw() does not consume data".
2008-03-12 10:55:54 +00:00
jifl
a48370d5e9
* inet_chksum.c: Allow choice of one of the sample algorithms to be
...
made from lwipopts.h. Fix comment on how to override LWIP_CHKSUM.
2008-03-10 16:12:31 +00:00
jifl
f067d34392
* pbuf.c, ppp.c: Fix warnings on some systems with mem_malloc.
2008-03-04 16:37:46 +00:00
jifl
30d4c243ec
* mem.c, stats.c, mem.h: apply patch #6414 to avoid compiler errors
...
and/or warnings on some systems where mem_size_t and size_t differ.
2008-03-04 16:31:31 +00:00
fbernon
2637f2ad3a
inet_chksum.c: minor change for coding style
2008-03-04 14:26:44 +00:00
fbernon
9b92f4c882
dhcp.c: minor change for coding style
2008-03-04 14:25:58 +00:00
kieranm
42344ce20c
2008-03-04 Kieran Mansley (contributions by others)
...
* Numerous small compiler error/warning fixes from contributions to
mailing list after 1.3.0 release candidate made.
2008-03-04 13:41:23 +00:00
fbernon
faca23b984
Minor change: add a trace in etharp.c, find_entry
2008-02-21 14:26:14 +00:00
fbernon
0cbd7501a1
Minor changes: fix trace text in etharp.c
2008-02-21 09:16:21 +00:00
jifl
03aa8270a6
document that eth drivers input function should be ethernet_input
2008-02-18 12:27:51 +00:00
marcbou
ef70313e05
Fixed comment for LWIP_POSIX_SOCKETS_IO_NAMES
2008-01-31 18:19:29 +00:00
jifl
2ec3c46838
Fix incorrect units in comment for TCP_MSL. Allow override.
2008-01-28 15:30:06 +00:00
goldsimon
52e8ec03ba
Clarify that timeout == 0 means wait forever
2008-01-27 11:28:44 +00:00
goldsimon
c54777d957
Coding style: use named constants instead of numbers only
2008-01-27 11:22:14 +00:00
fbernon
7b11fb75d9
Minor changes: replace directy call to memcpy by MEMCPY macro.
2008-01-26 16:11:39 +00:00
fbernon
e937521014
dns.c: Fix bug #22108 "DNS problem" caused by unaligned structures.
2008-01-25 13:12:12 +00:00
fbernon
f02c39a402
tcp.c, tcp_in.c, tcp.h, opt.h: Rename LWIP_CALCULATE_EFF_SEND_MSS in TCP_CALCULATE_EFF_SEND_MSS to have coherent TCP options names.
2008-01-22 21:15:14 +00:00
fbernon
c580c2be75
Minor changes: fix a warning: "src\core\ipv4\ip_frag.c (782) : warning: potential uninitialized reference to "newpbuflen" in func "_ip_frag""
2008-01-22 18:56:40 +00:00
fbernon
8d0f689cb5
Minor changes: typo in doc files.
2008-01-21 17:00:07 +00:00
fbernon
bfd96264e6
Minor changes: fix warning in dhcp_unfold_reply when LWIP_DEBUG=0
2008-01-21 16:55:26 +00:00
fbernon
baab7c04f7
Minor changes: fix some traces in ip_frag.c (coding style and end of lines)
2008-01-21 16:53:10 +00:00
jifl
3572ec784d
Fix simple compilation error with some compilers to preserve const-ness of ethaddr - from Luca Ceresoli
2008-01-18 19:45:15 +00:00
kieranm
6f00cbb6ef
2008-01-15 Kieran Mansley
...
* tcp_out.c: BUG20511. Modify persist timer to start when we are
prevented from sending by a small send window, not just a zero
send window.
2008-01-15 13:00:51 +00:00
fbernon
7518acf634
rawapi.txt, api_msg.c, tcp.c, tcp_in.c, tcp.h: changes for task #7675 "Enable to refuse data on a TCP_EVENT_RECV call". Important, behavior changes for the tcp_recv callback (see rawapi.txt).
2008-01-14 21:07:08 +00:00
fbernon
52e6922e5a
ip.c: Integrate patch #6369 " ip_input : checking before realloc".
2008-01-14 20:53:23 +00:00
fbernon
82ddf82866
Minor change: add comment
2008-01-12 16:46:40 +00:00
fbernon
55bcc20deb
tcpip.h, tcpip.c, api.h, api_lib.c, api_msg.c, sockets.c: replace the field netconn::sem per netconn::op_completed like suggested for the task #7490 "Add return value to sys_mbox_post".
2008-01-12 11:52:21 +00:00
fbernon
9906e4c984
api_msg.c, opt.h: replace DEFAULT_RECVMBOX_SIZE per DEFAULT_TCP_RECVMBOX_SIZE, DEFAULT_UDP_RECVMBOX_SIZE and DEFAULT_RAW_RECVMBOX_SIZE (to optimize queues sizes), like suggested for the task #7490 "Add return value to sys_mbox_post".
2008-01-11 23:50:10 +00:00
jifl
886cfbe12d
Minor spelling typos and formatting fixes.
2008-01-11 14:28:58 +00:00
fbernon
4e40fee1db
tcpip.h, tcpip.c: add tcpip_callback_with_block function for the task #7490 "Add return value to sys_mbox_post". tcpip_callback is always defined as "blocking" ("block" parameter = 1).
2008-01-10 21:47:52 +00:00
fbernon
bceff76c70
tcpip.h, tcpip.c, api.h, api_lib.c, api_msg.c, sockets.c: replace the field netconn::mbox (sys_mbox_t) per netconn::sem (sys_sem_t) for the task #7490 "Add return value to sys_mbox_post".
2008-01-10 21:34:25 +00:00
jifl
b333b7c9dc
* opt.h, ip.c: Rename IP_OPTIONS define to IP_OPTIONS_ALLOWED to avoid
...
conflict with Linux system headers.
2008-01-09 10:05:23 +00:00
fbernon
de4b9b584c
Fix DHCP build problem.
2008-01-06 22:07:03 +00:00
jifl
bf924118de
* dhcp.c: fix bug #19927 : "DHCP NACK problem" by clearing any existing set IP
...
address entirely on receiving a DHCPNAK, and restarting discovery.
2008-01-06 21:09:11 +00:00
goldsimon
a41f113b8f
Added function netconn_free(), which deallocates all mboxes and frees the netconn (to be used from different places) - the PCB is not freed!
2008-01-06 14:28:04 +00:00
fbernon
5941b3c86e
sys_arch.txt, api.h, api_lib.c, api_msg.h, api_msg.c, tcpip.c, sys.h, opt.h: Introduce changes for task #7490 "Add return value to sys_mbox_post" with some modifications in the sys_mbox api: sys_mbox_new take a "size" parameters which indicate the number of pointers query by the mailbox. There is three defines in opt.h to indicate sizes for tcpip::mbox, netconn::recvmbox, and for the netconn::acceptmbox. Port maintainers, you can decide to just add this new parameter in your implementation, but to ignore it to keep the previous behavior. The new sys_mbox_trypost function return a value to know if the mailbox is full or if the message is posted. Take a look to sys_arch.txt for more details. This new function is used in tcpip_input (so, can be called in an interrupt context since the function is not blocking), and in recv_udp and recv_raw.
2008-01-05 21:10:32 +00:00
fbernon
caa1834b70
Minor changes in lwip folder: fix some warnings.
2008-01-05 00:13:33 +00:00
fbernon
c61262d839
Minor changes in lwip folder: fix some warnings.
2008-01-04 23:24:05 +00:00
fbernon
9c4daa312d
Minor changes in lwip folder: fix some warnings, coding style, and rename "internal" netconn_alloc function.
2008-01-04 23:07:44 +00:00
fbernon
32005617b9
rawapi.txt, api.h, api_lib.c, api_msg.h, api_msg.c, sockets.c, tcp.h, tcp.c, tcp_in.c, init.c, opt.h: rename backlog options with TCP_ prefix, limit the "backlog" parameter in an u8_t, 0 is interpreted as "smallest queue", add documentation in the rawapi.txt file.
2008-01-04 22:18:27 +00:00
fbernon
1dfa246674
Minor changes: fix some PPP traces.
2008-01-03 20:22:14 +00:00
jifl
7e616ea71c
* core/ipv4/ip.c (ip_input): Rename ipsrcchecking -> check_ip_src, to make
...
purpose clearer.
2008-01-03 17:49:25 +00:00
kieranm
99afb15ced
Add persist timer
2007-12-31 13:34:47 +00:00
fbernon
22e2540eb6
autoip.c, etharp.c: ip_addr.h: Integrate patch #6348 : "Broadcast ARP packets in autoip". The change in etharp_raw could be removed, since all calls to etharp_raw use ethbroadcast for the "ethdst_addr" parameter. But it could be wrong in the future.
2007-12-31 13:22:03 +00:00
fbernon
8d39b1a152
ip.c: Fix bug #21846 "LwIP doesn't appear to perform any IP Source Address Filtering" reported by Tom Evans.
2007-12-30 01:09:11 +00:00
goldsimon
1ed34774c8
tcp.h, opt.h, api.h, api_msg.h, tcp.c, tcp_in.c, api_lib.c, api_msg.c, sockets.c, init.c: task #7252 : Implement TCP listen backlog: Warning: raw API applications have to call 'tcp_accepted(pcb)' in their accept callback to keep accepting new connections.
2007-12-21 16:47:56 +00:00
goldsimon
48e62e25e9
sys.h, api_lib.c, api_msg.c, sockets.c: fix bug #21698 : "netconn->recv_avail is not protected" by using new macros for interlocked access to modify/test netconn->recv_avail.
2007-12-21 14:59:10 +00:00
kieranm
1cb470662b
Whitespace fix.
2007-12-20 15:05:09 +00:00
kieranm
add4874801
2007-12-20 Kieran Mansley (based on patch from Oleg Tyshev)
...
* tcp_in.c: fix bug# 21535 (nrtx not reset correctly in SYN_SENT stat)e
2007-12-20 14:58:43 +00:00
kieranm
8cc32bc29c
2007-12-20 Kieran Mansley (based on patch from Per-Henrik Lundbolm)
...
* tcp.c, tcp_in.c, tcp_out.c, tcp.h: fix bug #20199 (better handling
of silly window avoidance and prevent lwIP from shrinking the window)
2007-12-20 14:51:35 +00:00
fbernon
fc2d28b851
Minor changes in PPP (coding style, tabs, idents...)
2007-12-19 20:47:22 +00:00
goldsimon
a3ef33c56f
Removed debug code
2007-12-16 16:24:10 +00:00
goldsimon
ba4254231e
Corrected assert when netconn_new_* fails
2007-12-16 16:15:08 +00:00
fbernon
2b54da5070
api_msg.c, err.h, err.c, sockets.c, dns.c, dns.h: replace "enum dns_result" by err_t type. Add a new err_t code "ERR_INPROGRESS".
2007-12-13 23:06:49 +00:00
goldsimon
d2fa5c91a7
Fix bug #21699 : segment leak in ooseq processing when last data packet was lost (free last segment if FIN is already received)
2007-12-13 20:24:39 +00:00
fbernon
4653974c2a
Minor change: move DNS_MSG_SIZE in opt.h, add comments.
2007-12-12 19:22:20 +00:00
fbernon
de11e7fd75
dns.h, dns.c, opt.h: move DNS options to the "right" place. Most visibles are the ones which have ram usage.
2007-12-12 17:56:03 +00:00
fbernon
1dd1064051
Fix err_stderr[] table with new err.h defines.
2007-12-12 08:25:23 +00:00
fbernon
ac10470643
netdb.c: add a LWIP_DNS_API_HOSTENT_STORAGE option to decide to use a static set of variables (=0) or a local one (=1). In this last case, your port should provide a function "struct hostent* sys_thread_hostent( struct hostent* h)" which have to do a copy of "h" and return a pointer ont the "per-thread" copy.
2007-12-05 23:00:02 +00:00
goldsimon
8d3d08e814
fix bug #21699 (segment leak in ooseq): add assert that all segment lists are empty in tcp_pcb_remove before setting pcb to CLOSED state; don't directly set CLOSED state from LAST_ACK in tcp_process
2007-12-04 20:41:12 +00:00
fbernon
3f96a15fd4
Minor changes (tabs)
2007-12-03 21:44:51 +00:00
goldsimon
22f51f953b
Added short comment in file description about how to handle MEM_USE_POOLS / MEM_LIBC_MALLOC
2007-12-03 18:01:28 +00:00
goldsimon
f3f7bd00e5
ip_input: check if a packet is for inp first before checking all other netifs on netif_list (speeds up packet receiving in most cases)
2007-12-03 17:55:01 +00:00
fbernon
a72e4a406f
Minor changes: coding style (tabs, ident, etc...).
2007-12-02 23:58:11 +00:00
fbernon
2fe1254aae
Minor changes: coding style (tabs, ident, etc...).
2007-12-02 23:38:45 +00:00
fbernon
e4590b26fb
Include a temporary sample of queue.h to fix build.
2007-12-02 23:33:58 +00:00
fbernon
325d6e7cfa
Minor changes: coding style (tabs, ident, etc...).
2007-12-02 23:24:59 +00:00
fbernon
6bce832060
Minor changes: coding style (tabs, ident, etc...).
2007-12-02 22:56:19 +00:00
fbernon
37a5a87057
Minor changes: coding style (tabs, ident, etc...).
2007-12-02 22:35:55 +00:00
fbernon
865f6eb5f3
Changes for coding style (typo, use LINK_STATS_INC, tabs, ident, etc...). Be careful, even if this change is minor, there is lot of lines modified, so, an error is always possible (I hope there is no problems).
2007-12-02 20:38:02 +00:00
fbernon
dde6ddfd7c
process "localhost" name in dns_gethostbyname
2007-12-02 17:15:28 +00:00
goldsimon
47d8d69b81
fix bug #21654 : exclude definition of struct timeval from #ifndef FD_SET. If including <sys/time.h> for system-struct timeval, LWIP_TIMEVAL_PRIVATE now has to be set to 0 in lwipopts.h
2007-12-02 15:24:02 +00:00
goldsimon
df1b7ea311
Minor fix: #include "lwip/api.h" was missing to compile cleanly
2007-12-02 15:18:08 +00:00
goldsimon
113a52d091
fix bug #21656 (recvmbox problem in netconn API): always allocate a recvmbox in netconn_new_with_proto_and_callback. For a tcp-listen netconn, this recvmbox is later freed and a new mbox is allocated for acceptmbox. This is a fix for thread-safety and allocates all items needed for a netconn when the netconn is created.
2007-12-02 14:53:50 +00:00
goldsimon
081e4d9209
Minor change: use goto instead of redundant code to return on error in dhcp_rev().
2007-12-02 14:40:32 +00:00
fbernon
e5a98b6a5b
Minor changes: fix some problems with PPPoE include path, add small comments in slip.c (unusual octal values?)
2007-11-30 17:22:20 +00:00
fbernon
2942157ca4
Minor changes: dnsserver initialization with DNS_SERVER_ADDRESS in dns_init
2007-11-30 16:40:46 +00:00
goldsimon
6746beb2a3
Compacted code: moved the code creating a netconn (without pcb) from netconn_new_with_proto_and_callback to new (synchroneous) function netconn_alloc_with_proto_and_callback and call this function from netconn_new_with_proto_and_callback and accept_function.
2007-11-30 12:54:10 +00:00
goldsimon
92aa004b75
connect the UDP pcb to the DNS server (IPaddress and port) to receive faster (unconnected pcbs are very inefficient in udp_input)
2007-11-30 12:46:30 +00:00
goldsimon
b28cd02149
task #7497 : Sort lists (pcb, netif, ...) for faster access UDP: move a (connected) pcb selected for input to the front of the list of pcbs so that it is found faster next time. Same for RAW pcbs that have eaten a packet.
2007-11-30 09:44:18 +00:00
goldsimon
cedd5c21e6
first attempt to fix bug #21655 (DHCP doesn't work reliably with multiple netifs): if LWIP_DHCP is enabled, UDP packets to DHCP_CLIENT_PORT are passed to netif->dhcp->pcb only (if that exists) and not to any other pcb for the same port (only solution to let UDP pcbs 'bind' to a netif instead of an IP address)
2007-11-30 08:55:15 +00:00
fbernon
b714cd5f4b
First fix for bug #21664 "PPP code is broken".
2007-11-29 22:19:56 +00:00
goldsimon
788892ee7c
Minor coding style changes
2007-11-28 21:44:17 +00:00
goldsimon
1b07fecbf3
Introduced ETHARP_STATS
2007-11-28 21:25:06 +00:00
goldsimon
4a01122fb7
Use ICMP_STATS_INC instead of #if ICMP_STATS...
2007-11-28 21:21:06 +00:00
goldsimon
4211da00b3
Use IP_STATS_INC instead of #if IP_STATS...
2007-11-28 21:18:37 +00:00
goldsimon
7f3cff6e09
Use LINK_STATS_INC instead of #if LINK_STATS...
2007-11-28 21:15:55 +00:00
goldsimon
6e612e5def
mem_malloc with MEM_USE_POOLS=1: if size > size of biggest pool and custom pools (in addition to the MEM_POOLs) were defined, the first custom pool was used instead of asserting
2007-11-28 18:24:08 +00:00
jgrubb
a7718b2ef3
Minor change: remove unused #define
2007-11-28 17:19:39 +00:00
jgrubb
472407c719
Fix typo (MEMP_POOL_START/END to FIRST/LAST)
2007-11-28 17:19:15 +00:00
goldsimon
f07c1cf874
fixed bug #21643 (udp_send/raw_send don't fail if netif is down) by letting ip_route only use netifs that are up.
2007-11-28 06:48:50 +00:00
jgrubb
ce7c311ecf
Add two more sanity checks on memory settings
2007-11-28 00:11:05 +00:00
fbernon
499c63bd0a
Fix macro ERR_IS_FATAL (else, no error is fatal).
2007-11-27 21:54:58 +00:00
goldsimon
03777ccb21
Changed error handling: ERR_MEM, ERR_BUF and ERR_RTE are seen as non-fatal, all other errors are fatal. netconns and sockets block most operations once they have seen a fatal error.
2007-11-27 21:15:44 +00:00
goldsimon
b4741332e0
Implemented new function udp_sendto_if which takes the netif to send as an argument (to be able to send on netifs that are down).
2007-11-27 20:13:16 +00:00
goldsimon
3874f5f5e8
Minor coding style changes
2007-11-27 19:55:31 +00:00
fbernon
8c19f9a57e
Fix to be able to build SNMP with LWIP_ARP=0. It's not a perfect solution, but I put some @todo points to review them later.
2007-11-27 19:53:47 +00:00
goldsimon
f57c2424cf
Fixed bug #21582 : pcb->acked accounting can be wrong when ACKs arrive out-of-order
2007-11-26 19:08:39 +00:00
fbernon
181b68b01e
Minor change (forgot last CRLF)
2007-11-26 10:24:36 +00:00
fbernon
93d5bed697
Minor change: add #if 0 / #endif in ethernetif.c skeleton to avoid false bug reports.
2007-11-26 10:23:40 +00:00
goldsimon
5743b11925
Check state == CLOSED in tcp_bind and tcp_connect to prevent binding/connecting twice (using LWIP_ERROR: can be disabled)
2007-11-25 18:37:34 +00:00
goldsimon
4dcfdac2f5
initialize netconn->socket to -1 instead of 0 since 0 is a valid socket!
2007-11-25 16:13:56 +00:00
goldsimon
9343b767f8
lock event_callback against lwip_accept for data that arrives right away after an accept (before lwip_accept has processed the new conn)
2007-11-25 16:04:38 +00:00
fbernon
77d9233427
Minor change (redundant code)
2007-11-25 15:32:29 +00:00
goldsimon
f63a3c1f62
Added an explaining comment for the line 'nsock->rcvevent += -1 - newconn->socket;' in lwip_accept
2007-11-25 14:33:23 +00:00
goldsimon
511cdfb951
Minor coding style changes, added some comments
2007-11-25 14:23:59 +00:00
goldsimon
e1f49d990b
Fix some warnings discovered by compiling the unixsim under cygwin (gcc pedantic)
2007-11-25 13:57:05 +00:00
goldsimon
1b208d0954
dhcp_unfold_reply() uses pbuf_copy_partial instead of its own copy algorithm; corrected some assert messages
2007-11-25 11:51:44 +00:00
goldsimon
4ac4d56b53
Added documentation / minor code layout changes
2007-11-25 10:43:28 +00:00
goldsimon
c7a0f32c98
Back to old alloc_socket(), lwip_accept had a bug in last revision
2007-11-25 10:04:04 +00:00
goldsimon
be0686d905
Added some more comments and function documentation
2007-11-25 10:01:22 +00:00
fbernon
9940b049ec
Minor changes (documentation).
2007-11-25 00:28:06 +00:00
fbernon
3d9c76a69c
Minor change (doxygen tags)
2007-11-24 22:13:25 +00:00
goldsimon
7797ada1f5
Added documentation
2007-11-24 21:19:47 +00:00
goldsimon
3fc883e8fb
Added the wiki and a note about the mailing lists
2007-11-24 19:49:05 +00:00
goldsimon
8cfd923aaa
Added some documentation (mainly what is unimplemented in contrast to 'std-BSD'), alloc_socket returns the sock pointer directly (for speedup)
2007-11-24 17:39:53 +00:00
goldsimon
c86b446d4c
Moved lwip_gethostbyname from sockets.c to the new file netdb.c; included lwip_getaddrinfo.
2007-11-24 16:12:02 +00:00
goldsimon
32a09370e1
tcpip.h was not compilable with both NO_SYS and LWIP_NETCONN set to 0 (include sys.h was missing)
2007-11-24 14:50:26 +00:00
fbernon
32c6893081
Minor changes (typo and wrong defines names in sanity checks)
2007-11-22 10:17:16 +00:00
goldsimon
95425552d7
Implemented calculating the effective send-mss based on the MTU of the netif used to send. Enabled by default. Disable by setting LWIP_CALCULATE_EFF_SEND_MSS to 0. This fixes bug #21535 .
2007-11-21 18:37:23 +00:00
goldsimon
dc515c7ad3
Fixed bug #20287 : tcp_output_nagle sends too early. This fixes the nagle algorithm; nagle now also works for all raw API applications and has to be explicitly disabled with 'tcp_pcb->flags |= TF_NODELAY'
2007-11-21 17:59:03 +00:00
fbernon
c31b405af6
Minor changes in DNS client.
2007-11-20 21:37:04 +00:00
goldsimon
e7483f2e64
Added return value comments to netconn_gethostbyname
2007-11-20 21:23:24 +00:00
goldsimon
9a524dac86
Adopted lwip_gethostbyname and lwip_gethostbyname_r to the new return values of dns_gethostbyname/netconn_gethostbyname
2007-11-20 21:22:45 +00:00
goldsimon
b3c52f574a
Added function documentation to dns.c, removed function documentation from dns.h (functions should be documented where they are implemented!), dns_table_entry doesn't have to be packed (slower, bigger code for most machines), converted dns_init to return void, dns_table is implicitly initialized to zero, dns_lookup can be static, dns_send returns correct error values, added some asserts, compacted dns_recv using some (ugly) gotos, compacted dns_gethostbyname by combining the same return value
2007-11-20 20:28:01 +00:00
fbernon
f58515b51e
api_msg.c, dns.h, dns.c: Implement DNS_DOES_NAME_CHECK option (check if name received match the name query), implement DNS_USES_STATIC_BUF (the place where copy dns payload to parse the response), return an error if there is no place for a new query, and fix some minor problems.
2007-11-19 22:42:01 +00:00
fbernon
da4df1f414
Fix DNS client TTL processing.
2007-11-18 21:30:45 +00:00
fbernon
7f0640b040
Minor changes on DNS.
2007-11-18 21:04:53 +00:00
fbernon
8c0e6de00a
fix DNS problem with pbuf chain.
2007-11-18 20:54:44 +00:00
fbernon
8ff1194b6a
Changes on DNS client. Add multiples dns servers support.
2007-11-18 20:30:12 +00:00
goldsimon
9dd4ad6c1f
Added thread-safe function gethostbyname_r (as in glibc)
2007-11-18 16:36:34 +00:00
fbernon
4e398e2aa9
Minor changes on DNS client. Coding style & add "response" checking
2007-11-18 15:51:34 +00:00
fbernon
92401faa72
Minor changes on DNS client. Note that "compressed answers are fixed".
2007-11-18 15:01:45 +00:00
fbernon
edc46281a4
Minor changes on DNS client.
2007-11-18 14:19:27 +00:00
goldsimon
6c8b3e3b58
Deleted old inet.c/inet6.c files
2007-11-16 19:32:19 +00:00
goldsimon
1faf0ab9e3
Moved inet files into ipv4/ipv6 directory; splitted inet.c/inet.h into inet and chksum part; changed includes in all lwIP files as appropriate
2007-11-16 19:31:10 +00:00
goldsimon
e6ec23d7cc
Added sequential (socket API) function gethostbyname and the struct hostent it uses
2007-11-16 17:29:30 +00:00
goldsimon
e2cd201f6a
Added sequential dns resolver function for netconn api (netconn_gethostbyname)
2007-11-16 17:16:17 +00:00
goldsimon
7e447c83fb
Turned all hostname variables and parameters into (const char*)
2007-11-16 17:08:03 +00:00
fbernon
0c0e8d6544
opt.h, init.c, tcpip.c, dhcp.c, dns.h, dns.c: add DNS client for simple name requests with RAW api interface. Initialization is done in lwip_init() with build time options. DNS timer is added in tcpip_thread context. DHCP can set DNS server ip addresses when options are received. You need to set LWIP_DNS=1 in your lwipopts.h file (LWIP_DNS=0 in opt.h). DNS_DEBUG can be set to get some traces with LWIP_DEBUGF. Sanity check have been added. There is a "todo" list with points to improve.
2007-11-14 23:27:13 +00:00
fbernon
a4d14722f3
sockets.c, api.h, api_lib.c, api_msg.h, api_msg.c: Fixed bug #20900 . Now, most of the netconn_peer and netconn_addr processing is done inside tcpip_thread context in do_getaddr.
2007-11-12 22:39:24 +00:00
goldsimon
8020ba2dc5
tcp_send_ctrl(): call tcp_enqueue with the new flag TCP_WRITE_FLAG_COPY instead of 1
2007-11-12 19:38:25 +00:00
goldsimon
21bbc9a81a
Fixed bug: assert fired when MEMP_ARP_QUEUE was empty (which can happen any time). Now the packet simply isn't enqueued when out of memory.
2007-11-10 17:41:46 +00:00
goldsimon
bfe24b138d
Patch #6215 : added ifAdminStatus write support (if explicitly enabled by defining SNMP_SAFE_REQUESTS to 0); added code to check link status for ifOperStatus if LWIP_NETIF_LINK_CALLBACK is defined.
2007-11-06 20:53:37 +00:00
goldsimon
f3dbd986cb
Task #7410 : Removed the need to include core header files in api.h (ip/tcp/udp/raw.h) to hide the internal implementation from netconn api applications.
2007-11-06 20:31:28 +00:00
fbernon
ecce865cfe
api.h, api_lib.c, api_msg.c, sockets.c, opt.h: add SO_RCVBUF option for UDP & RAW netconn. You need to set LWIP_SO_RCVBUF=1 in your lwipopts.h (it's disabled by default). Netconn API users can use the netconn_recv_bufsize macro to access it. This is a first release which have to be improve for TCP. Note it used the netconn::recv_avail which need to be more "thread-safe" (note there is already the problem for FIONREAD with lwip_ioctl/ioctlsocket).
2007-11-02 10:37:08 +00:00
fbernon
4a6f60937a
Minor change, add comment for "apiflags" parameters.
2007-11-01 19:38:01 +00:00
fbernon
cbe9b050a9
sockets.h, sockets.c, api.h, api_lib.c, api_msg.h, api_msg.c, tcp.h, tcp_out.c: Integrate "patch #6250 : MSG_MORE flag for send". MSG_MORE is used at socket api layer, NETCONN_MORE at netconn api layer, and TCP_WRITE_FLAG_MORE at raw api layer. This option enable to delayed TCP PUSH flag on multiple "write" calls. Note that previous "copy" parameter for "write" APIs is now called "apiflags".
2007-11-01 17:37:50 +00:00
goldsimon
2d5908f4de
Fixed bug #21494 : The send mss (pcb->mss) is set to 536 (or TCP_MSS if that is smaller) as long as no MSS option is received from the remote host.
2007-11-01 16:53:43 +00:00
goldsimon
298d5cf042
Fixed bug #21491 : The MSS option sent (with SYN) is now based on TCP_MSS instead of pcb->mss (on passive open now effectively sending our configured TCP_MSS instead of the one received).
2007-11-01 16:23:32 +00:00
goldsimon
853765954e
Fixed bug #21181 : On active open, the initial congestion window was calculated based on the configured TCP_MSS, not on the MSS option received with SYN+ACK.
2007-11-01 15:51:43 +00:00
goldsimon
7a99d73092
Added some explaining comments.
2007-10-28 17:43:21 +00:00
fbernon
7077d51f1f
api.h, api_lib.c, api_msg.c: Add macro API_EVENT in the same spirit than TCP_EVENT_xxx macros to get a code more readable. It could also help to remove some code (like we have talk in "patch #5919 : Create compile switch to remove select code"), but it could be done later.
2007-10-24 12:09:18 +00:00
goldsimon
270c7c1110
Removed check for conn->err for functions whose counterparts in api_msg.c also do the check (1. remove redundant code, 2. check is better done in tcpip thread context)
2007-10-22 20:01:16 +00:00
goldsimon
2d3a64815f
Minor coding style fixes, added comment
2007-10-22 19:59:52 +00:00
fbernon
86dc53b72a
Minor change (coding style, #if/#endif to include icmp.h is not necessary)
2007-10-16 07:11:35 +00:00
fbernon
649d43c2c5
Minor change (define DHCP_COARSE_TIMER_MSECS - using DHCP_COARSE_TIMER_SECS - to use milliseconds like all others timers)
2007-10-15 21:31:42 +00:00
goldsimon
6d9b44e243
IP_REASSEMBLY: send ICMP time exceeded when discarding datagrams for which the first fragment was received; try to keep the header of the first (octet 0) fragment; combined code to make it smaller; fixed bug in timer: when freeing packets, counter was not updated correctly
2007-10-15 19:33:16 +00:00
goldsimon
e864ba6c91
IP_REASSEMBLY: Changed 'packet' to 'datagram' to match the names used in the RFCs
2007-10-15 19:28:09 +00:00
goldsimon
0686380302
Removed bug on memory failure introduced 3 months ago in rev 1.34 (input pbuf was freed on puf_alloc failure)
2007-10-15 19:18:02 +00:00
fbernon
282e9ead17
Minor change (sanity check for MEMP_NUM_REASSDATA only done if IP_REASSEMBLY=1)
2007-10-12 06:50:16 +00:00
goldsimon
1f08a5e5f5
Added code to free the oldest packets if the IP_REASS_MAX_PBUFS limit is reached or MEMP_REASSDATA is empty.
2007-10-11 19:49:06 +00:00
goldsimon
c41508cc8d
Added check that MEMP_NUM_REASSDATA is bigger than IP_REASS_MAX_PBUFS (because each MEMP_NUM_REASSDATA has one pbuf at least!)
2007-10-11 19:26:04 +00:00
goldsimon
187df4464e
Added description for MEMP_NUM_REASSDATA and changed the default value to 5.
2007-10-11 19:24:59 +00:00
goldsimon
c94d640e2a
Gave the parameters of pbuf_cat() and pbuf_chain() better names to make the use more clear.
2007-10-11 19:24:23 +00:00
fbernon
cf998b7bf8
Minor fix (remove warning)
2007-10-10 08:13:58 +00:00
fbernon
1a104762ea
Update documentation for the SNMP uptime timestamp.
2007-10-10 08:12:19 +00:00
fbernon
2a5209bb5a
Update documentation for the SNMP uptime timestamp.
2007-10-10 08:05:34 +00:00
fbernon
ebd167b658
Add sanity checking on TCP_MAXRTX and TCP_SYNMAXRTX
2007-10-09 20:48:28 +00:00
goldsimon
c13ec867c9
Forgot two explicit initializations...
2007-10-09 20:00:55 +00:00
goldsimon
199648ff37
Changed initialization: many init functions are not needed any more since we now rely on the compiler initializing global and static variables to zero!
2007-10-09 19:59:56 +00:00
goldsimon
536f2e42d2
Fixed UDPLite receive: checksum was calculated wrong if checksum coverage != tot_len
2007-10-09 19:43:29 +00:00
goldsimon
0f9799d7e0
Added todo: free the oldest entry when the MEMP_REASSDATA pool is empty or the IP_REASS_MAX_PBUFS limit is reached
2007-10-09 19:31:54 +00:00
goldsimon
b1a4b00091
Preprocessor statements have to start at the beginning of a line for old compilers!
2007-10-09 19:30:17 +00:00
goldsimon
c1c9983cfe
Removed <warning: potential uninitialized reference to
...
"buf" in function "lwip_recvfrom">
2007-10-09 19:29:54 +00:00
goldsimon
8980c3f74e
Typo in chain_frag_into_packet_and_validate (but obviously worked anyway...)
2007-10-09 06:13:12 +00:00
goldsimon
418f57dd6a
Removed type conversion warning in debug statement.
2007-10-08 19:06:58 +00:00
goldsimon
9ef005454a
lfree was not updated in mem_realloc!
2007-10-08 18:39:44 +00:00
fbernon
afad35a8ac
Minor change (add a default value to tune for MEMP_NUM_REASSDATA in opt.h)
2007-10-08 07:39:24 +00:00
goldsimon
2ca113a218
Fixed UDPLite SENDING: Checksum was always generated too short and also was generated wrong if checksum coverage != tot_len.
2007-10-07 20:19:23 +00:00
fbernon
911ee4d9f9
Minor change (coding style)
2007-10-07 17:41:21 +00:00
fbernon
9804b25acc
Fix CHANGELOG entry
2007-10-07 17:30:50 +00:00
fbernon
87e16a8f47
sockets.c, api.h, api_lib.c: First step to fix "bug #20900 : Potential crash error problem with netconn_peer & netconn_addr". VERY IMPORTANT: this change cause an API breakage for netconn_peer, since a parameter type change. Any compiler should cause an error without any changes in yours netconn_peer calls (so, it can't be a "silent change"). It also reduce a little bit the footprint for socket layer (lwip_getpeername & lwip_getsockname use now a common lwip_getaddrname function since netconn_peer & netconn_addr have the same parameters).
2007-10-07 17:26:54 +00:00
goldsimon
e561c7b49d
Added check for overlapping or duplicate fragments. ip_reass_init() is not needed any more (the check is done in chain_frag_into_packet_and_validate()).
2007-10-07 11:52:32 +00:00
goldsimon
8cd65eaf46
Check for TCP_SND_QUEUELEN overflow.
2007-10-07 11:27:45 +00:00
goldsimon
b7ef6077df
Changed IP_REASSEMBLY to enqueue the received pbufs so that multiple packets can be reassembled simultaneously and no static reassembly buffer is needed.
2007-10-06 15:24:43 +00:00
goldsimon
cb71d6d393
Moved ethernet_input from tcpip.c to etharp.c so all netifs (or ports) can use it.
2007-10-05 14:00:48 +00:00
fbernon
79c00be516
netifapi.h, netifapi.c: add function netifapi_netif_set_default. Change the common function to reduce a little bit the footprint (for all functions using only the "netif" parameter).
2007-10-05 13:34:48 +00:00
fbernon
949efb414a
netifapi.h, netifapi.c: add functions netifapi_netif_set_up, netifapi_netif_set_down, netifapi_autoip_start and netifapi_autoip_stop. Use a common function to reduce a little bit the footprint (for all functions using only the "netif" parameter).
2007-10-03 16:54:27 +00:00
jifl
5dd1256769
Small tweak: clarify use of link speed in comments for NETIF_INIT_SNMP.
2007-10-03 09:10:28 +00:00
fbernon
c52ef1d2b3
Minor changes for debug (indent, and set LWIP_DBG_TYPES_ON to LWIP_DBG_ON to have all traces selected display per default, in the same spirit that LWIP_DBG_MIN_LEVEL is set per default to LWIP_DBG_LEVEL_OFF)
2007-09-22 11:16:07 +00:00
fbernon
c7e91d3302
Minor change, sys_prot_t is undefined is NO_SYS=1
2007-09-21 21:23:39 +00:00
jifl
c1bbcf5ed3
Add further checking that MEMP_NUM_SYS_TIMEOUT is high enough
2007-09-21 14:39:03 +00:00
fbernon
87c5a61d07
Minor changes by Andrew Dennison: add sanity check, improve debug messages for memp, fix some warnings...
2007-09-21 12:36:35 +00:00
goldsimon
0aa3d89134
Fixed bug #21080 (tcp_bind without check pcbs in TIME_WAIT state) by checking tcp_tw_pcbs also
2007-09-20 18:27:50 +00:00
kleshov
4ffafdeb86
Fixed bug #21077 : inaccuracy in calculation of lwip_stat.mem.used
2007-09-19 17:56:39 +00:00
goldsimon
0bf32b957d
Fixed bug #21107 (didn't reset IP TTL in ICMP echo replies)
2007-09-19 06:12:34 +00:00
fbernon
2bdd916b06
udp.h, udp.c, sockets.c: Changes for " #20503 IGMP Improvement". Add IP_MULTICAST_IF option in socket API, and a new field "multicast_ip" in "struct udp_pcb" (for netconn and raw API users), only if LWIP_IGMP=1. Add getsockopt processing for IP_MULTICAST_TTL and IP_MULTICAST_IF.
2007-09-15 15:19:41 +00:00
kleshov
93c487fb75
Fix bug #21077 : inaccuracy in calculation of lwip_stat.mem.used
2007-09-15 11:34:06 +00:00
fbernon
036d1aae50
Fix "bug #21075 : pbuf_realloc() use with PBUF_RAM and MEM_LIBC_MALLOC fails" signaled by Bill Florac
2007-09-15 06:53:16 +00:00
kleshov
f600a868f5
Indentation fix
2007-09-13 17:46:13 +00:00
fbernon
95f2d48ac4
Avoid to lost previous error codes in sockets.c and api_lib.c.
2007-09-13 15:03:42 +00:00
fbernon
8c847a85ae
Add a sanity check for PPP, and a #if !NO_SYS/#endif for slipif_loop
2007-09-12 19:16:44 +00:00
fbernon
c265fa3331
Add missing #if/#endif to fix build problems with:
...
#define NO_SYS 0
#define LWIP_SOCKET 0
#define LWIP_NETCONN 0
2007-09-12 09:19:43 +00:00
fbernon
6aab0332e8
Add missing #if/#endif to fix build problems
2007-09-12 09:02:26 +00:00
fbernon
47ae677652
enable to remove SNMP timer (which consumne several cycles even when it's not necessary). snmp_agent.txt tell to call snmp_inc_sysuptime() each 10ms (but, it's intrusive if you use sys_timeout feature). Now, you can decide to call snmp_add_sysuptime(100) each 1000ms (which is bigger "step", but call to a lower frequency). Or, you can decide to not call snmp_inc_sysuptime() or snmp_add_sysuptime(), and to define the SNMP_GET_SYSUPTIME(sysuptime) macro. This one is undefined by default in mib2.c. SNMP_GET_SYSUPTIME is called inside snmp_get_sysuptime(u32_t *value), and enable to change "sysuptime" value only when it's queried (any direct call to "sysuptime" is changed by a call to snmp_get_sysuptime).
2007-09-10 18:50:44 +00:00
jgrubb
54e1b79ac5
Make pbuf_alloc a bit easier to read (change parameter name from "l" to "layer" and use LWIP_MIN instead of ternary operatory)
2007-09-10 18:25:15 +00:00
jgrubb
6afe1f3597
DHCP_DOES_ARP_CHECK is set to 1 by default -- the compile-time checks fail if DHCP is off... So this patch sets the default to be 1 only if both DHCP and ARP are set.
2007-09-10 18:12:13 +00:00
fbernon
4466260480
Remove CVS keyword
2007-09-10 07:56:16 +00:00
fbernon
1c6e31173d
Add missing include files.
2007-09-09 22:34:55 +00:00
fbernon
939180c1a1
igmp.h, igmp.c, netif.h, netif.c, ip.c: To enable to have interfaces with IGMP, and others without it, there is a new NETIF_FLAG_IGMP flag to set in netif->flags if you want IGMP on an interface. igmp_stop() is now called inside netif_remove(). igmp_report_groups() is now called inside netif_set_link_up() (need to have LWIP_NETIF_LINK_CALLBACK=1) to resend reports once the link is up (avoid to wait the next query message to receive the matching multicast streams).
2007-09-09 20:46:33 +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
75d4c9b446
Add some deprecated options from "task #7142 : Sanity check user-configurable values".
2007-09-07 23:28: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
027a70a415
Last sanity checking centralization for "task #7142 : Sanity check user-configurable values".
2007-09-07 17:59:30 +00:00
fbernon
3dfe5f993b
DON'T WORRY, it's just a test on CVS keywords (I will remove)
2007-09-07 12:32:40 +00:00
fbernon
f5991dd9b6
DON'T WORRY, it's just a test on CVS keywords (I will remove)
2007-09-07 12:31:50 +00:00
fbernon
58c5d008d5
DON'T WORRY, it's just a test on CVS keywords (I will remove)
2007-09-07 09:23:51 +00:00
fbernon
ac1149156d
several-files: replace some #include "arch/cc.h" by "lwip/arch.h", or simply remove it as long as "lwip/opt.h" is included before (this one include "lwip/debug.h" which already include "lwip/arch.h"). Like that, default defines are provided by "lwip/arch.h" if they are not defined in cc.h, in the same spirit than "lwip/opt.h" for lwipopts.h.
2007-09-06 16:43:43 +00:00
fbernon
ca866c0d7d
Integrate "task #7272 : LWIP_ICMP option". The new option LWIP_ICMP enable/disable ICMP module inside the IP stack (enable per default). Be careful, disabling ICMP make your product non-compliant to RFC1122, but help to reduce footprint, and to reduce "visibility" on the Internet.
2007-09-05 17:20:45 +00:00
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.
2007-09-05 16:14:28 +00:00
fbernon
c1f89c5640
Move some build time checkings inside init.c for task #7142 "Sanity check user-configurable values".
2007-09-05 13:19:25 +00:00
fbernon
5865a78c1e
Minor fix (add some parenthesis where macro expansion could cause problems)
2007-09-05 10:18:39 +00:00
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).
2007-09-04 15:15:20 +00:00
fbernon
d794357504
Fix warnings inside sockets.c with "gcc" compilers. See "Description" in http://www.opengroup.org/onlinepubs/007908799/xns/syssocket.h.html :
2007-09-04 14:30:26 +00:00
fbernon
79b0484e20
Minor changes (fix some warnings like "function declaration isn't a prototype" and "no previous prototype for 'lwip_init'"...)
2007-09-04 13:51:48 +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
327f06bbaf
Replace "netif_default = NULL;" by "netif_set_default(NULL);" in netif_remove (do some processing, like for SNMP...)
2007-09-03 12:22:00 +00:00
fbernon
d7cd90b5b8
Add in igmp_joingroup & igmp_leavegroup a LWIP_ERROR checking on netif value.
2007-09-03 09:56:38 +00:00
fbernon
85fef90c94
Add enum snmp_ifType in snmp.h, and use it in network interfaces for NETIF_INIT_SNMP
2007-08-31 10:14:09 +00:00
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.
2007-08-31 09:42:32 +00:00
fbernon
231d965bcb
Minor fix (use ETHARP_HWADDR_LEN)
2007-08-31 09:02:53 +00:00
jgrubb
6c10282f9a
Put back in SO_REUSE
2007-08-30 22:41:24 +00:00
jgrubb
cb399272fd
Move deprecated options from opt.h to init.c
2007-08-30 22:33:55 +00:00
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.
2007-08-30 16:55:10 +00:00
fbernon
3101bdf127
Add some others sanity checkings
2007-08-30 16:06:51 +00:00
fbernon
384ae9c407
Minor change (ident, remove comment, change trace text)
2007-08-30 15:53:15 +00:00
fbernon
c671f8e7ef
Replace API programmation error checking for IGMP join/leave (ismulticast(addr)) by LWIP_ERROR checking.
2007-08-30 15:48:14 +00:00
jifl
f39b9c85fe
Add further checks. Move compile-time checks out of LWIP_DEBUG ifdef
2007-08-30 15:33:51 +00:00
fbernon
ab36270885
igmp.h, igmp.c: Some changes to remove some redundant code, add some traces, and fix some coding style.
2007-08-30 14:20:54 +00:00
fbernon
bd65dd8098
init.c: Add first version of lwip_sanity_check for task #7142 "Sanity check user-configurable values".
2007-08-30 10:15:17 +00:00
fbernon
36b6f308e6
Minor fix (coding style, comments, spaces, endline...)
2007-08-30 09:14:28 +00:00
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.
2007-08-29 21:12:32 +00:00
fbernon
da7b5135de
Minor Fix (ident)
2007-08-29 20:50:53 +00:00
fbernon
cb3d2b327a
Minor fix: replace C++ comments by C comments.
2007-08-29 09:25:17 +00:00
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).
2007-08-29 08:11:06 +00:00
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).
2007-08-29 07:51:20 +00:00
fbernon
d7da390ae9
Fix coding style (use #if and not #ifdef) for IPv6
2007-08-28 16:03:53 +00:00
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).
2007-08-27 10:08:53 +00:00
jifl
5e7b7cba31
"Fix" a few more cases where Paradigm C++ may mis-compile 16-bit right shifts on 32-bit quantities
2007-08-27 01:59:52 +00:00
marcbou
5a6b1cbf66
Added CHANGELOG entries for my recent contributions.
2007-08-27 00:14:21 +00:00
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).
2007-08-26 23:58:33 +00:00
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.
2007-08-25 10:43:19 +00:00
kieranm
7c90cc6aac
inet.c Modify (acc >> 16) test to ((acc >> 16) != 0) to help buggy
...
compiler (Paradigm C++)
2007-08-24 14:31:53 +00:00
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.
2007-08-22 11:26:01 +00:00
fbernon
2f344268ff
Minor fix (spaces and comment)
2007-08-22 11:00:02 +00:00
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).
2007-08-22 10:04:35 +00:00
fbernon
c4b97a1710
Forget to rename this line (pbuf->flgs->pbuf->flags)
2007-08-22 08:47:48 +00:00
fbernon
4f76bc42d7
Rename pbuf's "flgs" in "flags" (see in [lwip-devel] Last changes by Marc)
2007-08-20 19:15:43 +00:00
fbernon
fbd5600563
Force a build error if MEMP_NUM_TCPIP_MSG is always defined
2007-08-20 18:53:33 +00:00
fbernon
3259e2eac9
Replace PBUF_LINK_HLEN before PBUF_POOL_BUFSIZE, restore PPP options changed by Marc Boucher but lost with last Jared changes...
2007-08-20 17:05:01 +00:00
jgrubb
baca292f47
Task #7136 : Fix bug of wrong file name for centralized mempool settings.
2007-08-20 16:42:16 +00:00
fbernon
8babf0ec73
Fix wrong define for both pool "struct tcpip_msg" + minor fix (coding style)
2007-08-20 16:25:15 +00:00
fbernon
c07d124d4b
Minor change (fix comment)
2007-08-20 16:22:17 +00:00
marcbou
a0db1eaa32
Removed PBUF_FLAG_LINK_BROADCAST.
2007-08-17 22:23:42 +00:00
marcbou
dbd61d129d
Fix potential pbuf leaks.
2007-08-17 22:15:24 +00:00
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.
2007-08-17 18:31:05 +00:00
jgrubb
f55fafbc66
*** empty log message ***
2007-08-17 18:19:25 +00:00
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)
2007-08-17 18:18:58 +00:00
jgrubb
cc7d1226ee
Task #7136 : Centralize mempool settings into new memp_std.h and optional user file lwippools.h.
2007-08-17 17:49:17 +00:00
fbernon
8abafc54a6
Fix comment
2007-08-17 10:49:35 +00:00
fbernon
885695fa67
Minor changes (tabs)
2007-08-17 10:46:07 +00:00
fbernon
e0bf309bb5
Add raw_init in tcpip_init + minor changes (tabs, ident, coding style...)
2007-08-17 09:57:37 +00:00
marcbou
d907bcd57a
lwip_recvfrom() tweaks.
2007-08-17 05:55:24 +00:00
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.
2007-08-17 02:46:43 +00:00
marcbou
0471aaec52
Use enum pbuf_flag as pbuf_type.
...
Renumber PBUF_FLAG_*.
2007-08-17 02:09:43 +00:00
marcbou
18636a4df5
Fixed misplaced #endif.
2007-08-17 02:07:26 +00:00
fbernon
2be122875a
Minor changes (tabs, ident, coding style...)
2007-08-17 00:30:27 +00:00
marcbou
c517f6daf9
Backed out lwip_close() change after discussion with Frederic.
2007-08-16 23:09:04 +00:00
marcbou
07223bf5ef
Backed out last change to netconn_delete() after discussion with Frederic.
2007-08-16 23:06:42 +00:00
marcbou
7862ba583e
Moved lwip/src/netif/ppp/ppp_oe.h to lwip/src/include/netif/ppp_oe.h
2007-08-16 21:12:24 +00:00
marcbou
8c10d91135
ethbroadcast now a shared global provided by etharp.
2007-08-16 20:52:59 +00:00
marcbou
c81d0f3393
fix ethernet_input() return code warning.
2007-08-16 20:50:43 +00:00
marcbou
0b8b9e8033
Changed // style comment to /* style */ comment.
2007-08-16 20:41:56 +00:00
marcbou
b73198d5ef
Provide default value for MEMP_NUM_TCPIP_MSG_INPUT if not defined.
2007-08-16 20:39:29 +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
75935ad251
Changed // style comments to /* style */ comments.
2007-08-16 20:17:50 +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
17f07a36ef
netconn_delete(): unblock potentially waiting recv.
2007-08-16 20:03:23 +00:00
marcbou
557a0c7ae3
Removed TCPIP_MSG_ETHINPUT. TCPIP_MSG_INPUT now used for
...
both ETHARP_TCPIP_INPUT and ETHARP_TCPIP_ETHINPUT.
2007-08-16 19:55:30 +00:00
marcbou
1b98df4a0d
Added distinct memp (MEMP_TCPIP_MSG_INPUT) for input packets to prevent
...
floods from consuming all of MEMP_TCPIP_MSG and starving other message types.
2007-08-16 19:49:08 +00:00
marcbou
58bfb0458e
Added PPPoE support to ethernet_input()
2007-08-16 19:16:03 +00:00
marcbou
95cbf95c50
Added mem_calloc().
2007-08-16 18:37:15 +00:00
marcbou
0b4402ebc8
lwip_accept(): check netconn_peer() error return.
2007-08-16 18:29:37 +00:00
marcbou
d64b3f21e6
Initialize newconn->state to NETCONN_NONE in accept_function;
...
otherwise it was left to NETCONN_CLOSE and sent_tcp() could prematurely
close the connection.
2007-08-16 18:24:29 +00:00
marcbou
931fcfd0f5
Added PPPoE support and various PPP improvements.
2007-08-16 18:12:20 +00:00
kieranm
a6ca9aa306
* tcp_in.c: Fix for bug #19953 - correct TCP state machine when
...
* receiving FIN+ACK in SYN_RECV state
2007-08-16 15:57:31 +00:00
fbernon
40ef282982
Minor change: add in tcp_in.c in tcp_input(), some calls to handle error statistics (stats & snmp)
2007-08-14 18:01:34 +00:00
fbernon
9152d6671c
Comments Fix for Doxygen documentation
2007-08-09 22:21:44 +00:00
fbernon
d057e95ce3
Minor Fix (remove unused USE_ROUTER_ALERT and some coding style)
2007-08-09 20:21:59 +00:00
fbernon
ac2932bac3
stats.h, stats.c, igmp.h, igmp.c, opt.h: Fix for bug #20503 : IGMP Improvement. Introduce IGMP_STATS to centralize statistics management.
2007-08-09 20:09:22 +00:00
fbernon
118331207b
udp.c: Fix for bug #20503 : IGMP Improvement. Enable to receive a multicast packet on a udp pcb binded on an netif's IP address, and not on "any".
2007-08-09 18:34:03 +00:00
fbernon
7c104c8fbb
igmp.h, igmp.c, ip.c: Fix minor changes from bug #20503 : IGMP Improvement. This is mainly on using lookup/lookfor, and some coding styles...
2007-08-09 16:53:47 +00:00
fbernon
11c94b6566
Minor fix (spaces)
2007-08-09 10:51:26 +00:00
jgrubb
c555b532a2
Add NETIF_LINK_CALLBACK into the netif_set_link_up/down functions
2007-08-08 18:22:08 +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
f1c4a9ebfa
Minor fix (warning when LWIP_DEBUG is undefined)
2007-07-29 08:31:31 +00:00
fbernon
1edd2ed3db
Minor fix on pbuf_init (fix warning) and use same coding style that mem.h, sys.h, tcp.h, etc...
2007-07-29 08:23:57 +00:00
fbernon
b8b04271b5
Minor fix (warning, linker helper) signaled by Bill Florac
2007-07-29 08:11:33 +00:00
jifl
f0b33f5ced
Make pbuf_init() call be an empty macro for now
2007-07-27 15:06:03 +00:00
fbernon
42eead8f41
igmp.c: Fix bug #20595 to accept IGMPv3 "Query" messages.
2007-07-26 17:10:56 +00:00
goldsimon
33054a18db
Added a better comment to explain why tcp_close doesn't care for the return value of tcp_output
2007-07-26 09:31:09 +00:00
goldsimon
f4036e8352
Another fix for bug #20021 : by not returning an error if tcp_output fails in tcp_close, the code in do_close_internal gets simpler (tcp_output is called again later from tcp timers).
2007-07-25 19:24:27 +00:00
goldsimon
f9c30017b0
Fixed bug #20429 : use the new pbuf_copy_partial instead of the old copy_from_pbuf, which illegally modified the given pbuf; Introduced pbuf_copy_partial, making netbuf_copy_partial use this function.
2007-07-25 18:53:45 +00:00
goldsimon
8be76ed450
tcp_enqueue: pcb->snd_queuelen didn't work for chaine PBUF_RAMs: changed snd_queuelen++ to snd_queuelen += pbuf_clen(p).
2007-07-25 08:46:41 +00:00
fbernon
328b25d561
Minor Fix: remove obsolete MEMP_NUM_API_MSG define and update comment
2007-07-25 07:46:44 +00:00
goldsimon
9eff9676e9
Fix bug #20506 : Slow start / initial congestion window starts with 2 * mss (instead of 1 * mss previously) to comply with some newer RFCs and other stacks.
2007-07-25 07:31:29 +00:00
fbernon
a1d8335a8c
Fix do_delconn when used with LWIP_TCPIP_CORE_LOCKING=1 on "non-TCP" connections...
2007-07-24 17:27:48 +00:00
fbernon
d5a174364a
Minor fix: debug text inside ethernetif_input
2007-07-24 08:49:00 +00:00
goldsimon
62c3de30b9
Fix bug #20480 : Check the pcb passed to tcp_listen() for the correct state (must be CLOSED).
2007-07-24 07:41:55 +00:00
goldsimon
ebcb46cd48
Included the mem_malloc pools in memp_names if MEM_USE_POOLS=1
2007-07-18 20:30:21 +00:00
goldsimon
1689361ff2
Another change for fixing bug #20478 (put the memp += MEMP_SIZE in another place)
2007-07-15 10:54:24 +00:00
jgrubb
05e177e2c8
+bug fix #20478 : memp_malloc now returns NULL for failed allocation (instead of NULL+MEMP_SIZE)
2007-07-14 00:21:37 +00:00
jgrubb
eb998bda62
Bug fix #20478 : memp_malloc returns NULL+MEMP_SIZE rather than NULL on a failed allocation
2007-07-14 00:07:43 +00:00
fbernon
116bcb9dfb
opt.h, netif.h, netif.c, ethernetif.c: Add new configuration option to add a link callback in the netif struct, and functions to handle it. Be carefull for port maintainers to add the NETIF_FLAG_LINK_UP flag (like in ethernetif.c) if you want to be sure to be compatible with future changes...
2007-07-13 15:00:40 +00:00
fbernon
6a452951f5
api_msg.c: Fix bug #20318 : api_msg "recv" callbacks don't call pbuf_free in all error cases.
2007-07-13 14:28:15 +00:00
fbernon
a891854ef5
Fix bug #20315 : possible memory leak problem if tcp_listen failed, because current code doesn't follow rawapi.txt documentation.
2007-07-13 13:59:11 +00:00
fbernon
a2dffd430b
Fix minor patch #5741 build error...
2007-07-13 13:12:07 +00:00
kieranm
4ac0580aa0
2007-07-13 Kieran Mansley
...
* src/core/tcp_in.c Apply patch#5741 from Oleg Tyshev to fix bug in
out of sequence processing of received packets
2007-07-13 12:24:32 +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
goldsimon
8d2c8065eb
Removed old debug variables from pbuf_copy()
2007-07-04 16:43:54 +00:00
fbernon
bf176ed712
Minor fix (indent)
2007-07-03 21:27:59 +00:00
goldsimon
eb875de67e
Added assertions where PBUF_RAM pbufs are used and an assumption is made that this pbuf is in one piece (i.e. not chained). These assumptions clash with the possibility of converting to fully pool-based pbuf implementations, where PBUF_RAM pbufs might be chained.
2007-07-03 20:28:35 +00:00
goldsimon
2a77b9fcc7
Bug in last version (fix to close problems): netconn thread might get active before calling its callback, so conn was already deallocated.
2007-07-03 20:20:33 +00:00
goldsimon
9a4a5b1816
Final fix for bug #20021 and some other problems when closing tcp netconns: removed conn->sem, less context switches when closing, both netconn_close and netconn_delete should safely close tcp connections.
2007-07-03 19:29:59 +00:00
fbernon
3a0ab861c2
ip.h, etharp.c: Fix warnings & errors about LWIP_NETIF_HWADDRHINT (perhaps compiler dependant)
2007-07-03 10:36:21 +00:00
goldsimon
fdc0d30337
#ifdef LWIP_NETIF_HWADDRHINT around IP_PCB.addr_hint
2007-07-03 08:09:50 +00:00
goldsimon
96e4ec4a15
Added option LWIP_NETIF_HWADDRHINT (default=off) to cache ARP table indices with each pcb instead of single-entry cache for the complete stack.
2007-07-02 20:41:22 +00:00
goldsimon
fa4b711495
Added some ASSERTS and casts to prevent warnings when assigning to smaller types.
2007-07-02 20:13:45 +00:00
goldsimon
0113b735ad
Fixed a little cast-warning from u32_t to u16_t
2007-07-02 20:07:19 +00:00
goldsimon
d228ff0f43
Removed warning when assigning from u32_t to u16_t by casting to u16_t.
2007-07-01 16:04:35 +00:00
goldsimon
9abbb581c5
Changed tcp_pcb->snd_queuelen from u8_t to u16_t to prevent overflowing when sending many small packets with big send buffer, added assertions and oveflow checks for snd_queuelen.
2007-07-01 15:56:04 +00:00
goldsimon
d7c50f56d7
Fixed a wrong assert statement in etharp_query when ARP_QUEUEING=1 and packets should be queued.
2007-07-01 14:52:09 +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
c91caa06d3
Set/get ARP hwlen and protolen in one piece.
2007-06-30 11:42:41 +00:00
goldsimon
6c3c184bc7
Added check to prevent tcp_pcb->snd_queuelen from overflowing.
2007-06-29 17:09:47 +00:00
fbernon
af71292aba
Minor fix (extra spaces)
2007-06-29 13:37:33 +00:00
goldsimon
24e29cecae
Fixed bug #20287 : Fixed nagle algorithm (sending was done too early if a segment contained chained pbufs)
2007-06-28 20:05:38 +00:00
fbernon
ab4c3a326f
autoip.c: replace most of rand() calls by a macro LWIP_AUTOIP_RAND which compute a "pseudo-random" value based on netif's MAC and some autoip fields. It's always possible to define this macro in your own lwipopts.h to always use C library's rand(). Note that autoip_create_rand_addr doesn't use this macro.
2007-06-28 18:05:38 +00:00
goldsimon
d73ca29a07
Fixed minor indentation fault
2007-06-28 10:29:13 +00:00
fbernon
d6fbe45296
netifapi.h, netifapi.c, tcpip.h, tcpip.c: Update code to handle the option LWIP_TCPIP_CORE_LOCKING, and do some changes to be coherent with last modifications in api_lib/api_msg (use pointers and not type with table, etc...)
2007-06-28 10:11:05 +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
2b02db2675
Remove warning in tcp_enqueue (cast from u32_t to u16_t)
2007-06-27 16:42:20 +00:00
goldsimon
6f93a8f091
Set the err_to_errno_table to be const
2007-06-26 17:38:52 +00:00
goldsimon
47074c897e
Removed warning: LWIP_DEBUGF had wrong argument count
2007-06-26 08:12:15 +00:00
goldsimon
2270f0d172
Fixed bug #20259 : struct udp_hdr was lacking the packin defines.
2007-06-26 07:32:17 +00:00
goldsimon
1b5d3466ba
etharp_arp_input: stricter checking of hwtype, proto, hwlen & protolen allows us to leave some header fields like they are when sending ARP reply (only changing the addresses is needed)
2007-06-25 18:03:23 +00:00
goldsimon
dcc2247a90
Fixed bug #20253 : icmp_dest_unreach was called with a wrong p->payload for udp packets with no matching pcb.
2007-06-25 17:30:16 +00:00
goldsimon
00b7aeb49b
Fixed bug #20220 : UDP PCB search in udp_input(): a non-local match could get udp input packets if the remote side matched.
2007-06-25 17:24:31 +00:00
goldsimon
4f5b781b88
Moved filling of ethernet header for outgoing IP packets into an extra function to reduce code size.
2007-06-25 17:20:10 +00:00
goldsimon
b51d1b79a3
Combined etharp_request with etharp_raw for both LWIP_AUTOIP =0 and =1 to remove redundant code.
2007-06-24 12:51:22 +00:00
goldsimon
4848de3a8e
etharp_tmr function had a bug (pending entries were pending for too long)
2007-06-24 12:46:13 +00:00
goldsimon
88b1cebe1d
Sorry, checked in some of my local changes with the LWIP_ERROR modification!
2007-06-23 13:09:58 +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
786a7fbaf4
no-pool-big-enough was not correctly caught
2007-06-22 20:26:30 +00:00
goldsimon
0ce27296aa
ASSERTS were using old MEM_ALIGN define, therefore, was not compilable without LWIP_NOASSERT defined
2007-06-22 20:23:26 +00:00
fbernon
a1d176b643
autoip.h/.c: change autoip_init & autoip_create_rand_addr to use netif's MAC address and tried_llipaddr to generate an "autoip"...
2007-06-22 18:54:34 +00:00
goldsimon
0c18e653e8
Introduced the option MEM_USE_POOLS to use 4 pools with different sized elements instead of a heap. This both prevents memory fragmentation and gives a higher speed at the cost of more memory consumption. Turned off by default.
2007-06-21 20:12:11 +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
f49fc35f55
Converted the length argument of netconn_write (and therefore also api_msg_msg.msg.w.len) from u16_t into int to be able to send a bigger buffer than 64K with one time (mainly used from lwip_send).
2007-06-21 19:32:26 +00:00
goldsimon
67795ad26e
Corrected do_write for LWIP_TCPIP_CORE_LOCKING=1
2007-06-21 19:14:02 +00:00
goldsimon
2aef8bad55
Moved the nagle algorithm from netconn_write/do_write into a define (tcp_output_nagle) in tcp.h to provide it to raw api users, too.
2007-06-21 18:55:09 +00:00
goldsimon
9f05cabf87
Fixed bug #20021 : Moved sendbuf-processing in netconn_write from api_lib.c to api_msg.c to also prevent multiple context-changes on low memory or empty send-buffer.
2007-06-21 18:40:21 +00:00
fbernon
4c07b1606c
Minor changes: fix some comments for Doygen documentation
2007-06-21 07:17:29 +00:00
goldsimon
d3f0a3211d
Changed etharp to use a defined hardware address length of 6 to avoid loading netif->hwaddr_len every time (since this file is only used for ethernet and struct eth_addr already had a defined length of 6).
2007-06-19 16:22:55 +00:00
fbernon
ec7333d406
Some changes for AutoIP integration in tcpip.c, and some comments.
2007-06-19 10:11:27 +00:00
fbernon
6a40426421
Minor fix: warning, type... for patch #5952 : Integration of AutoIP module
2007-06-18 21:45:34 +00:00
goldsimon
c9ebb895a1
Removed warning "empty body in an if statement" in tcp_receive() for LWIP_DEBUG=0
2007-06-18 20:08:31 +00:00
goldsimon
f66bbda8b1
Ooops, checked in a wrong (test-) version before!
2007-06-18 19:52:55 +00:00
goldsimon
da2d9f3733
Shortened some lines to ~80
2007-06-18 19:36:58 +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
fbernon
e89f5983be
tcp_in.c: Fix bug #20126 : Zero ssthresh bug (by Per-Henrik Lundblom and Kieran Mansley).
2007-06-17 16:15:34 +00:00
goldsimon
6784fd64f3
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 15:20:21 +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
261e92c57b
In accept_function, one LWIP_ERROR had a wrong expression (since it is inverted compared to LWIP_ASSERT...)
2007-06-17 14:38:32 +00:00
goldsimon
55bd48dc10
Always align PBUF_POOL_BUFSIZE, pbuf_init is not needed any more, minor changes to meet coding style requirements
2007-06-17 14:36:19 +00:00
goldsimon
96dc30dea2
Done some work on task #1549 (function documentation)
2007-06-17 12:18:11 +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
goldsimon
1db9013bc4
Done some work on task #1549 (function documentation)
2007-06-16 15:08:47 +00:00
goldsimon
060cbe15d6
Done some work on task #1549 (function documentation), added some LWIP_ERROR checks, don't call pcb_new() from do_bind() and do_connect() since a netconn without pcb can't exist any more (after the recent changes to netconn_new_*())
2007-06-16 15:07:11 +00:00
goldsimon
8532d0d152
Added comments for the callback functions included in struct tcp_listen_pcb
2007-06-16 15:04:50 +00:00
goldsimon
173e63f01b
Minor fix: coding style
2007-06-16 15:03:09 +00:00
goldsimon
066daf21ef
Added comments for the callback functions included in structs tcp_pcb, udp_pcb and raw_pcb.
2007-06-16 14:33:37 +00:00
goldsimon
10f4604939
Corrected some copy & paste errors
2007-06-16 14:09:27 +00:00
goldsimon
08ab2d89f4
Created define instead of extra-function for netconn_new, netconn_new_with_callback and netconn_err, added netconn_type NETCONN_INVALID
2007-06-16 13:58:32 +00:00
goldsimon
775deefeaa
Done some work on task #1549 (function documentation), added some LWIP_ERROR checks, created define instead of extra-function for netconn_new, netconn_new_with_callback and netconn_err
2007-06-16 13:57:30 +00:00
goldsimon
cbf281589b
Fixed bug #20180 (TCP pcbs listening on IP_ADDR_ANY could get changed in netif_set_ipaddr if previous netif->ip_addr.addr was 0.
2007-06-16 13:32:10 +00:00
goldsimon
f1d95379bc
Changed all references to old debug defines to the new ones (e.g. LWIP_DBG_TRACE)
2007-06-16 11:39:01 +00:00
goldsimon
7c4377af0e
Added debug output for icmp_input if ip_output_if worked or not.
2007-06-16 11:23:26 +00:00
goldsimon
f93b8fe377
pbuf_copy(): removed copy & paste error which did not copy pbuf chains correctly
2007-06-14 17:40:39 +00:00
goldsimon
978c68dcf8
pbuf_copy: chained pbufs were not copied correctly because of wrong packet-queue-check
2007-06-14 07:22:43 +00:00
goldsimon
c0925d2d04
minor fix in assertion text
2007-06-14 07:21:55 +00:00
goldsimon
15e8208457
pcb_new sets conn->err if protocol is not implemented -> netconn_new_..() does not allocate a new connection for unsupported protocols.
2007-06-13 19:00:21 +00:00
fbernon
d8fe18c28e
api_lib.c: change return expression in netconn_addr and netconn_peer, because conn->err was reset to ERR_OK without any reasons (and error was lost)...
2007-06-13 18:08:49 +00:00
fbernon
9ee85fb1b6
debug.h, api_msg.c: change LWIP_ERROR to use it to check errors like invalid pointers or parameters, and let the possibility to redefined it in cc.h. Use this macro to check "conn" parameter in api_msg.c functions (some others change will be done...).
2007-06-13 18:00:54 +00:00
fbernon
bdbc96f453
opt.h, mem.h, mem.c, memp.c, pbuf.c, ip_frag.c, vj.c: Fix bug #20162 . Rename MEM_ALIGN in LWIP_MEM_ALIGN and MEM_ALIGN_SIZE in LWIP_MEM_ALIGN_SIZE to avoid some macro names collision with some OS macros.
2007-06-13 17:17:26 +00:00
fbernon
5f7831b3c8
Minor fix (comment is not at the good place)
2007-06-13 09:04:03 +00:00
goldsimon
6336279ce0
In udp_input, for UDP Lite, chksum_len_tx was used instead of chksum_len_rx
2007-06-12 07:03:32 +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
goldsimon
2f293d53ba
UDP Lite: corrected the use of chksum_len (based on RFC3828: if it's 0, create checksum over the complete packet. On RX, if it's < 8 (and not 0), discard the packet. Also removed the duplicate 'udphdr->chksum = 0' for both UDP & UDP Lite.
2007-06-11 18:03:57 +00:00
fbernon
1d7caed340
tcp_out.c: Fix for bug #20075 : "A problem with keep-alive timer and TCP flags" where TCP flags wasn't initialized in tcp_keepalive. Reported by Srinivas Gollakota with help of Oleg Tyshev.
2007-06-11 13:59:10 +00:00
fbernon
5993c816d8
Minor fix. Add "static" to IGMP's global variables, and rename group_list to igmp_group_list...
2007-06-11 07:27:12 +00:00
fbernon
15ccac78d9
Minor fix. Add comments in source file from documentation text file by Dominik Spies.
2007-06-11 07:26:10 +00:00
fbernon
d81841f54e
Minor fix (coding style)
2007-06-10 20:02:43 +00:00
goldsimon
95f4c02381
Included switch LWIP_UDPLITE (enabled by default) to switch off UDP-Lite support if not needed (reduces udp.c code size)
2007-06-10 12:02:24 +00:00
goldsimon
df0e4492a7
Forgot some brackets in an if statement in v1.109
2007-06-10 09:49:04 +00:00
fbernon
e01f342048
Contrib module by Dominik Spies: autoip.h, autoip.c, dhcp.h, dhcp.c, netif.h, netif.c, etharp.h, etharp.c, opt.h: AutoIP implementation available for IPv4, with new options LWIP_AUTOIP and LWIP_DHCP_AUTOIP_COOP if you want to cooperate with DHCP. Some tips to adapt (see TODO mark in the source code).
2007-06-09 16:57:04 +00:00
fbernon
792f5b3f22
Patch from Jared Momose (j.momose@ieee.org) for bug #19699 : "Bug in SNMP ASN1 decode; submitted patch"
2007-06-09 10:36:21 +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
6607cab902
set netif->output to etharp_output by default to save a function call
2007-06-08 22:42:43 +00:00
goldsimon
3a09de82e3
Corrected #if ... when to include copy_from_pbuf()
2007-06-08 22:20:59 +00:00
goldsimon
c028619cdd
Modified order of parameters for etharp_output() to match netif->output so etharp_output() can be used directly as netif->output to save one function call.
2007-06-08 22:20:05 +00:00
goldsimon
6b1dc21383
Changed etharp_tmr() to be smaller
2007-06-08 22:19:23 +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
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
goldsimon
0aaf69769f
Fixed bug #1895 (tcp_bind not correct) by introducing a list of bound but unconnected (and non-listening) tcp_pcbs.
2007-05-22 20:48:36 +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
goldsimon
78201c0146
Added some comments, better max-size-check, removed Adams original mem_malloc.
2007-05-22 19:38:12 +00:00
fbernon
499f4689be
api.h, api_lib.c, api_msg.h, api_msg.c: change the struct api_msg_msg to see which parameters are used by which do_xxx function, and to avoid "misusing" parameters (patch #5938 ).
2007-05-22 09:54:00 +00:00
fbernon
2106f491d0
Minors fix (spaces, comments, unused variable)
2007-05-22 08:20:18 +00:00
goldsimon
81ac03a28b
Included patch #5938 : changed raw_pcb.protocol from u16_t to u8_t since for IPv4 and IPv6, proto is only 8 bits wide. This affects the api, as there, the protocol was u16_t, too.
2007-05-22 07:31:06 +00:00
fbernon
980af63b8d
Remove warning (missing include)
2007-05-21 16:55:57 +00:00
goldsimon
613644bfc6
Re-included unneeded cases in do_disconnect() and do_send() to prevent warnings.
2007-05-21 09:52:23 +00:00
fbernon
7f5d6bc964
api_msg.c: Fix some errors forwarding ( https://savannah.nongnu.org/task/?6880 )
2007-05-19 16:27:02 +00:00
fbernon
d5e37309e5
Minor Fix (unsed code, spaces, idents..)
2007-05-19 16:24:40 +00:00
fbernon
6bfa99a774
Minor fixs to reduce footprint on the "recv part" of Sequential API...
2007-05-19 13:54:56 +00:00
fbernon
c899097802
Remove warning in snmp/msg_in.c
2007-05-19 10:19:14 +00:00
goldsimon
70187bd47e
Gave the overflow functions some better names which correspond to the (future) mem.c function names
2007-05-18 21:10:33 +00:00
goldsimon
018efc9631
Check the user-overridable defines MEMP_SANITY_REGION_BEFORE and MEMP_SANITY_REGION_AFTER for aligment.
2007-05-18 20:25:27 +00:00
goldsimon
a4f4e6e71d
Addition to patch #5913 : decrease size of memp_memory.
...
Added option MEMP_OVERFLOW_CHECK to check for memp elements to overflow.
2007-05-18 19:48:44 +00:00
goldsimon
cde11f9d9c
Added some new functions as null-definitions if NO_SYS=1
2007-05-18 18:34:34 +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
4192df97ec
Corrected check of PBUF_POOL overflow
2007-05-18 11:13:34 +00:00
goldsimon
9085abd838
Added comments whether fields are host or network byte order (task #1568 )
2007-05-17 12:45:50 +00:00
goldsimon
874415a193
Added comments whether fields are host or network byte order (task #1568 )
2007-05-17 12:21:32 +00:00
goldsimon
5e9d80fbdb
tcpip_input()/tcpip_ethinput(): don't free the pbuf if returning ERR_MEM, that is the netif driver's responsibility
2007-05-17 09:04:36 +00:00
goldsimon
75f7f21eb0
...and again replacing tab by spaces ;-)
2007-05-17 09:02:30 +00:00
goldsimon
c01e265e07
changes tabs to spaces
2007-05-17 08:55:50 +00:00
goldsimon
5c89228878
Fix bug #19729 : free pbuf if netif->input() returns != ERR_OK.
2007-05-16 19:54:54 +00:00
goldsimon
2740a81103
If a udp_pcb has a local_ip set, check if it is the same as the one of the netif used for sending to prevent sending from old addresses after a netif address gets changed (partly fixes bug #3168 ).
2007-05-16 18:55:25 +00:00
goldsimon
a27dc1e908
Finally removed all occurences of PBUF_STATS :-)
2007-05-16 18:00:36 +00:00
goldsimon
e9abfa6602
Removed PBUF_STATS and related code from opt.h & msg_in.c
2007-05-16 14:15:54 +00:00
fbernon
0f8a2d6418
tcpip.c, igmp.h, igmp.c: Fixed bug " #19800 : IGMP: igmp_tick() will not work with NO_SYS=1". Note that igmp_init is always in tcpip_thread (and not in tcpip_init) because we have to be sure that network interfaces are already added (mac filter is updated only in igmp_init for the moment).
2007-05-16 14:12:52 +00:00
goldsimon
2e479b88a8
Updated stats.h/.c to reflect the integration of pbuf pool into memp
2007-05-16 13:49:44 +00:00
goldsimon
fd982597fe
Removed semaphores from memp, changed sys_sem_wait calls into sys_arch_sem_wait calls to prevent timers from running while waiting for the heap. This fixes bug #19167 .
2007-05-16 11:02:07 +00:00
goldsimon
887077b5a4
pbuf_alloc(PBUF_POOL): Added asserts to make sure payload+len is still in bound of the pbuf (also to make sure bug #15659 is fixed).
2007-05-16 10:45:28 +00:00
fbernon
4e71ec4480
Minor fix (tabs)
2007-05-15 16:34:30 +00:00
goldsimon
8ef712787a
Aligned MIN_SIZE, memset(0) the complete ram_heap instead of only the used area, only to be on the safe side...
2007-05-15 10:35:48 +00:00
goldsimon
6c39b8a10c
Found a little bug in ARP_QUEUEING: if pbuf_alloc for the packet to be queued failed, pbuf_copy was called with a NULL pointer.
2007-05-14 20:10:46 +00:00
fbernon
3c32c993f5
Include inet.h to avoid warnings (see http://savannah.nongnu.org/patch/?5865 ).
2007-05-14 08:32:08 +00:00
goldsimon
62d705903e
task #6831 : removed the option PBUF_POOL_USES_MEMP and removed the old pbuf pool code, pbuf pool now always allocates from a memp pool
2007-05-13 18:17:22 +00:00
goldsimon
a5e2e9ea03
(see task #6831 ): Included new option PBUF_POOL_USES_MEMP to use a memp pool for PBUF_POOL pbufs instead of the old pool implementation in pbuf.c to remove redundant code.
2007-05-13 16:16:03 +00:00
goldsimon
055e3d52b6
Modified struct pbuf size determination so that sizeof(struct pbuf) does not necessarily be a multiple of MEM_ALIGNMENT
2007-05-13 16:12:29 +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
goldsimon
bd570561e8
Fix for bug #19740 : 2 static functions are unused, simply ifdefing them out for now to get rid of warnings
2007-05-13 11:08:04 +00:00
goldsimon
19d49db305
sys.h: moved #include "arch/sys_arch.h" down a little, so that functions using the defines SYS_ARCH_TIMEOUT/SYS_MBOX_EMPTY can be define as static (inline) in sys_arch.h. This should not affect any others since the defines couldn't be overridden anyway...
2007-05-13 10:31:51 +00:00
goldsimon
ab4993fda2
Ooops, checked in the wrong version before :-(
2007-05-11 19:42:50 +00:00
goldsimon
6f4056cf99
- Changed mem_malloc(): near fit behaves like exact fit since mem->next is always used
...
- Included some more alignment statements
- Every malloced block is at least MIN_SIZE big (can be overridden, can be used to work against fragmentation)
- Added many comments so that the next developer knows what I was thinking :-)
2007-05-11 19:42:10 +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
6a2e323792
Added some ASSERTs and NULL-pointer checks to sys_timeout/sys_untimeout
2007-05-10 14:23:38 +00:00
goldsimon
d4834803ae
Included opt.h before checking the options.
2007-05-10 11:00:16 +00:00
goldsimon
84fc489e0c
Included patch #5448 : include '#ifdef __cplusplus \ extern "C" {' in all header files. Now you can write your application using the lwIP stack in C++ and simply #include the core files. Note I have left out the netif/ppp/*h header files for now, since I don't know which files are included by applications and which are for internal use only.
2007-05-10 10:59:20 +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
goldsimon
b41520f9e2
Removed unused pbuf stats items
2007-05-08 18:55:29 +00:00
goldsimon
0e881170c2
Fixed 3 typos of the version checked in yesterday...
2007-05-08 18:09:14 +00:00
goldsimon
1571881f7a
If MEM_LIBC_MALLOC==1, allow the defines (e.g. mem_malloc() -> malloc()) to be overriden in case the C-library malloc implementation is not protected against concurrent access.
2007-05-08 11:00:49 +00:00
goldsimon
4dbf1dcad4
mem_realloc: Added assert to check that memory is shrinked, not expanded.
2007-05-08 10:50:19 +00:00
goldsimon
824ef1ff2c
Another attempt to fix bug #17922
2007-05-07 19:48:29 +00:00
goldsimon
79d9b36ece
Further update to ARP queueing: Changed pbuf_copy() implementation so that it can be reused (don't allocate the target pbuf inside pbuf_copy()).
2007-05-04 21:31:25 +00:00
goldsimon
be316e81a7
Introduced fast one-entry-cache to speed up ARP lookup when sending multiple packets to the same host.
2007-05-04 19:31:27 +00:00
goldsimon
615e52d396
Prototype of igmp_tick() in igmp.h did not match the one in igmp.c
2007-05-04 16:30:37 +00:00
goldsimon
7f232b43ff
checked in patch #5913 : in memp_malloc() we can return memp as mem to save a little RAM (next pointer of memp is not used while not in pool).
2007-05-04 15:52:11 +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
fbernon
05ea5f05ae
Minor fix (tab, indent...) to respect source code style...
2007-05-04 15:14:14 +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
eb28133b1f
Remove forgotten printf in pbuf_init().
2007-05-02 09:26:51 +00:00
goldsimon
c66932ab25
Checked in patch #5453 : removed mutex/other locking stuff if SYS_LIGHTWEIGHT_PROT=0, moved some pbuf pool logic to static functions
2007-04-30 13:18:22 +00:00
goldsimon
36e8213e42
PBUF_POOL_BUFSIZE: For the default length, alignment check in pbuf_init() failed.
2007-04-30 13:12:33 +00:00
goldsimon
cde6d0deed
pbuf_alloc() / pbuf_realloc(): added LWIP_DEBUG_ASSERT() and cast operator when assigning s32_t to u16_t to get rid of compiler warnings
2007-04-30 11:56:48 +00:00
goldsimon
b462cb4575
Define ETH_PAD_SIZE after including opt.h to avoid conflict with lwipopts.h
2007-04-30 11:45:39 +00:00
goldsimon
dd4ccfc672
task #6792 : added added LWIP_DEBUG_ASSERT(x,y), which triggers #ifndef LWIP_NOASSERT and #ifdef LWIP_DEBUG
2007-04-29 16:35:55 +00:00
goldsimon
6006e2f917
Changed some includes for loopif and added comments
2007-04-24 08:42:32 +00:00
goldsimon
4bedb07aa0
Added some more LWIP_UNUSED_ARG()s
2007-04-24 08:35:19 +00:00
goldsimon
02e194b15f
fix bug #2595 : "loopif results
...
in NULL reference for incoming TCP packets". Loopif has to be configured
(using LWIP_LOOPIF_MULTITHREADING) to directly call netif->input()
(multithreading environments, e.g. netif->input() = tcpip_input()) or
putting packets on a list that is fed to the stack by calling loopif_poll()
(single-thread / NO_SYS / polling environment where e.g.
netif->input() = ip_input).
2007-04-23 20:00:29 +00:00
goldsimon
82e579a29d
Changed the comment to pbuf_realloc() that it can't grow (only shrink) chains to reflect the fact that we decided not to change this.
2007-04-17 17:48:35 +00:00
jifl
eacac8ee1d
* sockets.h: FD_SETSIZE needs to match number of sockets, which is
...
MEMP_NUM_NETCONN in sockets.c right now.
2007-04-17 14:50:08 +00:00
jifl
cd19d81411
* pbuf.c: Use s32_t in pbuf_realloc(), as an s16_t can't reliably hold
...
the difference between two u16_t's.
2007-04-17 14:44:41 +00:00
jifl
748ba22a19
* icmp.c: Reset IP header TTL in ICMP ECHO responses (bug #19580 ).
2007-04-12 18:55:44 +00:00
kieranm
79be888b6f
* tcp.c, tcp_in.c, tcp_out.c, tcp.h: Modify way the retransmission
...
timer is reset to fix bug#19434, with help from Oleg Tyshev.
2007-04-12 14:56:07 +00:00
jifl
58b3b0603d
Note succesful error return for sys_arch_mbox_tryfetch
2007-04-12 02:50:08 +00:00
jifl
9d43d74ee3
Document new sys_arch_mbox_tryfetch requirement for ports
2007-04-12 01:30:53 +00:00
fbernon
9bc49b3268
opt.h: rename DBG_TYPES_ON & DBG_MIN_LEVEL with LWIP_ prefix.
2007-04-12 00:16:30 +00:00
jifl
d92e0dec22
From bug #19222 comment #18 . Minor tweak to sys_mbox_fetch to avoid redundant
...
code.
2007-04-11 23:16:49 +00:00
goldsimon
7932bf483b
Ongoing fix to patch #5822 : converted more statements like (void)arg; into LWIP_UNUSED_ARG(arg);
2007-04-11 19:39:24 +00:00
goldsimon
e54f3fdaac
3rd fix for bug #11400 (arp-queuing): More pbufs than previously thought need to be copied (everything but PBUF_ROM!). Cleaned up pbuf.c: removed functions no needed any more (by etharp).
2007-04-11 18:50:45 +00:00
jifl
e8b055b8d3
Oops, forgot final version of Changelog for last change I made.
2007-04-11 16:20:07 +00:00
jifl
0c94f22ded
* sys.h, api_lib.c: Provide new sys_mbox_tryfetch function.
...
Require ports to provide new sys_arch_mbox_tryfetch function to get
a message if one is there, otherwise return with SYS_MBOX_EMPTY.
2007-04-11 15:41:03 +00:00
kieranm
05909d6fa7
Apply patch #5745 : Fix "Constant is long" warnings with 16bit
...
compilers. Contributed by avatar@mmlab.cse.yzu.edu.tw
2007-04-11 13:32:41 +00:00
jifl
712a22e18c
Applied patch #5832 from Tai-hwa Liang to keep ipv6 building.
2007-04-10 13:18:14 +00:00
fbernon
35893e36dd
opt.h, tcpip.h, tcpip.c, netifapi.h, netifapi.c: New configuration option LWIP_NETIF_API allow to use thread-safe functions to add/remove netif in list, and to start/stop dhcp clients, using new functions from netifapi.h. Disable as default (no port change to do).
2007-04-06 10:09:24 +00:00
fbernon
787eecbf43
Fix mistakes in netconn's error field checking.
2007-04-05 21:11:16 +00:00
fbernon
5f1aac1450
api_msg.c: Fix bug #16830 : "err_tcp() posts to connection mailbox when no pend on the mailbox is active". Now, the post is only done during a connect, and do_send, do_write and do_join_leave_group don't do anything if a previous error was signaled.
2007-04-05 16:54:20 +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
f16911f7dd
comment to the last check-in was incomplete: 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:55:42 +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
goldsimon
f8aa14d402
Fix bug #5848 : add #if PAP_SUPPORT around the whole file pap.h
2007-04-04 19:21:27 +00:00
goldsimon
11a4f5538b
Change names of 2 global variables again, as the previous names did not have lwip-style...
2007-04-03 16:33:14 +00:00
fbernon
26e88dc2c1
Don't set the IP_DF ("Don't fragment") flag in the IP header in IP output packets. See patch #5834 .
2007-04-03 14:08:11 +00:00
goldsimon
34fcccc50b
- Changed the names of some variables in SNMP module to avoid them shadowing each other (which produces a lot of warnings and makes the code hard to maintain)
...
- Added missing defines for 3 snmp-functions if LWIP_SNMP==0
2007-04-02 20:39:24 +00:00
goldsimon
2f53df93e8
Removed printf formatter warning introduced by last check-in (changed local variable from u32_t to u16_t)
2007-04-02 20:34:18 +00:00
fbernon
996d5fda69
ip.c: if IP_REASSEMBLY is set to 1, don't set the IP_DF ("Don't fragment") flag in the IP header in IP output packets.
2007-03-30 13:30:42 +00:00
fbernon
f75be85eea
Add NETIF_FLAG_ETHARP flag and comments in this skeleton.
2007-03-30 10:32:57 +00:00
fbernon
f1412f5e5a
api_msg.c: add a "pcb_new" helper function to avoid redundant code, and to add missing pcb allocations checking (in do_bind, and for each raw_new). Fix style.
2007-03-30 09:42:16 +00:00
fbernon
4208bcd8d1
Fix on NETIF_FLAG_ETHARP test (test inverted)
2007-03-30 09:25:41 +00:00
fbernon
5368a760cf
most of files: prefix all debug.h define with "LWIP_" to avoid any conflict with others environment defines (these were too "generic").
2007-03-30 08:47:04 +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
goldsimon
d956a39fec
sockets.c Remove "#include <errno.h>" from sockets.c to avoid multiple
...
definition of macros (in errno.h and lwip/arch.h) if LWIP_PROVIDE_ERRNO is
defined. This is the way it should have been already (looking at
doc/sys_arch.txt)
2007-03-28 14:49:04 +00:00
kieranm
01d9bd573e
2007-03-28 Kieran Mansley
...
* opt.h Change default PBUF_POOL_BUFSIZE (again) to accomodate default MSS +
IP and TCP headers *and* physical link headers
2007-03-28 12:27:38 +00:00
fbernon
d301b69dae
Minor. Add LWIP_NETIF_HOSTNAME in skeleton and comment on #endif for LWIP_SNMP.
2007-03-28 10:29:06 +00:00
fbernon
c1fe7517ec
opt.h, netif.h, dhcp.h, dhcp.c: New configuration option LWIP_NETIF_HOSTNAME allow to define a hostname in netif struct (this is just a pointer, so, you can use a hardcoded string, point on one of your's ethernetif field, or alloc a string you will free yourself). It will be used by DHCP to register a client hostname, but can also be use when you call snmp_set_sysname.
2007-03-28 09:39:12 +00:00
fbernon
cd1c96db56
netif.h, netif.c: A new NETIF_FLAG_ETHARP flag is defined in netif.h, to allow to initialize a network interface's flag with. It tell this interface is an ethernet device, and we can use ARP with it to do a "gratuitous ARP" (RFC 3220 "IP Mobility Support for IPv4" section 4.6) when interface is "up" with netif_set_up().
2007-03-28 09:23:35 +00:00
goldsimon
4aee4c1ac7
Free pbuf if pbuf_header() fails
2007-03-26 19:27:11 +00:00
goldsimon
bef0503545
Removed warning: sizeof() was automatically casted to negative
2007-03-26 18:57:30 +00:00
goldsimon
7aea2cd6f1
Remove warnings: "converting from 'u32_t' to 'u16_t': possible loss of data": check that received timeout values fit into u16_t.
2007-03-26 18:52:52 +00:00
goldsimon
028d707077
Remove warning in netif_add(): "converting from 's16' to 'u8_t': possible loss of data" (static variable netifnum)
2007-03-26 17:19:12 +00:00
goldsimon
c9df03d1a9
Remove warnings: "comparision between signed and unsigned" and "converting from 'unsigned long' to 'u8_t': possible loss of data"
2007-03-26 17:15:23 +00:00
fbernon
19338d2774
opt.h, tcpip.c: New configuration option LWIP_ARP allow to disable ARP init at build time if you only use PPP or SLIP. The default is enable. Note we don't have to call etharp_init in your port's initilization sequence if you use tcpip.c, because this call is done in tcpip_init function.
2007-03-26 16:13:46 +00:00
fbernon
005e5f2f72
api_lib.c (from Dmitry Potapov) : patch for netconn_write(), fixes a possible race condition which cause to send some garbage. It is not a definitive solution, but the patch does solve the problem for most cases.
2007-03-26 15:37:48 +00:00
fbernon
e54cd23ecb
stats.h, stats.c, msg_in.c: Stats counters can be change to u32_t if necessary with the new option LWIP_STATS_LARGE. If you need this option, define LWIP_STATS_LARGE to 1 in your lwipopts.h. More, unused counters are not defined in the stats structs, and not display by stats_display(). Note that some options (SYS_STATS and RAW_STATS) are defined but never used. Fix msg_in.c with the correct #if test for a stat display.
2007-03-22 16:36:45 +00:00
fbernon
544e469eeb
api_msg.h, api_msg.c: Remove obsolete API_MSG_ACCEPT and do_accept (never used).
2007-03-22 09:34:18 +00:00
fbernon
db739d16ce
api_lib.c: somes resources couldn't be freed if there was errors during netconn_new_with_proto_and_callback.
2007-03-22 09:27:04 +00:00
fbernon
5fff6e7ff8
ethernetif.c: update netif->input calls to check return value. In older ports, it's a good idea to upgrade them, even if before, there could be another problem (access to an uninitialized mailbox).
2007-03-22 09:09:27 +00:00
goldsimon
776c01e60b
fixed bug #5067 (essentialy a signed/unsigned warning fixed by casting to unsigned).
2007-03-21 21:14:06 +00:00
fbernon
3eb38d7611
api_lib.c, api_msg.c, tcpip.c: integrate sys_mbox_fetch(conn->mbox, NULL) calls from api_lib.c to tcpip.c's tcpip_apimsg(). Now, use a local variable and not a dynamic one from memp to send tcpip_msg to tcpip_thread in a synchrone call. Free tcpip_msg from tcpip_apimsg is not done in tcpip_thread. This give a faster and more reliable communication between api_lib and tcpip.
2007-03-21 16:38:58 +00:00
fbernon
766159e27e
opt.h: Add LWIP_NETIF_CALLBACK (to avoid compiler warning) and set it to 0.
2007-03-21 15:35:02 +00:00
fbernon
bb34d8cfd1
api_msg.c, igmp.c, igmp.h: Fix C++ style comments
2007-03-21 14:47:52 +00:00
fbernon
a880469d7d
Remove obsolete include from my port.
2007-03-21 13:57:45 +00:00
kieranm
e5147d5562
* netif.c, netif.h: Apply patch#4197 with some changes (originator: rireland@hmgsl.com).
...
Provides callback on netif up/down state change.
2007-03-21 13:24:20 +00:00
kieranm
d7ff85850c
2007-03-21 Kieran Mansley
...
* opt.h Change default PBUF_POOL_BUFSIZE to accomodate default MSS +
IP and TCP headers
2007-03-21 13:05:51 +00:00
kieranm
7294cb080b
* Fix all uses of pbuf_header to check the return value. In some
...
cases just assert if it fails as I'm not sure how to fix them, but
this is no worse than before when they would carry on regardless
of the failure.
2007-03-21 12:55:00 +00:00
kieranm
b422864d5d
sockets.c, igmp.c, igmp.h, memp.h: Fix C++ style comments and
...
comment out missing header include in icmp.c
2007-03-21 12:50:04 +00:00
fbernon
eab3667b61
memp.h, stats.c: Fix stats_display function where memp_names table wasn't synchronized with memp.h
2007-03-20 18:12:06 +00:00
fbernon
713e89cdb2
tcpip.c: Initialize tcpip's mbox, and verify if initialized in tcpip_input, tcpip_ethinput, tcpip_callback, tcpip_apimsg, to fix a init problem with network interfaces. Also fix a compiler warning.
2007-03-20 18:01:40 +00:00
kieranm
b290f0442d
udp.c: Only try and use pbuf_header() to make space for headers if
...
not a ROM or REF pbuf.
2007-03-20 16:58:08 +00:00
fbernon
b035a6196a
Add return types to tcpip_apimsg() and api_msg_post() to check ERR_MEM problems (api_lib.c can be change now).
2007-03-19 20:35:32 +00:00
fbernon
e4cd00b5ea
Remove unimplemented "memp_realloc" function from memp.h.
2007-03-19 20:23:58 +00:00
goldsimon
3bb13829fe
checked in patch #5796 : pbuf_alloc: len field claculation caused memory corruption.
2007-03-11 20:07:37 +00:00
fbernon
1af676385c
Add igmp.h and igmp.c inside tree :
...
src/core/ipv4/igmp.c
src/include/ipv4/lwip/igmp.h
2007-03-11 19:45:32 +00:00
fbernon
a24a170b84
New configuration option LWIP_IGMP to enable IGMP processing. Based on only one filter per all network interfaces. Declare a new function in netif to enable to control the MAC filter (to reduce lwIP traffic processing).
...
Mace Gael for the upper layers, Steve Reynolds for lower ones...
2007-03-11 19:16:38 +00:00
goldsimon
bc4b3764fc
Fixed bug #19251 (missing `const' qualifier in socket functions), to get more compatible to standard POSIX sockets.
2007-03-11 17:57:13 +00:00
fbernon
9b143dd5dc
Based on patch from Dmitry Potapov, bug#19225.
...
Add asserts inside bind, connect and sendto to check input parameters. Remove excessive set_errno() calls after get_socket(), because errno is set inside of get_socket(). Move last sock_set_errno() inside lwip_close.
2007-03-11 16:53:37 +00:00
fbernon
5c65d4733b
Keepalive values can be configured at run time with LWIP_TCP_KEEPALIVE, but don't change this unless you know what you're doing (default are RFC1122 compliant). Note that TCP_KEEPIDLE and TCP_KEEPINTVL have to be set in seconds.
...
Old TCP_KEEPALIVE can always be used, and its only difference with TCP_KEEPIDLE is this last use seconds and not milliseconds with setsockopt.
Some documentation (not perfect, but...):
http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.commtechref/doc/commtrf2/setsockopt.htm
2007-03-11 15:53:43 +00:00
goldsimon
41a84ef1d3
Fixed bug #11400-2: New etharp queueing introduced bug: memp_memory was allocated too small.
2007-03-09 07:15:04 +00:00
fbernon
86cecd6700
Keepalive values can be configured at compile time, but don't change this unless you know what you're doing (default are RFC1122 compliant).
2007-03-08 21:02:39 +00:00
fbernon
fdcb87db19
Implement LWIP_SO_RCVTIMEO configuration option to enable/disable SO_RCVTIMEO on UDP sockets/netconn.
2007-03-08 20:58:46 +00:00
goldsimon
a868832776
Initialize dhcp timers in tcpip_thread (if LWIP_DHCP) to protect the stack from concurrent access.
2007-03-08 10:37:31 +00:00
goldsimon
5eabd4591a
SNMP UDP ports can be configured at compile time
2007-03-08 10:32:29 +00:00
goldsimon
91afefa61a
Reverted pbuf_alloc() to REV 1.82
2007-03-07 15:47:54 +00:00
goldsimon
ea7bdb8e9e
Last change (reduce code size if not used) had a bug...
2007-03-06 19:37:32 +00:00
fbernon
7cda728469
Fix some "little" build problems, and a redundancy call to "lwip_stats.link.recv++;" in low_level_input() & ethernetif_input().
...
If LINK_STATS was defined, tcpip.c couldn't be build.
Even if IP_FRAG or IP_REASSEMBLY were set, ip_frag.c functions are not build.
2007-03-06 19:31:49 +00:00
fbernon
7fd37d4e87
Implement SO_RCVTIMEO on UDP sockets/netconn.
2007-03-06 16:41:02 +00:00
goldsimon
874bfe19d2
Reduce code size: don't include code in those files if IP_FRAG == 0 and IP_REASSEMBLY == 0
2007-03-06 15:27:58 +00:00
fbernon
ed07d481d6
opt.h, ip_frag.h, tcpip.h, tcpip.c, ethernetif.c: add new configuration option named ETHARP_TCPIP_ETHINPUT, which enable the new tcpip_ethinput. Allow to do ARP processing for incoming packets inside tcpip_thread (protecting ARP layer against concurrent access). You can also disable old code using tcp_input with new define ETHARP_TCPIP_INPUT set to 0. Older ports have to use tcpip_ethinput.
2007-03-06 14:18:02 +00:00
goldsimon
7115975212
fixed compiler warning "initialization dircards qualifiers from pointer target type"
2007-03-06 07:28:22 +00:00
fbernon
ddf0982d0f
opt.h, sockets.h: add new configuration options (LWIP_POSIX_SOCKETS_IO_NAMES, ETHARP_TRUST_IP_MAC, review SO_REUSE).
...
Also include directly tcp.h in sockets.h to improve application independancy from ip stack (avoid to include directly in application the "unknown" tcp.h if you need options like TCP_NODELAY and TCP_KEEPALIVE in application.
2007-03-05 14:43:11 +00:00
goldsimon
7b54ddd828
Corrected patch to bug #19168
2007-03-04 17:21:43 +00:00
fbernon
1ffd049833
api_msg.c: Remove some compiler warnings : parameter "pcb" was never referenced.
2007-03-04 16:25:04 +00:00
fbernon
12e0a2ef7d
api_lib.c: Fix "[patch #5764 ] api_lib.c cleanup: after patch #5687 " (from Dmitry Potapov).
...
The api_msg struct stay on the stack (not moved to netconn struct).
2007-03-04 14:49:46 +00:00
goldsimon
9da7afb345
Fixed buf #19168 based on patch by Dmitry Potapov
2007-03-04 12:45:58 +00:00
goldsimon
1f544e087b
Fix BUG#11400 - don't corrupt existing pbuf chain when enqueuing multiple pbufs to a pending ARP request
2007-03-04 12:12:42 +00:00
fbernon
e1b6a4cb21
udp.c: remove obsolete line "static struct udp_pcb *pcb_cache = NULL;"
...
Its is static, and never used in udp.c except udp_init().
2007-03-03 17:00:44 +00:00
goldsimon
bb8522b737
tcpip.c: Moved call to ip_init(), udp_init() and tcp_init() from tcpip_thread() to tcpip_init()
2007-03-03 16:22:38 +00:00
fbernon
e075581d76
no message
2007-03-02 19:35:15 +00:00
kieranm
527d18a526
2007-02-28 Kieran Mansley (based on patch from Simon Goldschmidt)
...
* api_lib.c, tcpip.c, memp.c, memp.h: make API msg structs allocated
on the stack and remove the API msg type from memp
2007-02-28 14:15:43 +00:00
kieranm
5ace5976a1
* pbuf.c: Fix BUG#17645 - ensure pbuf payload pointer is not moved
...
outside the region of the pbuf by pbuf_header()
2007-02-28 13:45:35 +00:00
kieranm
c52ac01fbc
sockets.c: Fix BUG#19161 - ensure milliseconds timeout is non-zero
...
when supplied timeout is also non-zero
2007-02-28 12:52:44 +00:00
jifl
f4f2bfe379
Ensure the size of each pbuf in the pool meets alignment constraints
2007-02-27 16:50:05 +00:00
jifl
75beb3bd35
Fix incorrect comparison in get_socket().
...
Spotted by Frederic Bernon.
2007-02-26 20:16:38 +00:00
jifl
1d22294974
* sockets.h, sockets.c: Move socket initialization to new
...
lwip_socket_init() function.
2007-02-26 20:01:04 +00:00
jifl
de665f7cf9
2007-02-26 Jonathan Larmour (based on patch from Simon Goldschmidt)
...
* api_lib.c: Use memcpy in netbuf_copy_partial.
2007-02-26 19:49:49 +00:00
christiaans
205520c620
Fix the fix for GETSHORT and GETLONG bug #19052 , needs to be tested by some PPP user.
2007-02-14 08:08:35 +00:00
likewise
3551b2a2a1
Release 1.2.0.
2006-12-05 10:09:17 +00:00
christiaans
11f2e8d1a6
Added MEM_LIBC_MALLOC option as workaround for failing mem_malloc().
2006-12-04 08:24:25 +00:00
christiaans
a91374a916
Added MEM_LIBC_MALLOC option as workaround for failing mem_malloc().
2006-12-01 15:38:56 +00:00
christiaans
36e6c26545
Included xid to some DEBUGFs.
2006-12-01 13:52:07 +00:00
christiaans
9a68f74857
Fixed false triggers of request_timeout.
2006-11-30 16:25:43 +00:00
christiaans
b96c15890c
Disabled alignment fix. Stepping back, #17922 fix fails on my target, DHCP won't start, I don't understand.
2006-11-28 13:29:05 +00:00
christiaans
5a6b26d69e
In netif_add() fixed clearing of ip_addr, netmask, gw and flags.
2006-11-28 13:12:15 +00:00
christiaans
a3d912a801
Fixed uninitalized variable warnings (using gcc 4.1.1)
2006-11-27 15:37:44 +00:00
christiaans
b4f1deaa46
Accepted patch #5493 IP frag/reass config item tweak.
2006-11-27 14:48:21 +00:00
christiaans
976bce4c7f
Changed heap to use naturally aligned start address and added near-fit case to #17922 fix.
2006-11-27 14:23:24 +00:00
christiaans
77e0f77850
Added snmp_send_trap() parameter, caller must pass enterprise id for enterprise secific traps.
2006-11-27 08:43:10 +00:00
christiaans
a885cbf8ed
Removed mem_dump() reference.
2006-11-22 09:56:39 +00:00
christiaans
b6af5d9bda
Initial attempt at fixing bug #17922 , calling for reviewers. This seems to work for me, more or less, but it looks like it breaks TCP.
2006-11-22 08:27:38 +00:00
christiaans
b72677c3ce
Added missing NULL return checks for snmp_mib_lrn_alloc() and trimmed whitespace at line ends.
2006-11-17 11:07:25 +00:00
christiaans
5e44122552
Trimmed whitespace at line ends.
2006-11-17 11:05:26 +00:00
christiaans
d4b6471d39
Replaced tabs with space.
2006-11-17 10:51:13 +00:00
christiaans
fe1bea9538
Added netif_set_up and call protection for NULL function pointers. Bug #16602 and #17777 .
2006-11-02 12:25:57 +00:00
christiaans
2f41e2b0ec
Made ip_id static again, fixing bug #18065 . This is required when outputting IP fragments.
2006-11-01 09:33:14 +00:00
christiaans
bd86f95512
Cold case #9191 fixes for NC30 compiler for the M16 mcu, reported by Bjorn Sundman.
2006-10-25 07:51:17 +00:00
christiaans
5fcf6418cf
Added warning about using mem_malloc in sys_arch.c, cold case bug #1913 .
2006-10-24 09:10:26 +00:00
christiaans
4e583dab2e
Again, fixed decoding of negative integers in snmp_asn1_dec_s32t(), tnx to though testing by Sander.
2006-10-13 13:45:06 +00:00
christiaans
bc182cab7c
Removed EXPERIMENTAL status.
2006-10-13 12:00:35 +00:00
christiaans
f6f6f11838
Fixed decoding of negative integers in snmp_asn1_dec_s32t(), removed EXPERIMENTAL status.
2006-10-13 11:59:45 +00:00
christiaans
b5f4672155
Partially accepted patch #5449 for ANSI C compatibility / build fixes. Fixed bug #17574 corrected UDP-Lite protocol identifier.
2006-10-11 12:04:04 +00:00
christiaans
729da3c873
Fixed Nagle algorithm as reported by Bob Grice.
2006-10-10 07:48:27 +00:00
christiaans
8a31c6f807
Only mentioning SNMP development additions instead of changes, since we're in pre-alpha.
2006-10-06 10:44:24 +00:00
christiaans
2539b5cf61
Fixed up mib_external_node support, snmpwalk works for external objects.
2006-10-06 08:41:24 +00:00
christiaans
f7881e58bb
Improved message parse robustness. Rejecting 'error requests'. Removed invalid genError return on varbindlist parse error, changed badValue into noSuchName error for non-writeable objects.
2006-10-04 09:15:23 +00:00
christiaans
25ed4e9d16
Fixed clearing of head and tail pointers in snmp_mib_node_delete().
2006-10-03 10:41:48 +00:00
christiaans
7eddf93b36
Added missing snmp_delete_arpidx_tree() in find_entry where entry state was set to ETHARP_STATE_EMPTY.
2006-10-03 10:39:37 +00:00
christiaans
cfb082a20b
Added external mibnode panic closure functions, tobe called for error responses.
2006-10-02 10:13:04 +00:00
christiaans
e440590c37
Fixed snmp_mib_node_insert() to return 2, for node present (not inserted). Also solves invalid rootnode count for this case.
2006-09-29 13:34:38 +00:00
christiaans
c851a19ab2
Added en->get_value_a() call for zero size get_value replies, e.g. for closing external transactions.
2006-09-28 11:46:24 +00:00
christiaans
c2f9d7dee0
Fixed encoding of object sub identifiers with trailing zero.
2006-09-28 11:43:49 +00:00
christiaans
473e567047
Added en->set_value_a() call for closing external transactions.
2006-09-27 15:11:30 +00:00
christiaans
64dab92c6b
Redesign of snmp_msg_event() fsm, added SNMP SET to fsm.
2006-09-27 07:25:16 +00:00
christiaans
f576755b13
Added snmp_msg_event_loop() prototype.
2006-09-22 08:09:08 +00:00
christiaans
d0f279ece4
Set TODO_SNMP_MSG_EVENT to 1. Moved some more code from snmp_recv() to snmp_event_service().
2006-09-22 08:05:17 +00:00
christiaans
a5532ffd4d
Added one strategic LWIP_DEBUGF to snmp_send_response().
2006-09-22 08:03:16 +00:00
christiaans
cb412134dd
Added newlines to LWIP_DEBUGFs.
2006-09-22 08:00:56 +00:00
christiaans
d079aae0e0
Fixed NULL dereferencing for zero length raw data.
2006-09-22 07:59:44 +00:00
christiaans
eabfb233b8
Moved SNMP_CONCURRENT_REQUESTS to opt.h, babysteps for external MIB nodes.
2006-09-20 13:33:50 +00:00
christiaans
960e724ad3
Improved mib node struct for external object access and moved get_object_def() calls to the message processing bit.
2006-09-14 15:08:54 +00:00
christiaans
82c46f957a
Fixed double iterator bug in send_trap(), multiple trap destinations work ok now.
2006-09-12 12:46:36 +00:00
christiaans
320ea29861
Added some lines for SET command.
2006-09-12 10:03:46 +00:00
christiaans
c5e99ada63
Fixed sysObjectID length to copy private IDs with unkown lengths properly.
2006-09-08 09:22:28 +00:00
christiaans
c5bd3f5e3b
Documented TRAP destination setup.
2006-09-07 14:46:41 +00:00
christiaans
a88d054d05
Improved TRAP interfacing. Varbinds maybe allocated at (external) trap source as wel. Added trap destination settings.
2006-09-07 14:17:03 +00:00
christiaans
6576802287
Fixed compilation for LWIP_SNMP 0.
2006-09-07 07:39:49 +00:00
christiaans
693316c83f
Corrected snmp_delete_arpidx_tree() to be called in the expired state, not only maxage.
2006-09-06 13:01:47 +00:00
christiaans
41ff80e5d3
First getnext succes, values are returned insead of NULLs, empty tables are skipped. Limitation: a single varbind per request, so 'snmptable' will fail.
2006-09-06 10:14:07 +00:00
christiaans
56c5fdbeaf
Added newlines in debug output, small optimalisations, more work on 'getnext', fixed 'get' on udp table.
2006-09-04 09:22:48 +00:00
christiaans
130d39cc03
Changed index structs to mib_list_node structs to place the table index trees directly in the mib tree.
2006-09-01 07:14:50 +00:00
christiaans
1485edf8e1
Added index tree node structs and functions, e.g. to be used for ARP table indexes.
2006-08-29 11:28:28 +00:00
christiaans
514ee867a6
Pacified GCC warnings and elaborated getnext to work on scalars, tables don't work yet.
2006-08-21 11:52:58 +00:00
christiaans
3cc7a406f4
Pacified GCC warnings and fixed double mem_free() while returning nosuchname err.
2006-08-21 11:51:19 +00:00
christiaans
c3f82acf7a
Pacified GCC warnings.
2006-08-21 11:50:03 +00:00
christiaans
cdb7557d88
Added SNMP counters.
2006-08-18 10:18:42 +00:00
christiaans
2dcbd016e6
Added tree expansion func protos for getnext.
2006-08-17 14:16:30 +00:00
christiaans
7d1728f05a
Started with getnext and ensure zero length identifiers are accepted.
2006-08-17 14:14:58 +00:00
christiaans
4b5c14470a
Fixed htons into htonl for trap desctination ip.
2006-08-17 14:11:45 +00:00
christiaans
f198b11f27
Accepting zero length identifiers e.g. for getnext operation. Uncommon but valid.
2006-08-17 14:09:57 +00:00
christiaans
7d16087789
Fixed bug #17200 , added check for broadcast destinations for PCBs bound to a unicast address.
2006-08-17 09:40:15 +00:00
christiaans
d734cd986c
Moved noleafs_get_object_def() and noleafs_get_value() protos from mib2.c to snmp_structs.h
2006-08-15 07:28:43 +00:00
christiaans
8559f3e583
MIB-2 object values near to completion, just committing for keeping the flame alive.
2006-08-11 14:16:36 +00:00
christiaans
d0b81d3b20
Corrected comment typo.
2006-08-11 14:13:39 +00:00
christiaans
43bf9a8e46
Added SNMP counters, moved some defines.
2006-08-11 14:12:05 +00:00
christiaans
19f57bf810
Exported udp_pcbs in udp.h (for SNMP agent).
2006-08-11 14:09:48 +00:00
christiaans
469012b544
Added etharp_find_addr(), finds eth/IP address pair by interface ptr and IP address.
2006-08-08 15:10:42 +00:00
christiaans
9b11c4670d
Corrected returned object id for interfaces.ifTable.ifEntry.ifSpecific to zeroDotZero (0.0).
2006-08-07 11:35:32 +00:00
christiaans
7eeaf8eaa5
Corrected object identifier codec for object ids not starting with .iso.dod (e.g. zeroDotZero (0.0)).
2006-08-07 11:32:44 +00:00
christiaans
a82e02ef15
Partial fix for bug #15926 , flushing TCP output in do_close().
2006-08-07 10:00:44 +00:00
christiaans
d8922d0410
Added minimalistic SNMP GET functionality.
2006-07-14 12:54:38 +00:00
christiaans
5c628d2a61
Added netif SNMP init.
2006-07-14 11:17:00 +00:00
christiaans
54bb20b486
Added SNMP statistics to struct netif and changed SNMP macro glue.
2006-07-14 09:58:02 +00:00
christiaans
57a6eaae7b
Added SNMP debug options.
2006-07-10 12:41:25 +00:00
christiaans
7a5cb21056
Fixed (experi)mental typo.
2006-07-07 11:33:36 +00:00
christiaans
333c3f18c0
Initial commit. Expirimental code, please note this is not yet fully functional.
2006-07-07 09:49:31 +00:00
christiaans
6b2979027e
Add preliminairy documentation for the SNMP agent.
2006-07-07 08:03:04 +00:00
christiaans
12f9adbdd3
Added ip_frag_init() prototype.
2006-07-04 08:24:55 +00:00
christiaans
a5cab96ff3
Added ip_frag_init() and some LWIP_DEBUGFs.
2006-07-04 08:24:17 +00:00
christiaans
dd060ceed3
Added ip_frag_init() to ip_init().
2006-07-04 08:23:33 +00:00
christiaans
c89b085e5b
Mentioned some recent cold case fixes.
2006-06-27 10:39:06 +00:00
christiaans
63140ca7f8
Applied patch for cold case bug #11135 .
2006-06-27 10:33:52 +00:00
christiaans
cbe83f32b6
Honoured Pedro Alves namespace request, following lwip style struct naming.
2006-06-22 11:22:47 +00:00
christiaans
3bffb0a181
Added struct obj_id and a few system group access funcs.
2006-06-22 09:33:10 +00:00
christiaans
09dc9c89a8
Added mib-2 snmp group statistics prototypes.
2006-06-19 13:04:11 +00:00
christiaans
09707a3e81
Prepared some SNMP options.
2006-06-19 13:03:09 +00:00
christiaans
d821277430
Fixed cold case bug #1748 , printing of mem_size_t and u16_t statistics.
2006-06-15 07:10:04 +00:00
christiaans
1f01634029
Applied patch #5146 to handle allocation failures in accept() by Kevin Lawson.
2006-06-14 08:02:35 +00:00
curtmcd
dd314e1bdf
Fix incorrect calculation of dhcp->dns_count.
...
Comment out unused static dhcp_get_option_short() to avoid warning.
2006-06-08 00:16:56 +00:00
curtmcd
1dae102359
Fix debug print, remove reference to TCP_COARSE_TIMEOUT
2006-05-31 21:23:26 +00:00
curtmcd
b306594cad
Remove unused mem_reallocm
2006-05-31 21:23:01 +00:00
curtmcd
b60b7cf8fe
Use isprint() instead of isascii() as it's more common
...
Change return type of inet_aton from s8_t to int (standard)
Touch up comments and white space
2006-05-30 19:09:41 +00:00
curtmcd
0148128881
Fix gcc warning per discussion on lwip-users 2006.04.25: dereferencing
...
type-punned pointer will break strict-aliasing rules. Use memcpy
instead of structure copy; code is not in critical path.
2006-05-26 19:05:41 +00:00
curtmcd
076a884651
Add comment about purpose of struct ip_addr2.
...
Improve white space formatting, add parens in IP4_ADDR().
2006-05-26 18:52:27 +00:00
christiaans
7026bbcdd4
Removed conn->sem creation and destruction from netconn_write() and added sys_sem_new to netconn_new_*
2006-05-26 07:39:39 +00:00
curtmcd
6158aa684b
udp_input() operated by removing the IP and UDP headers, putting back
...
the UDP header, then re-removing it. However, pbuf_header() can't add
back the UDP header on pbufs of type PBUF_REF, so these would all get
dropped for bad checksum. This change addresses the problem and
simplifies things by stripping each header just once.
2006-05-26 02:40:54 +00:00
curtmcd
047e3455f7
Improve formatting by fixing wrong indents and lines too long.
2006-05-26 01:36:16 +00:00
christiaans
9ca9649c1b
Disabled ARP table update on ingress IP packets.
2006-05-05 13:34:13 +00:00
likewise
9a23e9839b
Initial commit of FILES in doc/
2006-04-28 11:45:00 +00:00
christiaans
7fc966dced
Optimized for speed and size. Test against zero for both the inverted and non-inverted address. (old and new-style broadcasts)
2006-04-24 07:26:06 +00:00
curtmcd
680afa4229
memp_memory could be unaligned, causing one buffer in the memp pool to
...
be unaligned, resulting in nasty random data corruption on some CPUs.
Also, clean up the code a little and save a few bytes.
2006-04-12 21:07:44 +00:00
likewise
313743c833
Fix for out-of-sequence FIN handling, patch by Oleg Tychev.
2006-04-08 00:36:25 +00:00
likewise
6cb19d7e34
Dangling inseg.p pointer fix by Pedro Alves.
2006-04-08 00:13:49 +00:00
likewise
ef0575a26d
Remained indictator where new changes should go.
2006-04-07 22:31:09 +00:00
christiaans
c9db715bae
addr->addr test size and speed optimalisation (helping a dumb compiler)
2006-04-04 07:21:54 +00:00
christiaans
ed1e3899af
Added optimalization hints.
2006-03-31 09:26:42 +00:00
christiaans
7446e31fce
Address copy loops optimized for speed.
2006-03-29 13:16:40 +00:00
christiaans
94abf9d935
Added LWIP_PLATFORM_BYTESWAP optimalisation flag and macro glue.
2006-03-29 10:15:43 +00:00
christiaans
d9b4ab1658
Pbuf flag test size and speed optimalisation (helping a dumb compiler).
2006-03-28 15:06:33 +00:00
christiaans
39f8538776
Fixed compilation warning on sizeof(), reported by Beach at 20060320.
2006-03-21 08:28:15 +00:00
likewise
fef5c4c9a0
Added upcoming 1.1.1 release to Changelog.
2006-03-15 11:20:46 +00:00
christiaans
61dc2e7dd5
Added pbuf_alloc() return value checks in ip_frag().
2006-03-03 11:25:36 +00:00
christiaans
11a820458f
Increased ip_reassbitmap size with 1, added assertions to catch boundary cases.
...
Beautified indentation again.
2006-03-02 15:45:19 +00:00
likewise
9e7418090d
pbuf alignment fix.
2006-03-01 16:57:43 +00:00
likewise
0b3b713123
Removed 'even sndbuf' fix in TCP, this fix was a ugly hack for the incomplete checksum routine that does not work now that the checksum routine is fixed.
2006-03-01 16:53:41 +00:00
christiaans
00f8cf57cd
Added IP reassembly timer.
2006-03-01 14:51:58 +00:00
christiaans
c55c375b0a
Removed tabs, default LWIP_HAVE_LOOPIF to 0 to slim footprint.
2006-03-01 10:41:23 +00:00
likewise
db76ca248b
2006-02-27 Merged patch by Curt McDowell
...
pbuf.c: Fix alignment; pbuf_init() would not work unless pbuf_pool_memory[] is properly aligned.
2006-02-27 14:11:19 +00:00
christiaans
182e1909b2
Patch from Curt McDowell fixes err_to_errno macro.
2006-02-13 08:14:11 +00:00
christiaans
3aea7bc053
Removed timer dependency on sys.c (raw-API). Beautified indentation.
2006-02-13 08:12:07 +00:00
christiaans
39c35732de
Code style fix, C++ into C comments.
2006-02-13 08:09:01 +00:00
christiaans
6c8850698d
Small optimalization for udp_input().
2006-01-02 12:06:02 +00:00
christiaans
818a726679
History update and listing PPP problems as todo.
2005-12-20 11:52:44 +00:00
likewise
f8663a7129
Remove PCBs which stay in LAST_ACK state too long.
2005-12-20 11:03:18 +00:00
christiaans
7571fe5d13
Fixed unused variable warning.
2005-12-15 08:27:30 +00:00
christiaans
60dc1c22f7
Disabled the added summing routine to preserve code space, fixed some comments.
2005-12-15 08:26:00 +00:00
likewise
02b575e9e4
Added Curt McDowell's platform-independent optimized checksum routine.
2005-12-14 22:51:35 +00:00
likewise
6facaf8f05
Trailing dangling byte in checksum should be considered MSB.
2005-12-14 22:29:03 +00:00
likewise
319a972e75
Duplicate FIN ACK race condition fix by Kelvin Lawson.
2005-12-14 21:58:14 +00:00
christiaans
61cdbb30a6
Added some more fixes to the lwip_standard_chksum() comments.
2005-12-14 12:55:12 +00:00
likewise
5088a38b9f
README now points to savannah.txt instead of duplicating its nfo.
2005-12-12 09:35:34 +00:00
likewise
f5c6a6d075
Typo fix: tens of kilobytes instead of tenths of kilobytes.
2005-12-12 09:33:33 +00:00
likewise
b5340dd739
Updated CVS server host names and documentation about pserver anonymous, SSH non-anonymous access to it.
2005-12-12 09:32:47 +00:00
likewise
e1dcfcbb76
Updated comment on optimization and aim of this generic algorithm.
2005-12-12 09:32:05 +00:00
christiaans
43d448e73f
Fixed lwip_standard_chksum() for unaligned memory access. Verified to work on c16x and BSD on P4.
2005-12-09 08:59:08 +00:00
christiaans
33fbb06604
Fixed void ptr address increment bug reported by Bertrik Sikken.
2005-11-25 12:23:03 +00:00
christiaans
e1b215aa73
Introduced cc.h formatters and removed SO_REUSE from transport layers.
2005-11-25 12:03:38 +00:00
christiaans
6a17ef925d
Described initialization procedure.
2005-11-02 08:08:06 +00:00
christiaans
7599985a0a
Some build fixes for OpenBSD.
2005-10-10 07:27:31 +00:00
likewise
07c0bc288a
Mention of multiple pbuf fix in slipif and unaligned access fix in checksumming.
2005-07-17 15:33:16 +00:00
likewise
f05d392920
Unaligned 16-bit access fix for the standard checksum routine by Peter Jolasson.
2005-07-17 15:30:27 +00:00
likewise
e11d57c883
Fixes bug #13807 : slipif_input() garbles large (i.e. multiple pbufs) inbound datagrams.
2005-07-17 15:13:34 +00:00
likewise
baf377679a
2005-06-08 Leon Woestenberg <leon.woestenberg@gmx.net>
...
* tcp_in.c: Send reset on unexpected ACK in two cases. Fix submitted by olaf.peters@technolution.
2005-06-08 18:57:05 +00:00
likewise
f9355136d8
2005-06-08 Leon Woestenberg <leon.woestenberg@gmx.net>
...
* udp.c: Fixed memory leak; when ip_route() failed, a possibly allocated q was never de-allocated. Fixed by called ip_route() before allocating q.
2005-06-08 18:35:00 +00:00
likewise
bb76e69567
Mentioned unaligned access fix.
2005-02-04 13:45:55 +00:00
likewise
533fc217d4
4 February 2004, Leon Woestenberg <leon.woestenberg@gmx.net>
...
tcp_in.c: Applied fix patch for bug #2679 .
tcp_out.c: Applied fix patch for bug #2679 .
http://savannah.nongnu.org/bugs/?func=detailitem&item_id=2679
2005-02-04 13:43:13 +00:00
likewise
ac5c6695c1
4 February 2004, Leon Woestenberg <leon.woestenberg@gmx.net>
...
tcp_out.c: queue was not initialized to NULL, but was referenced in memerr cleanup code.
2005-02-04 13:31:29 +00:00
likewise
3160488352
queue was referenced before initialization in first goto memerr branch code. Replaced goto branch by its minimal equivalent error handling code.
2005-02-04 13:28:50 +00:00
likewise
8579e4144f
More robust DHCP ARP reply checking.
2005-01-24 23:02:29 +00:00
likewise
6880fa62f8
Added some missing string.h includes.
2005-01-24 21:05:47 +00:00
likewise
2cf4287197
Mention of missing semicolon, and pcb->recv() called even when NULL.
2005-01-04 12:22:44 +00:00
likewise
86c774443c
Fixed missing semicolon in LWIP_DEBUG statement.
2005-01-04 12:20:25 +00:00
likewise
3b715f4602
3 January 2004, Leon Woestenberg <leon.woestenberg@gmx>
...
udp.c: pcb->recv() callback was called even when it was NULL.
2005-01-03 17:54:21 +00:00
likewise
ec0c2bea6e
Changed behaviour into implementation.
2005-01-01 18:06:21 +00:00
likewise
1b3682cfa9
Updated CHANGELOG.
2004-12-30 01:28:16 +00:00
likewise
2a9ee35411
Removed assertion that always equaled true.
2004-12-27 14:50:03 +00:00
likewise
0e0a7d82de
Re-enabled ARP packet queueing. (Now that multi-packet queueing is disabled in etharp.c).
2004-12-27 14:45:12 +00:00
likewise
dfa96852f0
Disabled queueing more than 1 packet on a ARP entry, as I suspect this clashes with the TCP segment queueing.
2004-12-27 14:44:19 +00:00
likewise
a549ec0382
Added inline source documentation.
2004-12-27 14:42:02 +00:00
likewise
c61f01b206
tcp_write(): optimize order of valid states checks, most common first.
...
added assertion: when the queues are NULL, queuelen must be zero.
remove ACK flags from a PCB, only when we could succesfully sent
an empty ACK packet.
2004-12-26 01:36:37 +00:00
likewise
15257f4524
Update comment on ETHARP_QUEUEING. Defaulted to being disabled.
2004-12-24 21:58:53 +00:00
christiaans
089378ef87
christiaans: cosmetic change debug formatters as requested by Tom.
2004-12-07 08:16:27 +00:00
christiaans
805f495d84
christiaans: Fixed SO_REUSE default to 0. Actually we should fix udp so it won't depend on the socket layer.
2004-12-06 11:50:53 +00:00
likewise
928dd94ba6
etharp.c: Corrected DHCP_DOES_ARP_CHECK behaviour.
2004-11-30 17:22:18 +00:00
likewise
b429918b32
etharp.c: re-arranged code in find_entry(), supposedly making it more readable for all cases.
2004-11-29 11:01:20 +00:00
likewise
62a37a4876
Updates the FILES contents to better reflect the current state.
2004-11-29 09:39:51 +00:00
likewise
0e96ece6c6
Surround definition of tcp_timer_needed with #if !NO_SYS #endif. (see lwip-users 15-11-2004).
2004-11-28 18:23:00 +00:00
likewise
f1eca32536
Mentioned ARP race fix.
2004-11-28 18:06:47 +00:00
likewise
ed59dc1ada
Prevented a race condition between a new ARP request and the ARP timer.
...
Timeouts stay the same (halved the ARP timer, doubled the counts), but
ETHARP_MAX_PENDING should be at least 2 to prevent it from reaching 0 right away,
giving too little time for any ARP responses to be noted.
2004-11-28 18:00:20 +00:00
likewise
a5cd3fcafd
Added a missing "not" in the comment, the code was correct.
2004-11-25 14:04:45 +00:00
likewise
f3def542ee
Compile dammit
2004-11-25 14:03:31 +00:00
likewise
aa249922df
Removed redundant closing bracket.
2004-11-25 13:59:06 +00:00
likewise
37a0c57bed
2004-11-25 Leon Woestenberg <leon.woestenberg@gmx.net>
...
* ip.c: Exploit the fact that ip_addr_isbroadcast() now checks that the
given IP address actually belongs to the network of the given interface.
2004-11-25 13:57:05 +00:00
likewise
90b7e68b4e
Removed the Smurf.
2004-11-25 13:52:34 +00:00
likewise
1a0c497007
Mentioned Kieran's and my changes - Leon.
2004-11-25 13:33:57 +00:00
likewise
fd49ee3c8d
2004-11-25 Leon Woestenberg <leon.woestenberg@gmx.net>
...
* ipv4/ip_addr.h: Renamed ip_addr_maskcmp() to _netcmp() as we are
comparing network addresses (identifiers), not the network masks
themselves.
* ipv4/ip_addr.c: ip_addr_isbroadcast() now checks that the given
IP address actually belongs to the network of the given interface.
2004-11-25 13:33:07 +00:00
likewise
3488a5c3c4
2004-11-25 Leon Woestenberg <leon.woestenberg@gmx.net>
...
* etharp.c: ETHARP_CREATE is renamed to ETHARP_TRY_HARD.
Do not try hard to insert arbitrary packet's source address,
etharp_ip_input() now calls etharp_update() without ETHARP_TRY_HARD.
etharp_query() now always DOES call ETHARP_TRY_HARD so that users
querying an address will see it appear in the cache (DHCP could
suffer from this when a server invalidly gave an in-use address.)
2004-11-25 13:32:31 +00:00
likewise
ae4955f59e
Replaced erronous LWIP_ERRORF with LWIP_DEBUGF
2004-11-25 11:23:37 +00:00
likewise
fab107a9df
DECLINE message was unicast instead of broadcast
2004-11-25 11:10:53 +00:00
kieranm
bb87d19e84
Kieran Mansley - kjm25@cam.ac.uk - 24th Nov 2004
...
* Increase pcb->snd_buf by 1 when an ACK is received in SYN_SENT state to ensure correct operation
2004-11-24 17:05:41 +00:00
kieranm
4e309b7992
Kieran Mansley - kjm25@cam.ac.uk - 24th Nov 2004
...
* Changed pcb->rttest from u16_t to u32_t - comparisons with tcp_ticks (which is u32_t) were failing after 9 hours of operation
2004-11-24 17:04:34 +00:00
kieranm
64aa4c716d
Kieran Mansley - kjm25@cam.ac.uk - 24th Nov 2004
...
* Increased argument checking at start of pbuf_queue() and made resulting errors more verbose
2004-11-24 17:03:03 +00:00
jani
6b0852a21f
reduce msleep interval from 250 to 1 ms in ppp
2004-11-09 13:03:32 +00:00
jani
8afd3e882e
#if directive style fix
2004-11-09 11:44:06 +00:00
likewise
791fa28817
Removed static declaration of dhcp_release().
2004-11-04 19:19:29 +00:00
christiaans
3fab752640
Removed struct netif; forward decl. is already included from ip_addr.h.
...
Hit me if it breaks exsisting code.
2004-10-29 14:57:38 +00:00
christiaans
67dd939d83
Match update_arp_entry() to prototype.
2004-10-28 08:21:33 +00:00
likewise
ec9b447be1
17th October 2004 Leon Woestenberg <leon.woestenberg@gmx.net>
...
rawapi.txt: Explicitly name full nomenclature for two different API's.
2004-10-17 21:28:25 +00:00
likewise
99e3fe9ae1
17th October 2004 Leon Woestenberg <leon.woestenberg@gmx.net>
...
ethernetif.c: Fix lwip/stats.h support, reported by Andrew McGeachie.
2004-10-17 18:13:18 +00:00
likewise
eb99d21022
Mentioned adapted TCP behaviour; send ACK even if one was pending, iff rcv_wnd is above threshold.
2004-10-16 15:12:56 +00:00
likewise
793cbcdff8
Mentioned adapted TCP behaviour; send ACK even if one was pending, iff rcv_wnd is above threshold.
2004-10-16 15:07:26 +00:00
kieranm
751557bcbf
16th October 2004 - Kieran Mansley - kjm25@cam.ac.uk
...
- Add code to tcp_recved() to send an ACK (window update)
immediately, even if one is already pending, if the rcv_wnd is above a
threshold (currently TCP_WND/2)
- This avoids waiting for a timer to expire to send a delayed ACK in
order to open the window if the stack is only receiving data.
2004-10-16 12:57:52 +00:00
likewise
252dcd8626
Reverted back the TCP_BETWEEN macro. It does not work on all archs.
2004-10-14 12:24:52 +00:00
likewise
0ad7ea16d2
Bring interface up/down with netif_set_up/down(). Fixes bug 10547.
2004-10-14 11:57:53 +00:00
likewise
79842d4fdd
Mentioned TCP retransmit time-out changes contributed by Sam Jansen, committed Kieran Mansley.
2004-10-13 21:40:51 +00:00
kieranm
1e1f5d5462
Kieran Mansley - kjm25@cam.ac.uk - 20th September 2004
...
* Change the return type of ethernetif_init from void to err_t to avoid confusing porters.
2004-09-20 17:00:31 +00:00
kieranm
19d8ffe177
Kieran Mansley - kjm25@cam.ac.uk - 20th September 2004
...
* Check if the pbuf is NULL before freeing it, when draining the mbox as part of netconn_delete.
2004-09-20 16:58:01 +00:00
kieranm
4cb8192c1d
Kieran Mansley - kjm25@cam.ac.uk - 20th September 2004
...
* Corrected "out by one" error on one of the TCP_SEQ_BETWEEN macro calls introduced recently
2004-09-20 16:53:48 +00:00
kieranm
2ed5bc5195
Kieran Mansley - kjm25@cam.ac.uk - 12th September 2004
...
Applied patch from Sam Jansen as detailed in
http://lists.gnu.org/archive/html/lwip-users/2004-07/msg00106.html
to correctly handle retransmission after a retransmission timeout
2004-09-12 16:34:06 +00:00
kieranm
fae1397468
Rename lwip_chksum and add LWIP_CHKSUM macro so that ports can "override" the standard implementation with one of their own.
2004-09-12 16:17:58 +00:00
kieranm
e871548772
Fixed typo (missing "{") in previous checkin
2004-09-12 16:03:54 +00:00
kieranm
a3d27e30e0
Add TCP_SEQ_BETWEEN macro for comparing a range of sequence numbers
2004-09-12 15:56:12 +00:00
likewise
89abd1f58e
Do no longer try to free pbuf when TCP_EVENT_RECV() is called without a callback handler, and without packet.
...
The standard HTTP server failed on this (as reported by three users).
2004-09-08 22:33:46 +00:00
softins
fae709d9ea
Added my July and August updates.
2004-08-20 16:56:20 +00:00
softins
36df79b207
Make sure the first pbuf queued on an ARP entry is properly ref counted.
2004-08-20 09:17:52 +00:00
likewise
b9ebcd7738
Ingress TCP keep-alive with garbage byte support.
2004-08-17 09:32:31 +00:00
likewise
515fb5a3fd
First packet on queue generated assertion failure. Reported by David Haas on lwip-users on Friday 13th.
2004-08-17 08:39:43 +00:00
likewise
785f90d9fa
Updated the use of Savannah docs (merged from STABLE-0_7 branch).
2004-08-11 00:15:03 +00:00
likewise
22ac311496
Support for PACK_STRUCT_USE_INCLUDES was broken.
...
Added one missing PACK_STRUCT_END.
2004-08-10 14:50:44 +00:00
likewise
0e31ca73c0
Have PBUF_LINK_HLEN default to 14 bytes (for Ethernet).
2004-08-10 14:41:12 +00:00
likewise
98ba558fa5
Mentioned 1.0.0.
2004-07-29 11:28:27 +00:00
softins
c4ef1e5c19
Add (int) cast in LWIP_DEBUGF() to avoid compiler warnings about comparison.
2004-07-27 16:19:16 +00:00
softins
1fa0d66f15
Stop compiler complaining of empty if statement when LWIP_DEBUGF() empty.
2004-07-27 16:08:26 +00:00
softins
4680307a34
Stop compiler complaining of empty if statement when LWIP_DEBUGF() empty.
...
Close an unclosed comment.
2004-07-27 16:08:05 +00:00
softins
42a6fa972d
Corrected IPH_TOS() macro: returns a byte, so doesn't need htons().
2004-07-27 14:46:24 +00:00
softins
1da6c35a6d
Added a couple of casts to quiet the compiler.
...
No need to test isascii(c) before isdigit(c) or isxdigit(c).
2004-07-27 14:43:58 +00:00
likewise
7c427a4dce
Made some comments more explicit.
2004-07-25 23:41:01 +00:00
likewise
c2abae538b
pbuf_free() assert triggered by NULLified inseg.p. Reported by Karl Jeacle on 25-7-2004 on lwip-users.
2004-07-25 23:17:07 +00:00
kieranm
eb69032773
Kieran Mansley - kjm25@cam.ac.uk - 23rd July 2004
...
Now handle CLOSED state in tcp_close() explicitely, and free the pcb.
This is for the case that a pcb has been allocated but never used (so
is in the default "CLOSED" state) and needs to be freed.
2004-07-23 13:07:00 +00:00
likewise
fb5452910f
I hate it when it takes twice to fix a typo
2004-07-22 22:10:17 +00:00
likewise
a6d37fcb25
Removed copy-paste errors.
2004-07-22 22:07:00 +00:00
likewise
fb18e1f036
Removed obsolete debug define.
2004-07-22 21:56:31 +00:00
likewise
786cbee510
Support for learning DNS servers through DHCP.
2004-07-22 21:56:09 +00:00
softins
a4f5673ff3
Small corrections to some debugging statements, to pacify compiler.
2004-07-22 08:06:00 +00:00
softins
1121f2b7f7
Made data types consistent in inet_ntoa().
...
Added casts for return values of checksum routines, to pacify compiler.
2004-07-22 08:03:02 +00:00
softins
4d30218eb2
Updated low_level_output() to match prototype for netif->linkoutput
...
and changed low_level_input() similarly for consistency.
2004-07-21 09:31:03 +00:00
softins
d7699ca81d
Changed debug statements to use the tidier ip4_addrN() macros.
2004-07-21 09:23:11 +00:00
softins
afc3bc6b65
Added trivial (int) cast to keep compiler happier.
2004-07-21 08:57:05 +00:00
softins
6f066fca82
Changed recv_raw() from int to u8_t, to match prototype of raw_recv() in raw.h
...
and so avoid compiler error.
2004-07-21 08:55:26 +00:00
softins
5e24ae49a6
Removed spurious semicolon and added missing end-of-comment.
2004-07-21 08:36:15 +00:00
likewise
bf74ffe974
Outgoing packets caused ARP requests even when the destination IP was already cached.
...
Matched documentation.
2004-07-20 23:18:09 +00:00
likewise
2074861b57
Outgoing packets caused ARP requests even when the destination IP was already cached.
2004-07-20 23:07:54 +00:00
likewise
58b64d42f1
Additional fix for TCP retransmit fix (as discussed by Sam Jansen en Kieran Mansley on lwip-devel, July 13 2004).
2004-07-14 23:21:53 +00:00
likewise
a6ab0405ea
Disabled some code by #if 0 #endif rather than /* */.
2004-07-14 23:19:08 +00:00
kieranm
8273b54108
Kieran Mansley - 14th July 2004
...
* Only move a single segment from the unacked queue to the unsent queue when performing a retransmit
2004-07-14 09:48:27 +00:00
kieranm
c356f560e8
Kieran Mansley - 14th July 2004
...
* Fixed whitespace indenting in parts of tcp_in.c
* Changed adjustment of ssthresh in response to fast retransmit
* Commented out iteration of unsent list when new ACK received as we no longer put all unacked data on unsent list when retransmitting
2004-07-14 09:45:01 +00:00
likewise
8d052ecf24
Source documentation added.
2004-07-12 20:42:16 +00:00
likewise
45e36d9f56
Dependencies on C library memset() etc., so include <string.h>.
2004-07-05 00:00:21 +00:00
likewise
c222d8b672
Updated with latest changes.
2004-07-04 23:52:40 +00:00
likewise
efed3f1f0d
Mentioned placement of closing curly brace (block end).
2004-07-04 23:44:43 +00:00
likewise
7524893802
Dependencies on C library memset() etc., so include <string.h>.
2004-07-04 23:43:38 +00:00
likewise
25a0273b05
LWIP_TIMEVAL_PRIVATE must be defined in architecture cc.h file, either 1 or 0. Defaults to 1.
...
Dependencies on C library memset() etc., so include <string.h> and <errno.h>.
2004-07-04 23:43:02 +00:00
likewise
ce0410b205
LWIP_TIMEVAL_PRIVATE must be defined in architecture cc.h file, either 1 or 0. Defaults to 1.
2004-07-04 23:42:14 +00:00
likewise
efe5ce5c78
Made loop counters unsigned where possible.
2004-07-04 23:40:44 +00:00
likewise
07f52b4b96
Fixed compile errors.
2004-06-30 22:14:03 +00:00
likewise
0be3598990
Style fixes.
2004-06-30 18:42:54 +00:00
likewise
c3284c30cd
Make restarting() DHCP on on interface more robust by cleaning old state information.
2004-06-30 18:42:33 +00:00
likewise
2d94bf4998
Bug fix: etharp_output() should not free pbufs.
...
Bug was introduced in 1.60 and reported by Tim Newsham on 30-Jun-2004 on lwip-users.
2004-06-30 18:41:39 +00:00
likewise
31c1e72b8c
ip_forward() returns netif on which packet was forwarded.
2004-06-30 18:39:17 +00:00
likewise
d11fcafad8
Added netif up/down basics.
2004-06-30 18:38:07 +00:00
kieranm
27c6d299cf
Kieran Mansley - kjm25@cam.ac.uk - 30th May 2004
...
* Fixed bug #9160 after discussion on mailing list
- alters use of MEM_ALIGN_SIZE in pbuf_alloc when calling mem_malloc for a PBUF_RAM pbuf
2004-05-30 14:04:30 +00:00
kieranm
450dd65165
Kieran Mansley - kjm25@cam.ac.uk - 26th May 2004
...
* Fixed bug 9076 (changes to pbuf tot_len and seg dataptr when trimming front edge of a received packet)
2004-05-26 10:04:15 +00:00
likewise
26819e6c39
Fixed documentation for internal function.
2004-05-13 00:28:38 +00:00
likewise
6587efb3e8
Fixed #if ETHARP_QUEUEING to #if ARP_QUEUEING.
2004-05-07 01:20:28 +00:00
likewise
8d2200f29b
Optimized search loop a bit. Conditional code for ETHARP_QUEUEING option.
2004-05-07 01:06:56 +00:00
likewise
e4295396ac
Re-instantiated the pack directives. Nested structs do break individual field natural alignment on arm-gcc.
2004-05-06 03:27:13 +00:00
likewise
5c7a70df28
Fixed wrong argument to find_entry() in etharp_query().
2004-05-06 02:55:53 +00:00
likewise
16a7a8258f
Fixed ETH_EMPTY into ETHARP_STABLE_EMPTY.
2004-05-06 02:54:06 +00:00
likewise
fb1f61b212
Do not empty entries unless allowed to in find_entry().
2004-05-06 02:51:15 +00:00
likewise
c3137df39c
More fixes.
2004-05-06 02:49:10 +00:00
likewise
2df9cd7262
Exported etharp_request().
2004-05-06 02:43:47 +00:00
likewise
a23f6afbee
Fixed typos.
2004-05-06 02:38:42 +00:00
likewise
e37f7fafc1
Optimized through re-use of common code. Results in 50 lines less and more modular code.
...
Work towards timed out and retries of ARP requests. Currently, one timed out ARP request.
2004-05-06 02:35:27 +00:00
likewise
7b803465ad
Simplified update_arp_entry().
2004-05-06 00:14:39 +00:00
likewise
273612b251
Prevent non-unicast addresses from polluting the ARP cache.
2004-05-05 23:47:33 +00:00
likewise
e2bc8e86e2
Removed a closing bracket, left over after removing pack directives.
2004-05-05 23:04:17 +00:00
likewise
79110ba469
Removed all structure packing directives. Protocol header fields are naturally aligned by design.
...
(Earlier, the 14-byte ethernet header screwed this up, this had already been fixed by adding two pad bytes.)
Assumption is that compilers do not align with larger-than-sizeof(type) boundaries.
Pre-tag PRE_PACK_REMOVE. Post-tag POST_TAG_REMOVE.
2004-05-05 19:16:51 +00:00
likewise
9dd10e46ab
Fix three bugs during tests.
2004-05-05 18:33:01 +00:00
likewise
29df95c514
As etharp already sends packets from the queue asynchronously, also make it send packet submitted through etharp_output().
...
etharp_output() now returns err_t.
etharp_query() now sends a packet directly if the IP address is stable.
2004-05-05 18:28:42 +00:00
likewise
015cb1a35d
etharp_*_input() return value (pbuf) removed; it has not been used since the packet queue
...
implementation. Packets are always sent to the network interface on behalf of ARP.
2004-05-05 15:59:12 +00:00
likewise
b217b020a5
Changed PAD_ETH_SIZE into ETH_PAD_SIZE for consistency with de-facto lwIP naming convention.
2004-05-05 15:09:13 +00:00
likewise
0c960a82ce
The recv callback has u8_t return type. Fixed theraw_pcb struct to reflect this.
2004-05-05 14:30:28 +00:00
likewise
e84cc8c0ad
Remember head of queue in pbuf_queue() iff PBUF_DEBUG to generate senseful debug report.
2004-05-05 14:28:41 +00:00
likewise
c69b93b246
The recv callback has u8_t return type. Fixed the raw_recv() prototype to reflect this.
2004-05-05 14:21:05 +00:00
likewise
5e13b9528d
Adpated comments to match Doxygen/JavaDoc style.
2004-05-05 14:12:28 +00:00
likewise
8bb3cab9d2
Adpated comments to match Doxygen/JavaDoc style.
2004-05-05 13:28:44 +00:00
likewise
ed201c35d2
Made raw_input() more generic allowing multiple matches until someone eats the packet.
2004-05-05 13:27:27 +00:00
likewise
4eadc22a36
Some updates on "gratuitious ARP" from RFC3220. Cleanup of some code and comments.
2004-05-03 17:50:11 +00:00
jani
4e2260c74c
by default there's no eth padding to preserve preious beahviour
2004-05-03 09:42:58 +00:00
likewise
a5148c14a1
Fixed use of struct ip_addr in DHCP header.
2004-04-30 01:00:21 +00:00
likewise
955d6206ee
Fixed hasty job prototype for pbuf_queue().
2004-04-30 00:58:55 +00:00
likewise
5df22b3468
Added missing prototypes for pbuf_*queue().
2004-04-30 00:57:20 +00:00
likewise
aef86ec5ef
DHCP header used u32_t where struct ip_addr is more appropriate.
2004-04-30 00:51:49 +00:00
likewise
94d3b04d68
Applied cleaner new patch for bug #8708 .
...
Implemented multiple packets on the outgoing queue in etharp.c.
Removed etharp.c specific queueing functions.
Fixed generic pbuf.c queueing functions.
2004-04-30 00:25:03 +00:00
likewise
d31830225c
Updated list of fixes/changes to the code.
2004-04-29 21:56:06 +00:00
likewise
8f309a3fec
Clean-up source comment documentation for Doxygen.
2004-04-29 21:50:39 +00:00
likewise
1fe4edbe1c
Fix buggy comment.
2004-04-29 21:49:12 +00:00
likewise
fe1696cef7
Clean-up source comment documentation for Doxygen.
2004-04-29 21:48:31 +00:00
likewise
de2e311e6e
Updated documentation.
2004-04-28 23:40:53 +00:00
likewise
384fb3c353
Corrected comparison by adding missing parentheses.
2004-04-28 23:36:39 +00:00
likewise
8603e19516
Removed ETHARP_ALWAYS_INSERT.
2004-04-28 23:20:18 +00:00
likewise
7a2751043a
Removed ETHARP_ALWAYS_INSERT. Whitespace cleanup.
2004-04-28 23:19:38 +00:00
likewise
e2b0c6c702
Fixed a cast.
2004-04-28 23:18:57 +00:00
likewise
5b12c61a81
Removed old broadcast check macro.
2004-04-28 23:18:20 +00:00
likewise
b8ee8808b4
Updated release procedure to match Savannah changes.
2004-04-28 20:35:17 +00:00
likewise
2db9551750
Patch of bug #8708 applied which should fix header alignment issues on 32-bit processors.
...
While this patch might need further clean-up, it is applied to make sure this gets attention.
2004-04-28 00:26:35 +00:00
likewise
7dc51270ee
Documented latest fixes in HEAD.
2004-04-23 16:49:35 +00:00
likewise
237b5a2467
Fix in the ip_addr_isbroadcast() check.
2004-04-23 16:45:06 +00:00
likewise
110e5af36c
Two trivial typo fixes.
2004-04-23 15:24:36 +00:00
jani
7d4aef9576
spelling fix from Tony Mountfield
2004-04-22 09:50:22 +00:00
jani
811b360df7
more uptodate eth driver skeleton from Tony Mountfield
2004-04-22 09:47:47 +00:00
likewise
d91b54882a
Fixed #ifdef LWIP_DHCP to #if LWIP_DHCP.
2004-04-16 22:36:48 +00:00
likewise
9106a1f2d5
Fixed #ifdef LWIP_DHCP position. Fixed extranous comma in function arguments.
2004-04-16 22:34:25 +00:00
likewise
2e2dada561
etharp_query(): Fixed the case where the packet that initiates the ARP request is not queued, and gets lost.
...
etharp_query(): Fixed the case where the packets destination address is already known.
As a result, we now always queue the packet and perform an ARP request, unless the entry is stable and no packet is submitted for transmission.
2004-04-14 19:12:10 +00:00
jani
6d704c728e
do not export struct timeval to external users of socket.h to avoid conflicts
2004-03-26 13:21:35 +00:00
jani
6c6f32f17f
fix recursive inclusion by forward defining struct netif
2004-03-26 13:21:10 +00:00
jani
0e4ce326c2
warnign fixe for stat_display
2004-03-26 13:11:35 +00:00
jani
d27448da8a
fix up stats_display which was added in previous commit
2004-03-26 12:47:57 +00:00
jani
d36b723056
fix SO_REUSE ifdef fixes
2004-03-26 12:40:58 +00:00
kieranm
2c8aa6f6f4
Kieran Mansley - kjm25@cam.ac.uk - 23rd March 2003
...
- Changed all #ifdef SO_REUSE into #if SO_REUSE
2004-03-23 19:33:53 +00:00
likewise
6f7c8fb355
Made #ifdef's into #if's for SO_REUSE.
2004-03-23 00:19:38 +00:00
likewise
82f852abf3
Fix cyclic dependencies by careful re-ordering of #includes.
...
This is really nasty. Can we forward-declare pointers to structs?
2004-03-12 00:10:07 +00:00
likewise
239c6fe070
Removed offending #include.
2004-03-11 21:39:47 +00:00
likewise
579d2ad811
Disabling ip_addr_isbroadcast() due to recursive header dependencies.
...
Currently, patch #2679 is broken, but will be neatly fixed once this is solved.
2004-03-11 21:37:56 +00:00
likewise
0cb355cd7c
Added netif #include.
2004-03-11 21:28:37 +00:00
likewise
86135d12b9
Fix prototype.
2004-03-11 21:25:28 +00:00
likewise
10d42c6fa3
Replaced ip_addr_isbroadcast() macro by function.
...
Overrides patch #2679 , as this must be solved inside ip_addr_isbroadcast(), inspired by BSD.
2004-03-11 21:20:10 +00:00
likewise
6434f7efad
Missing newline at EOF. Gave compiler warning.
2004-03-11 20:52:25 +00:00
likewise
bfdf19f56c
Make udp_disconnect() clear its remote address association.
2004-03-11 20:45:09 +00:00
likewise
79c7a7a43d
Using udp_sendto() where appropriate.
2004-03-11 20:25:35 +00:00
likewise
175053085a
Fixed @return in udp_sendto() docs, @see in udp_send*() docs.
2004-03-11 20:04:16 +00:00
likewise
3d90c062fd
Added udp_sendto() docs. Fixed udp_send() docs.
2004-03-11 20:01:26 +00:00
likewise
fda71b1230
Fixed udp_sendto() -> instead of .
2004-03-11 19:52:47 +00:00
likewise
a916de3b66
Added udp_sendto().
2004-03-11 19:41:22 +00:00
jani
30e5dfddb9
fix inet_ntoa prototype to be standard, and fix ppp code that used the non-standard version
2004-03-10 13:23:04 +00:00
kieranm
f9dea9d35b
Kieran Mansley - kieranm@gtemail.net - 9th Mar 2004
...
- Added comment to tcp_write() to remind of the importance of call to
tcp_output() to send any enqueued data.
2004-03-09 15:55:37 +00:00
jani
4ea55b1bbc
only include sys.h once. Noted by Tom Barker
2004-03-09 14:03:11 +00:00
kieranm
caf3c16826
Kieran Mansley, kjm25@cam.ac.uk, 08th Mar 2004
...
- added a comment to tcp_recved() to clarify reasons for call to tcp_ack()
2004-03-08 14:41:25 +00:00
likewise
a6f1111469
Matched interface documentation for netif_add() API change in 1.28.2.5.
2004-03-04 16:19:53 +00:00
jani
33d0096b81
add switch for MEMP_SANITY_CHECK defaulting to off
2004-02-26 10:43:09 +00:00
likewise
ed4c5d88a3
Added replacement for ip_addr_isbroadcast() macro, code is dead for review and testing (#if 0).
2004-02-24 21:59:17 +00:00
jani
e85a892111
add default option for LWIP_RAW
2004-02-23 14:28:03 +00:00
kieranm
70cd10beae
23/02/2003 - Kieran Mansley - kieranm@gtemail.net
...
* Applied patch #2679
* Sets netif->flags at line 202 to NETIF_FLAG_POINTTOPOINT
2004-02-23 10:15:06 +00:00
kieranm
3a784509df
23/02/2003 - Kieran Mansley - kieranm@gtemail.net
...
* Applied patch #2679
* Adds check to line 75 for NETIF_FLAG_BROADCAST
2004-02-23 10:13:12 +00:00
kieranm
5c7189124c
23/02/2003 - Kieran Mansley - kieranm@gtemail.net
...
* Applied patch #2679
* Adds check to line 314 for NETIF_FLAG_BROADCAST
2004-02-23 10:11:55 +00:00
kieranm
f81c2744cc
23/02/2003 - Kieran Mansley - kieranm@gtemail.net
...
* Applied patch #2679
* Adds check to line 133 for NETIF_FLAG_BROADCAST
2004-02-23 10:07:39 +00:00
lukem
4bf3359574
Added ability to disable checksum generation and checking at compile-time
2004-02-20 01:46:03 +00:00
lukem
47984b0496
removed redundant redeclaration of tcp_active_pcbs (already defined by tcp.h)
2004-02-20 00:51:49 +00:00
lukem
3c339323ed
added 8-byte alignment for 64-bit architectures
2004-02-20 00:45:47 +00:00
jani
7399722a88
indentation fix
2004-02-18 09:01:33 +00:00
likewise
7bfea6edb7
Applied Ian Wienand's patches (4-2-2004). Was partly applied earlier.
2004-02-16 21:33:42 +00:00
jani
f75da2c393
ip_lookup and udp_lookup not use remove declarations
2004-02-09 10:23:41 +00:00
likewise
475576ec20
Updated some copyright notices to include 2004 (a few were forgotten earlier).
2004-02-07 23:24:09 +00:00
likewise
f6a8e1df03
Added up-to-date explanation of CVS over SSH on Savannah.
2004-02-07 00:47:15 +00:00
likewise
e1c4bfad05
Merged from DEVEL, except for the API change in etharp.c.
2004-02-07 00:30:03 +00:00
likewise
1ed40e7983
Applied alias.diff by Ian Wienand on lwip-devel on February 4th 2004.
...
Using union to make explicit either tcp_listen_pcb or tcp_pcb.
2004-02-06 23:48:40 +00:00
likewise
035fcce9de
Applied mem.diff by Ian Wienand on lwip-devel on February 4th 2004.
...
Stops some warnings.
2004-02-06 23:44:59 +00:00
likewise
19eed5ff8a
Applied dhcp.diff by Ian Wienand on lwip-devel on February 4th 2004.
...
DHCP tries to build even if LWIP_DHCP is turned off.
2004-02-06 23:43:44 +00:00
likewise
7129d4797c
Merged ARP fixes from STABLE. Should have made those fixes in HEAD first.
2004-02-06 22:28:37 +00:00
likewise
707d31a083
Merged from main.
2004-02-05 18:47:55 +00:00
likewise
79e66ac841
Savannah now does anonymous CVS access using empty-password SSH.
2004-01-20 13:51:54 +00:00
likewise
1b96391cdf
Merged from DEVEL to main. Two TCP fixes and two NULL reference fixes.
2004-01-20 13:23:52 +00:00
uid67528
eed8ea5bc1
Merged from DEVEL. etharp prepared for queueing feature. DHCP fix.
2003-12-28 02:38:51 +00:00
likewise
a646b5374f
Merge from DEVEL. Assert used field not available without callback API.
2003-11-18 01:52:24 +00:00
likewise
fa9b1ba947
Merge from DEVEL. Includes important UDP fix for bug #6601 .
2003-11-18 01:40:08 +00:00
likewise
7d58c0c2be
Prepared Changelog for upcoming release 0.6.5. Fixed missing 0.6.4 number in history.
2003-11-14 16:20:47 +00:00
likewise
3c71c378bc
An overriden merge from DEVEL to main was needed as small changes had been made to main.
2003-11-14 14:56:30 +00:00
likewise
e4a6d199fe
Merged from DEVEL into main tree.
2003-11-14 13:17:23 +00:00
likewise
bdfdc2bb83
Made hton/ntoh argument name in prototypes match those in functions.
2003-07-07 09:11:17 +00:00
marcbou
351e590e01
Merged from DEVEL.
2003-06-27 20:46:11 +00:00
leonwoestenberg
45756246b9
Merged from DEVEL.
2003-06-23 18:06:26 +00:00
marcbou
611fb3a1f9
Merged from DEVEL.
2003-06-19 11:50:54 +00:00
marcbou
ec1c2a714e
merged from DEVEL.
2003-06-19 11:35:26 +00:00
marcbou
55f64f13c7
Important bug fixes and improvements.
2003-06-19 11:31:25 +00:00
marcbou
bbc33080e7
Merged from DEVEL.
2003-06-19 11:15:39 +00:00
marcbou
506a57392c
Merged from DEVEL
2003-06-19 11:08:57 +00:00
marcbou
f0e0e72e4d
Patch #1623 : Add missing pbuf_free() call after pbuf_chain() in slipif_input()
2003-06-19 10:30:13 +00:00
likewise
7108c57876
Merged with DEVEL.
2003-06-13 12:16:29 +00:00
likewise
49873ee687
Initial commit.
2003-06-13 07:40:53 +00:00
likewise
cea2c0bbc4
Fixed a string literal being wrongly split over two lines.
2003-06-12 07:18:57 +00:00
likewise
93dfcdce93
Fixes wrongly cast LWIP_DEBUGF arguments (patch #1596 and more).
2003-06-11 22:34:51 +00:00
likewise
ba786dc49b
Applied patch #1596 fixing wrongly cast LWIP_DEBUGF arguments.
...
(printf expects integers on the var args stack)
2003-06-11 22:11:42 +00:00
likewise
af384440f8
Applied patch #1597
2003-06-11 21:22:58 +00:00
kieranm
8014551908
Changed DEBUGF to LWIP_DEBUGF
2003-06-10 10:45:29 +00:00
likewise
c699921ff0
Fixed a multi-line comment.
2003-06-09 21:32:55 +00:00
likewise
df99ce9d98
Replaced all tabs with two spaces (regardless of indentation is correct).
2003-06-09 21:14:47 +00:00
likewise
829744dfe6
More precise comments on address change.
2003-06-09 21:08:55 +00:00
likewise
734400cafa
Only free the queued packets if there are any.
2003-06-09 20:28:10 +00:00
likewise
b306cab8be
Additional documentation on the subtle difference of a 'pbuf chain' and a 'packet queue'.
2003-06-06 08:34:37 +00:00
likewise
031a4cbdd8
Increased number of debug messages to see pbuf chain actions.
2003-06-05 14:15:46 +00:00
likewise
0fc282e182
Numerated contents so that they can be refered to.
2003-06-04 20:00:11 +00:00
likewise
1eaf425627
Mentioned pbuf_alloc() fixes.
2003-06-04 19:43:29 +00:00
likewise
326b8ff728
Fixed a memory leak when only a part of a PBUF_POOL chain could be allocated.
2003-06-04 19:09:11 +00:00
likewise
9ed2b7e03c
pbuf_alloc() forgot to set tot_len field for PBUF_POOL pbufs.
2003-06-04 09:06:22 +00:00
likewise
08703f46f8
Several additional documentation fixes.
2003-06-04 08:58:51 +00:00
jani
ea08652416
fixed sio_read_abort prototype
2003-06-02 11:30:47 +00:00
jani
26d9b28f77
sio and PPP updates from Marc
2003-06-02 11:12:56 +00:00
jani
2bfd55fd69
sys_msleep and sys_jiffies used by PPP code.From Marc
2003-06-02 11:10:20 +00:00
jani
39a6db4097
inet_ntoa and inet_aton from Marc
2003-06-02 11:09:01 +00:00
jani
ff63557d39
Cleanups in PPP: C++ comments removed, make it compile for unixsim too. Does not work yet only compiles
2003-05-30 08:49:34 +00:00
jani
4c7290fed0
Mention PPP in changelog
2003-05-28 06:21:04 +00:00
jani
31776e23fe
add PPP stack from Marc. Work in progress
2003-05-27 14:37:56 +00:00
jani
6719f10034
put LWIP_MAX and LWIP_MIN macros in def.h and use these instead of locally declaring them in .c files
2003-05-27 13:44:08 +00:00
jani
b0273c9209
fix warning
2003-05-27 13:40:54 +00:00
likewise
4ae13c6c26
Set UDP_FLAGS_CONNECTED in udp_connect().
2003-05-20 11:23:59 +00:00
likewise
cf7054dff2
Merging some fixes that had been committed into STABLE.
2003-05-20 09:49:04 +00:00
likewise
b8eeee5528
dhcp_recv() left dangling dhcp->p pointer in case of unexpected message.
...
This could result in pbuf_free() assertion (ref count 0) or crashes.
2003-05-20 09:04:10 +00:00
likewise
30d5b11628
Cleanup of some formatting and comments.
2003-05-20 08:16:29 +00:00
jani
cd65d36822
patches 1492, 1493 and 1494 from Marc
2003-05-19 14:41:54 +00:00
likewise
cda867d52b
Applied patches posted by Marc Boucher on lwip-users May 18th 2003.
2003-05-18 22:29:10 +00:00
jani
24a9063721
add sio_read and sio_write to beused by PPP
2003-05-06 12:20:57 +00:00
jani
840953c0e3
empty lightweight protection macros defined not only for no_sys
2003-05-06 12:19:53 +00:00
jani
398bf575d9
C++ comments cleanup
2003-05-06 12:15:08 +00:00
jani
8bfe344923
fix format warning
2003-05-06 12:13:34 +00:00
jani
c3fa5819fd
simplify MEM_ALIGN_SIZE macro
2003-05-06 11:24:42 +00:00
likewise
7e73e4728d
Made pbuf flags unsigned. Added "incoming broadcast" flag.
2003-05-03 09:44:09 +00:00
likewise
03bc7c868b
Major stylo search/replace for "One space between keyword and opening bracket."
2003-05-01 13:24:01 +00:00
jani
4c3f44b0d2
add PPP_DEBUG option and align all options to teh same colums using spaces and no tabs.closes patch #1306 too
2003-05-01 09:36:08 +00:00
likewise
b031be753a
Patch #1308 . Disabled, as one issue in dhcp.c (file field overloading) needs fix.
2003-05-01 09:03:20 +00:00
likewise
6e9c995fc8
Fixed packet header debug formatters.
2003-05-01 08:37:24 +00:00
likewise
6ee1644db7
Patch #1183 applied. This drops short ICMP packets.
2003-05-01 08:29:54 +00:00
likewise
7cb64f2a43
Patch #1183 applied. This drops short UDP/TCP packets.
2003-05-01 08:03:51 +00:00
likewise
6c907ce8d1
Patch #1308 . Still disabled, as it needs to make sure no file field is not overloaded.
2003-05-01 08:00:41 +00:00
likewise
a0eb47d561
Implemented packet (de)queueing. Unused, etharp.c must be adapted next.
2003-05-01 07:48:01 +00:00
anderscarlman
084c45d3db
Added dummy parameters for the empty macros snmp_add_ifinoctets and
...
snmp_add_ifoutoctets in order to avoid compiler warnings.
2003-04-27 09:51:59 +00:00
anderscarlman
0ef3b9b3c5
Re-added code for checking tail-parameter for NULL in
...
pbuf_chain() to provide for better backward compatibility.
2003-04-26 20:32:23 +00:00
likewise
ea5cd98e83
Mentioned changes to netif that imply changes for network drivers.
2003-04-25 13:23:10 +00:00
likewise
12bb78a425
Either first or last packet can be queued through ARP_QUEUE_FIRST option.
2003-04-22 15:09:56 +00:00
likewise
042b2a39d9
Either first or last packet can be queued. Fixed (err_t)NULL return value in etharp_query().
2003-04-22 15:08:47 +00:00
jani
1204e461c8
add definitions for PF_UNSPEC and IPPROTO_IP
2003-04-22 13:37:14 +00:00
likewise
9bc16878ea
Fixed tabs into spaces. Fixed other stylos.
2003-04-16 07:39:48 +00:00
jani
7662015de6
obsolete PCB handling only active when TCP is enabled
2003-04-15 14:58:35 +00:00
jani
e4775d4162
alignment fix from Marc Boucher
2003-04-15 14:56:03 +00:00
likewise
e147801ed8
Mention DHCP fix.
2003-04-15 14:43:36 +00:00
likewise
ed14a32224
Stylo.
2003-04-15 14:40:55 +00:00
likewise
4ecb01f4fd
Changed netif name formatting from %s to %c%c.
2003-04-15 14:32:13 +00:00
likewise
a1efd95d0f
hexadecimal notation for NETIF_FLAGS_
2003-04-15 12:44:15 +00:00
likewise
ac2b4c2174
Debug levels set on some serious debug messages.
2003-04-15 12:43:15 +00:00
likewise
9ef5a61b1e
Prevent compiler warning on unused function arguments.
2003-04-15 12:41:52 +00:00
likewise
b68c91c973
Debug message shows requested pbuf type (of ROM/REF) upon memory allocation failure.
2003-04-15 12:38:48 +00:00
likewise
710ac00024
dhcp_inform() did not set and unset netif->dhcp. always generated assert failure.
2003-04-15 12:37:06 +00:00
likewise
a96a12ed1f
Prevent warnings about unused function arguments.
2003-04-15 11:27:52 +00:00
likewise
a8976fd367
Again accepted NULL to indicate IP_ADDR_ANY.
2003-04-15 09:16:39 +00:00
likewise
11e0cf6f40
Added NETIF_FLAG_LINK_UP. Not used yet.
2003-04-14 12:29:45 +00:00
likewise
dc1ac6107f
Disabled pbuf_dechain() as it not currently in use.
2003-04-14 12:17:08 +00:00
likewise
f9538c9395
Disabled pbuf_dechain() as it not currently in use. Fixed comment position.
2003-04-14 11:37:12 +00:00
likewise
445a64d933
Stronger debugging/assertion.
2003-04-14 11:36:17 +00:00
anderscarlman
d1940302bb
Removed the lines setting dhcp->msg_in and dhcp->options_in to NULL, since this is done implicitly through dhcp_free_reply().
2003-04-12 15:40:43 +00:00
davidhaas
3defc437c6
Got rid of pbuf_pool_alloc_cache and pbuf_pool_free_cache. Also got rid of
...
pbuf_refresh(). This has sped up pbuf pool operations.
2003-04-11 14:39:15 +00:00
likewise
40f10b69f7
All debug messages now show actual config _after_ setting netif config.
2003-04-11 14:02:48 +00:00
likewise
4c5117101d
Fixed debug message for PBUF_REF/ROM allocation failure.
2003-04-11 12:56:13 +00:00
likewise
4bcfd81923
Macro IP_ADDR_ are cast non-const as lots of functions miss const qualifier for arguments.
2003-04-11 08:45:15 +00:00
likewise
f6a8994521
ip_addr_any and _broadcast are type-declared as being const.
2003-04-11 08:10:17 +00:00
likewise
0eb3d92782
Updated changelog to reflect some recent changes.
2003-04-10 08:51:58 +00:00
davidhaas
50f47f18c1
Fix memory leaks.
...
When pbufs are chained, the second pbuf must be freed, if no higher level
application refers to it any longer.
2003-04-09 20:28:15 +00:00
davidhaas
18a215e6a8
Made memory stats more accurate (real amount and max amount of memory used).
...
Also fixed a protection bug which occurred when memory allocation failed.
2003-04-09 20:19:27 +00:00
davidhaas
0bce6f8974
Fixed bug where tearing down a connection would cause loss of memory.
2003-04-09 20:12:12 +00:00
likewise
be7275c238
First attempt to track/explain changes that happened in CVS tree.
2003-04-09 15:22:11 +00:00
likewise
1254b42e66
Enabled code to abort/replace TCP pcbs upon netif address change.
2003-04-09 15:17:57 +00:00
likewise
a389b630ac
Added (non-active) code handling pcbs upon changing IP address.
2003-04-08 12:19:02 +00:00
likewise
a4a7a7a47e
TCP data can be safely referenced as PBUF_ROM instead of PBUF_REF.
2003-04-07 21:28:16 +00:00
jani
a3087737bd
initial PPP options
2003-04-07 08:54:18 +00:00
likewise
12fc0239c2
Fixed bug #3112 (faulty behaviour calling tcp_listen() when already listening)
2003-04-06 20:35:50 +00:00
likewise
0418edb7b6
Added debugging to verify correct result of udp_bind() / udp_connect().
2003-04-04 08:14:49 +00:00
likewise
2e233cb35b
Fixed stylo.
2003-04-04 08:14:04 +00:00
likewise
e36394e6cc
Only changes to comments.
2003-04-03 19:11:02 +00:00
likewise
6d3149714f
Print debug message before actually changing netif IP address config.
2003-04-03 12:09:39 +00:00
likewise
f651747a89
Updated to reflect current practice and URLs.
2003-04-03 09:37:41 +00:00
likewise
9ea10ce05d
In pbuf_take(): Got rid of variable 'f'. Fixed stylo (typo in style). Renamed 'top' to 'head'.
2003-04-03 08:50:57 +00:00
davidhaas
dbad0d5723
Updated sys_arch documentation to make new timeouts clearer.
2003-04-02 15:21:56 +00:00
davidhaas
21d17e41fd
Fixed last change to pbuf_take. There were two calls to pbuf_free in a row.
2003-04-01 15:54:25 +00:00
likewise
af8f280811
Fixed ip_addr_set() to deal with IP_ADDR_ANY. Added "ip_addr.h" include.
2003-04-01 15:00:26 +00:00
likewise
7abb278b60
Added assertion checking against dupes in pcb active list. Added comments.
2003-04-01 14:52:41 +00:00
likewise
7842a0190a
IP_ADDR_ANY is now a pointer to { 0UL } (see IP_ADDR_BROADCAST).
...
For easier debugging of IP addresses.
2003-04-01 14:50:00 +00:00
likewise
a22e66f5ee
IP_ADDR_ANY is now a pointer to { 0UL } (see IP_ADDR_BROADCAST).
2003-04-01 14:49:37 +00:00
likewise
1a72feb128
etharp_query() has error return type now. Matched dhcp.c with this change.
...
Added debug messages in other places.
2003-04-01 14:02:50 +00:00
likewise
132b09ce09
Added source code self documentation guidelines.
2003-04-01 13:34:56 +00:00
likewise
a28af1be11
Fixed another assert. Removed another redundant assignment.
2003-04-01 12:28:45 +00:00
likewise
b04ac8f3be
Lots of comments added. Removed redundant assignment. Moved assertion.
2003-04-01 12:17:55 +00:00
likewise
5f35f4bb3b
Reverted back to David Haas' patch of pbuf_chain() from 1.34.
2003-04-01 09:35:20 +00:00
likewise
4c3512c0a2
Replaced pbuf.c 1.34 pbuf_take() change by simpler alternative.
2003-03-31 23:28:54 +00:00
davidhaas
09ca7a181b
In keeping with pbuf->ref always having the count of the number of pointers
...
to the particular buffer (and the last rewrite of pbuf_free), changed most
pbuf_ref_chain() calls back to pbuf_ref(). I think this was causing some pbuf
leaks.
2003-03-31 22:09:39 +00:00
davidhaas
82a32be1d6
Fixed issue in pbuf_take(): old pbuf of type PBUF_REF was being referenced
...
after being freed. Also, it was not being freed if it had been the first
buffer in chain. It still needs to be freed then.
2003-03-31 21:32:30 +00:00
davidhaas
9f3511231a
Fix pbuf_chain() to update tot_len of last buffer in first chain properly.
...
Previous code skipped it.
Made comments in pbuf_header() more general (header can be increased or
decreased).
2003-03-31 20:45:08 +00:00
likewise
6da25968e0
pbuf_header() now only moves payload pointer upwards for PBUF_ROM/REF.
2003-03-31 18:48:52 +00:00
likewise
a70f478ef1
Fixed pbuf_dechain() assertion. Removed old documentation from pbuf.h.
2003-03-31 11:39:48 +00:00
likewise
6c147709b6
Documentation changes. Added missing trailing newlines to debug messages.
2003-03-31 10:32:35 +00:00
kieranm
8636ac26cf
Fixed bug in mem_realloc (check alignment of size)
2003-03-31 09:36:18 +00:00
kieranm
01a53d955e
Fixed bug in do_delcon (set tcp_arg to NULL)
2003-03-31 09:35:47 +00:00
kieranm
a5be8fe82c
Fixed bug in netconn_peer (test pcb for NULL before accessing)
2003-03-31 09:34:56 +00:00
likewise
e6cc785fff
Fixed missing variable.
2003-03-31 08:34:02 +00:00
likewise
00809b49f1
Better error handling. Added debug messages for serious errors.
2003-03-31 08:02:52 +00:00
likewise
917f8ec799
Added debug messages for serious errors.
2003-03-31 08:00:01 +00:00
likewise
37ff512516
Initial start with source code and documentation style guidelines.
2003-03-30 22:57:52 +00:00
likewise
c50f80da92
Corrected more pbuf.c functions to comply with pbuf->ref and ->tot_len invariant.
2003-03-30 22:24:10 +00:00
likewise
2bd3d51fcf
Removed the pbuf_dechain() from udp_send() matching new pbuf code.
2003-03-30 00:39:03 +00:00
davidhaas
2e0829fb5a
Made lwip timeout measurements accurate by no longer returning 1 millisecond
...
whenever sys_arch_mbox_wait() and sys_arch_sem_wait() get a message or
semaphore immediately. Updated documentation for this change.
Unix port and Coldfire port have been updated.
2003-03-28 20:46:40 +00:00
davidhaas
c4ff244c4e
Fixed minor compile issues.
2003-03-28 19:45:37 +00:00
likewise
002998cf49
Fixed bugs #2968 (ref count) and #2670 (total length).
...
Name of pbuf_unref() falsely suggests to undo pbuf_ref(), renamed to pbuf_take().
2003-03-28 08:49:05 +00:00
likewise
7dea6dc834
pbuf_realloc() did not update ->tot_len in a chain. Fixed dealloc of REF/ROMs.
2003-03-26 13:50:03 +00:00
likewise
fd0d94af44
Fixing bug #1903 with a new pbuf_realloc() that respects mixed-type chains.
2003-03-26 13:30:38 +00:00
likewise
ab630b2875
Strong assert checking against queueing behaviour in udp_send().
2003-03-26 10:59:31 +00:00
jani
09aff62b11
more suggestions
2003-03-26 10:36:00 +00:00
likewise
f4f717b20a
Fixed typo affecting debugging.
2003-03-26 00:31:55 +00:00
likewise
cf188ba15c
Brackets around debug in DEBUGF. Cleaned comments.
2003-03-26 00:31:24 +00:00
likewise
fa34d51b7e
Added documentation and comments.
2003-03-25 12:59:42 +00:00
likewise
6621f8b88a
New tail section of udp_send() that handles both queued and unqueued cases.
2003-03-25 12:58:22 +00:00
davidhaas
f9e4f4d813
Typo bug. The wrong semaphore was being signalled.
2003-03-24 15:53:38 +00:00
likewise
80b961df60
Lots of clearing up comments and use of new debugging features.
2003-03-24 15:15:18 +00:00
likewise
cea002a088
Forgot #if LWIP_DHCP around netif->dhcp = NULL;
2003-03-24 14:30:18 +00:00
likewise
e062b70da8
Retry with PBUF_RAM if PBUF_POOL allocation failed.
2003-03-24 13:27:12 +00:00
likewise
ce4dbcec6a
Initialized netif->dhcp to NULL.
2003-03-24 13:06:16 +00:00
likewise
07058652c1
Added tracing debug messages.
2003-03-24 12:58:01 +00:00
likewise
7a92011933
Re-added pbuf_dechain() in udp_send() as it breaks current applications.
2003-03-24 12:57:00 +00:00
jani
c60d0de919
Add sio.h containing interface to platform specific serial layer.Make slipif use it instead of defining extern functions.This is in preparation for PPP
2003-03-24 10:54:03 +00:00
likewise
6457b93a1f
Made some flag defines unsigned.
2003-03-24 10:30:12 +00:00
likewise
20667e5163
Added debug levels for some serious errors (out of memory).
2003-03-24 10:29:03 +00:00
jani
74f2b5e5f7
some guidelines for contributors
2003-03-24 09:00:14 +00:00
davidhaas
96f2e162ef
Fixed memory leak caused by my last pbuf_ref change.
2003-03-21 23:01:20 +00:00
jani
859f06a91e
if LWIP_TCP is 0 do not link in TCP code.putting ugly ifdefs in api and core :(.Also only udp_init if LWIP_UDP is on
2003-03-21 10:48:21 +00:00
jani
9cafc7a764
avoid compiler warning
2003-03-21 10:34:47 +00:00
davidhaas
32d9f25a6f
Fixed up and made work a PBUF_REF type. Most of the code uses this now
...
instead of PBUF_ROM. This addition allows support of copy-on-demand where the
lower layers can call pbuf_unref() which tests for any PBUF_REF buffers and
replaces them with PBUF_POOL buffers. This is now used
everywhere. pbuf_unref() is called in ARP queueing and in the coldfire
driver, which puts frames on a DMA queue and frees them later.
Along with this change pbuf_free() now goes through the entire chain of
buffers and tests all the ref counters, not just the first one. Generally now
pbuf_ref_chain() should be called and not pbuf_ref(). This change was made
because it is possible for the head of the pbuf chain to have a different
count than the payload pbuf which might have been passed by the application.
2003-03-19 22:14:49 +00:00
jani
2f7e4bd587
patch 1197 form floriZ.When debug is on and port is 0 in udp_bind ERR_USE is always returned due to missing braces.Reindent that part of code while at it
2003-03-19 16:04:54 +00:00
jani
84697ce713
Add priority argument to thread sys_thread_new.Patch from floriZ but slightly modfied
2003-03-19 15:27:56 +00:00
jani
0846206bc0
rename STATS to LWIP_STATS and make it checked by #if not #ifdef.The rest of the _STATS defines should follow
2003-03-19 12:37:46 +00:00
jani
441e9b8431
add tcpip_callback patch from Marc
2003-03-19 11:23:46 +00:00
davidhaas
f9f21934ab
Fix to last fix for bug 2826: find_arp_entry() was now not finding any
...
entries unless there was an attached buffer. Fixed so that it finds entries
without attached buffer.
Also: Now attaching buffer to arp queue before sending arp request. For
Coldfire, where ethernet receive is done under interrupts arp response was
received before buffer was attached, thus causing attached frame to never get
transmitted.
2003-03-18 14:48:40 +00:00
davidhaas
2673568cfd
Added default settings for DBG_MIN_LEVEL and definitions for the possible
...
levels.
2003-03-17 16:59:22 +00:00
likewise
45c13ad08f
Fixed bug #2826 (re-use of oldest ARP entry with queued packet leaks pbuf). Only if ARP_QUEUEING == 1.
2003-03-16 23:46:29 +00:00
likewise
76d395c8de
Fixed bug #2841 (etharp.c packet queueing always picks table entry 6).
2003-03-16 22:44:05 +00:00
likewise
090b4087fc
Using a negated unsigned value as func. arg. fails for Keil C166 compilers.
2003-03-16 22:39:15 +00:00
likewise
7ece19c474
pbuf_unfold_reply() lost memory if already unfold.
...
dhcp_stop() leaked memory if a unfold reply was still in existance.
2003-03-16 22:36:54 +00:00
likewise
dbdd0f520f
Added source comments.
2003-03-13 08:50:04 +00:00
likewise
d47ef79c04
Moved DBG_MIN_LEVEL out of here to lwipopts.h
2003-03-11 14:16:27 +00:00
likewise
400ff200ee
Added comments on some ARP options.
2003-03-11 13:57:25 +00:00
likewise
daeb21b3b9
Include "netif.h" for ntohl and friends.
2003-03-10 16:13:25 +00:00
likewise
7e36c58529
Make sure that BYTE_ORDER is actually defined. Panic with #error if not.
2003-03-10 16:12:41 +00:00
likewise
aa84869fdb
Fixed cyclic dependency by including netif.h. Not sure if this breaks other compilers?
2003-03-10 16:09:41 +00:00
likewise
bd6b1a0237
DBG_TYPES_ON added (must be overridden in lwipopts.h).
2003-03-10 16:08:52 +00:00
likewise
adf088e575
DBG_TYPES_ON removed (must be in lwipopts.h instead).
2003-03-10 16:07:50 +00:00
jani
8613f2a48e
factor out netif_set_addr so address of netif can be changed
2003-03-07 10:55:58 +00:00
jani
12228ea34d
update sysarch doc. patch #1233
2003-03-07 10:48:32 +00:00
jani
f308f7cc80
Add sys_untimeout stub in case of NO_SYS
2003-03-07 10:29:25 +00:00
jani
eb1a41f3c9
socket functions use socklen_t, patch from floriZ.Also set/getsockopt use void * instead of char * as fourth arg
2003-03-03 10:29:21 +00:00
davidhaas
ee2c049518
Fixed build for coldfire after last debug.h and opt.h changes.
2003-02-25 21:46:04 +00:00
jani
0ba9a45d32
icmp messages need only PBUF_IP layer
2003-02-25 16:00:21 +00:00
jani
bcfc7173f3
default value for NO_SYS
2003-02-24 13:57:39 +00:00
jani
d390ca7056
cleaned up opt.h a bit, added more option defaults ad changed SYS_LIGHTWEIGHT_PROT to be a 0/1 define.The same for COMPAT_SOCKET
2003-02-24 10:49:05 +00:00
jani
18df3961e9
byte-order handling functions are in inet.c now and the uperrcase counterparts are gone. opt.h has all the
...
configurable items debug does not need to be directly included.
2003-02-21 16:43:46 +00:00
jani
d372121d6e
dhcp.h and ip.h declare struct netif and don't include netif.h to avoid warnings.
2003-02-20 17:16:30 +00:00
jani
8e9aa84070
do not directly include lwipopts.h but lwip/opt.h instead
2003-02-20 16:32:22 +00:00
jani
6319ffbcb8
delete ethernetif.h
2003-02-20 15:23:04 +00:00
likewise
d1c03cbd69
Fixed some issues open after merging 'leon-dhcp'.
2003-02-20 14:35:40 +00:00
likewise
37629fc1b6
Fixed some issues open after merging 'leon-dhcp'. Added new debugging.
2003-02-20 13:13:51 +00:00
jani
cc31bb9358
make netif->init return err_t instead of void.Patch from David Le Corfec
2003-02-20 11:51:53 +00:00
jani
35ef1e1b86
fix compiler error
2003-02-20 11:48:13 +00:00
likewise
d8d787545e
Merged with leon-dhcp branch. Tagged as POST_leon-dhcp afterwards.
2003-02-20 08:41:59 +00:00
likewise
0a51d72098
Removed Id: fields as they give conflicts while merging to leon-dhcp branch.
2003-02-19 22:07:42 +00:00
davidhaas
e13c78820f
Fixed SYS_ARCH_PROTECT macros when NO_SYS is not defined.
...
Added documentation for lightweight protection.
Fixed debug statement in ip.c.
Removed tabs in files I changed.
2003-02-18 21:14:16 +00:00
davidhaas
7f1becc682
Allow minimal unix target to build in cygwin (but not necessarily run).
...
Applied a patch from Marc Boucher which has the following changes:
1) Fixed sys_arch.txt documentation to have new return type from
sys_thread_new.
2) Removed unnecessary casts on calling sys_timeout() in certain files.
3) Removed some unnecessary break statements after return statements.
4) Changed sys_timeout_remove() to sys_untimeout().
5) Added some forgotten #ifndef SYS_LIGHTWEIGHT_PROT to memp.c
6) Changed LWIP_DIAG and LWIP_PLATFORM_ASSERT to have do while().
2003-02-18 19:27:48 +00:00
likewise
1660e800e0
Made UDP flag defines unsigned (by adding the U suffix).
2003-02-18 12:41:52 +00:00
jani
da40fbd054
move FD_SET defines to sockets.h from arch.h .Last arg of select is not a const according to linux and openBSD manpages
2003-02-17 11:34:48 +00:00
likewise
90bc698a40
Lightweight protection macros were not defined if NO_SYS was defined.
2003-02-17 10:13:00 +00:00
likewise
cb6cec0404
Disabled too restrictive behaviour in _bind() and _connect(). Reimplementation pending.
2003-02-14 15:49:02 +00:00
davidhaas
de29a0818e
By request: moved lightweight protection to macros.
2003-02-12 22:00:18 +00:00
davidhaas
4fc309b1dd
Made sys_arch_prot() interface more generic by returning sys_prot_t instead
...
of u32_t.
2003-02-12 16:38:46 +00:00
davidhaas
353478180d
Fix some compile issues with both coldfire and unix builds.
2003-02-12 15:09:04 +00:00
jani
ea66eb6c23
one more C++ comment changed two prototypes added for the SNMP = 1 case
2003-02-12 08:06:50 +00:00
davidhaas
7b3e158c92
sys_thread_new() now returns the thread (request from Marc Boucher).
...
Removed some unused .h files in coldfire port.
Support LWIP_DIAG and LWIP_ASSERT in coldfire (sort of).
Fix to last api fix to make sure select() is triggered, even when there has
been a FIN.
Allow build of unixsim from cygwin by specifying "make ARCH=cygwin" or from
linux by specifying "make ARCH=linux".
2003-02-11 21:00:14 +00:00
jani
848dea2058
Only access non-NULL pbufs on some paths where they can be NULL in newly introduced callback code
2003-02-11 16:33:02 +00:00
jani
f2d35751ca
fix doxygen comment for netif_add
2003-02-11 09:51:22 +00:00
jani
16833de1cf
remove list.h
2003-02-11 09:10:10 +00:00
likewise
0cb0cd6611
C instead of C++ style comments.
2003-02-10 23:51:06 +00:00
davidhaas
dc49999124
Fixed some build issues regarding snmp.h
2003-02-10 21:58:34 +00:00
likewise
daebdd1d77
Removed my #error.
2003-02-10 19:55:35 +00:00
likewise
c68ee2b2ed
SNMP functions are now unconditionally called and defined empty if LWIP_SNMP == 0
...
This removes a lot of #if #endif cluttering the source code.
2003-02-10 13:47:47 +00:00
likewise
32fbec2e48
Include arch/cc.h first, as architecture headers might #define NULL itself.
2003-02-10 13:20:33 +00:00
jani
c13e08a7f5
make debugs and asserts platform independent.No more use of abort and printf.delete 2 references to arch/cpu.h and arch/lib.h
2003-02-10 11:15:19 +00:00
jani
451926e5c3
don't include arch/lib.h
2003-02-07 10:23:15 +00:00
jani
1868b2d244
tcp_timer_needed should be a noop when using the raw API.Fix link error bug #2489
2003-02-07 10:13:51 +00:00
davidhaas
dd2fa15e8a
Add the following features and bugfixes:
...
Added select() functionality to sockets library.
Support for errno in sockets library.
Byte ordering fixes.
basic lwip_ioctl(), FIONREAD, get/setsockopt() etc. support
- added additional argument to netif_add to pass state pointer so that the
if_init function has access to context information before
the interface is added, without accessing globals.
- added netif_remove()
- to conserve cpu load the tcpip_tcp_timer should only be active
when tcbs that need it exist.
- pass length of available data to callbacks for NETCONN_EVT_RCV events
- added tcpip_link_input(), a hack to allow processing of PPP
packets in tcpip_thread() context. This saves threads and context
switches.
- renamed incompatible ASSERT() macro to LWIP_ASSERT() to avoid name
collision.
- changed a bunch of %d's to %u's in format strings for unsigned values.
- added ip_frag to lwip_stats.
- changed IP_REASS_MAXAGE and IP_REASS_TMO defaults to more realistic
values.
- added sys_timeout_remove() function to cancel timeouts (needed by PPP
amongst other things).
- tolerate NULL returns from sys_arch_timeouts() since some threads might
not need to use or have timeouts.
- added sys_sem_wait_timeout()
- moved mem_malloc() function to end of mem.c to work around tasking
compiler bug.
- automatically bind to local tcp port if 0.
- allow customization of port ranges for automatic local bindings.
- corrected various typos, spelling errors, etc..
Thanks to Marc Boucher for many of these changes.
2003-02-06 22:18:56 +00:00
jani
d2e008d4b4
Update src/FILES and src/netif/FILES
2003-02-05 13:39:35 +00:00
davidhaas
98fbb855fb
Added lightweight protection. In coldfire this is implemented by disabling
...
interrupts. In unixsim this is implemented by using a mutex. Uses #define
SYS_LIGHTWEIGHT_PROT to enable. It is enabled in coldfire by default, but
disabled in unixsim.
Fixes bug 2005 if you enable SYS_LIGHTWEIGHT_PROT. So the bug is closed.
2003-02-04 22:52:22 +00:00
likewise
987e9df948
Fixed comment typo.
2003-02-04 18:50:30 +00:00
likewise
70d54479a1
Changed some comments into JavaDoc format.
2003-02-04 18:49:46 +00:00
jani
c91b024153
Deleted proj/ subdir.It has moved to contrib.
2003-02-04 16:21:13 +00:00
davidhaas
f5f31f5eaa
----------------------------------------------------------------------
...
Fixed the following bugs:
2366: For coldfire port: pbuf is freed twice when no room on
output ring.
2368: Coldfire port: buffer cleanup in 5272 driver causes
problems.
2376: Can't have timeouts large enough
Note that timeouts are now 32 bits. This was done for select()
support. Coldfire and unix ports have been updated.
Committing in .
Modified Files:
src/core/sys.c src/include/lwip/sys.h
----------------------------------------------------------------------
2003-02-04 14:50:45 +00:00
jani
442f46a1ce
recvfrom accesses freed netbuf.If it's reused in the small window by another thread recvfrom returns bad from info.Patch #1041 by Florian Zschocke
2003-01-31 12:51:56 +00:00
likewise
ea6432702f
Added comments. Code cleanup. Clearer debugging in udp_input().
2003-01-30 15:02:48 +00:00
likewise
faa9191191
Added commented about the signedness of pbuf_header() argument.
2003-01-30 12:38:03 +00:00
likewise
8560f6ef2b
Fixed DHCP packet input filter. Added numerous comments. Code cleanup.
2003-01-30 10:18:40 +00:00
kieranm
b0c1e37364
Updated Makefiles to reflect new "contrib" directory for architecture specific code
2003-01-30 10:17:17 +00:00
likewise
bb0194cc0c
Some macro's were not surrounded by brackets. Was dangerous when nesting macro's.
2003-01-30 09:32:31 +00:00
proff_fs
304dc9fd07
Moved msvc6 project files to contrib module.
2003-01-29 16:34:56 +00:00
likewise
bcfdf4c1cf
Removed the src/arch tree from the lwip module. (Now in seperate contrib module).
2003-01-29 13:18:40 +00:00
likewise
663b79ca72
ip_input() changed. A configured netif accepts any traffic and an unconfigured netif accepts only DHCP traffic.
...
Fixes bug #2004 .
2003-01-28 18:24:25 +00:00
likewise
4a720425b7
Rebinding an active pcb did not check the given address/port against other bound pcb's.
2003-01-27 13:58:45 +00:00
likewise
0e4d59541a
Fixed assignment of pcb->flags if pcb was NULL in udp_new().
2003-01-27 12:35:16 +00:00
likewise
ba666295eb
Nullified stray pointer for debugging purposes.
2003-01-27 11:31:30 +00:00
likewise
d34851db91
Initial commit of snmp.h function prototypes.
2003-01-27 09:29:07 +00:00
likewise
7dfd162a34
Added source documenting comments.
2003-01-27 08:50:28 +00:00
jani
6d0a8a85c7
Fix locking for disconnect operation (use post and fetch on the connection's mbox in the two threads like other operations).Make netconn_peer take a pointer to addr instead of pointer to pointer to addr.Addr is a 4 byte struct an IP address so use structure assignment not just pointer assignment when saving the peer.This way the address is really saved :fixes bug #1897
2003-01-24 09:24:44 +00:00
jani
721d237120
Fixes so that UDP connect() works.Enable generation of ICMP destination unreachable when the port is unavailable
2003-01-23 16:46:01 +00:00
jani
46c575c038
Fix udp_bind to allow rebind for same socket (yesterday's commit broke that) and introduce connection info for UDP pcbs.New function netconn_disconnect, do_disconnect for deatching UDP from a remote addres.Fix #2240
2003-01-22 16:18:05 +00:00
jani
16434f0d01
Don't allow multiple binds to the same UDP port/address pair.Closes bug #1896
2003-01-21 14:09:31 +00:00
jani
39edc69514
When all entries are 0 due to the whole table changing since the last arp tick (past 10 seconds) there's no oldest entry and the new entry does not get a spot.Fix this (from Ed Sutter)
2003-01-18 16:05:24 +00:00
likewise
2154ac3ecb
Enhanced documentation on UDP PCB matchjng code.
2003-01-17 15:16:33 +00:00
jani
42309b5d6f
put a state field in listen PCBs to since they are often treated as normal pcbs. patch #922 , bug #2114
2003-01-17 14:18:55 +00:00
jani
07af438a38
fix printing of recved packet.Discovered by Ed Sutter
2003-01-16 13:09:19 +00:00
likewise
fa8f6cb204
Free incoming pbuf's in the TCP event macro if the recv callback is NULL. Fixes bug #2156 .
2003-01-14 12:54:02 +00:00
jani
049853362a
ack duplicate segments too to prevent connection hanging when a single transmitted ACK gets lost
2003-01-14 09:38:10 +00:00
jani
3e6202f614
do not set rtime too many times to 0.it's enough to do it in tcp_output_segment
2003-01-14 08:37:01 +00:00
jani
a993e962f5
fix compiler warnings in DEBUGF
2003-01-14 08:22:05 +00:00
likewise
1ad5537c9b
Fixed some typo's in the comments.
2003-01-13 13:22:09 +00:00
likewise
ea0dc429a7
Added #include <string.h> for memset()/memcpy().
2003-01-13 13:14:45 +00:00
jani
8d7f09fa92
remove global ctime.Each entry's ctime is now absolute.This avoids wrapping and also solves naming clash reported on the list
2003-01-13 09:38:21 +00:00
jani
02a6a8a809
etharp_output_sent no longer exists
2003-01-11 15:10:12 +00:00
jani
2bba9bcd9f
make rtime field u16_t like rto otherwise it won't catch rto if that goes beyond 255.When that happens there's trouble already since 255 ticks is over 2 minutes but still...
2003-01-10 15:46:58 +00:00
jani
4eebbdea0d
print correct pcb->rtime value in debug statament.it does not directly depend on tcp_ticks
2003-01-10 15:41:02 +00:00
jani
4a2d03a517
seqno is u32_t so use %lu instead of %ld when printing it
2003-01-10 15:36:47 +00:00
jani
5212afdd8f
remove already commented out function : memp_realloc
2003-01-10 09:42:27 +00:00
jani
e196108931
fix debug messages in tcp_slowtmr to reflect the correct name of this function
2003-01-10 09:41:24 +00:00
likewise
a5e9b73703
Made hardware address length definable (was 6 bytes for Ethernet).
2003-01-08 16:06:02 +00:00
likewise
5e13d495f0
Merged patch #927 which fixes "needs modifiable lvalue" compile error in TCP_REG.
2003-01-08 15:37:20 +00:00
likewise
a528a2323e
More debugging in checksum routines.
2003-01-08 15:36:25 +00:00
likewise
c786f238ef
Output snd_buf size in debug message in tcp_enqueue().
2003-01-08 14:35:02 +00:00
adamdunkels
d04f7aa4bc
Added comments to the tcp_enqueue() function.
2003-01-08 14:11:24 +00:00
likewise
ced453a72b
Moved ETHARP_ALWAYS_INSERT switch to lwipopts.h
2003-01-08 11:03:54 +00:00
likewise
0f3e8c19e8
Added check if ARP_QUEUEING is 1 for a queueing related debug statement.
2003-01-08 10:49:16 +00:00
likewise
cc4df7100d
Updated lwIP module copyright years to include 2003. Committers must check theirs.
2003-01-08 10:09:39 +00:00
likewise
0bd02a5f7a
Removed etharp_output_sent() as etharp.c no longer returns ARP packets to the driver.
2003-01-08 09:24:06 +00:00
likewise
b311ab0d53
Allocate PBUF_RAW instead of PBUF_LINK type pbufs. Fixes bug #1890 for this driver.
2003-01-08 09:09:35 +00:00
jani
b6b905412e
Patch #928 from Marc
2003-01-07 12:50:34 +00:00
jani
2c2fec1b0e
remove bcopy & bzero from archs
2002-12-19 10:37:07 +00:00
jani
f946abd86b
Simplify pbuf allocation for TCP packets in two places by replacing pbuf_alloc + pbuf_header
...
with an equivalent pbuf_alloc.When we know we'll have to adjust the payload for the TCP header
just alloc it like that from the start.
2002-12-19 09:50:53 +00:00
jani
156d2c866f
sizeof(u8_t) is 1 at temperatures > 0 K
2002-12-19 09:04:58 +00:00
jani
ef68392388
renamed (hopefully everywhere) stats to lwip_stats.closes bug #1901
2002-12-18 12:49:01 +00:00
jani
51006824f9
remove tcpdump.c
2002-12-18 12:26:14 +00:00
kieranm
9eebc135ce
Removed dummy variable from "struct mem" and handled all MEM_ALIGNMENT cases
...
Fixes bug #1912
2002-12-18 12:01:24 +00:00
kieranm
af0d6bc881
Removed tcpdump.c from Makefile - it seems to have disappeared
2002-12-18 12:00:14 +00:00
kieranm
771fb0f2cd
Removed "static" from declaration of netif in ip_forward and ip_output
...
(Bug #1909 )
2002-12-18 11:53:26 +00:00
jani
3984e521ad
Move tcpdump.h to unix arch.BTW: as with tcpdump.c no CVS history is lost here.
2002-12-18 10:51:33 +00:00
jani
95c1bca3f1
Moved tcpdump to unix arch since it's specific to that.
2002-12-18 10:48:51 +00:00
jani
4c1069c38b
use memset and memcpy instead of bzero and bcopy throughout lwIP core code.Archs need to update.Bug #1899
2002-12-18 10:40:01 +00:00
jani
219266b7de
replace bcopy and bzero with memcpy memset in tapif.Alloc PBUF_RAW instead of PBUF_LINK on input now that the meaning of PBUF_LINK has changed.
2002-12-18 10:36:43 +00:00
jani
f037bfad1e
check for NO_SYS consistently using #if.Closes bug #1910
2002-12-18 10:03:33 +00:00
jani
c0a8ef6f6f
Use C style comments.In debug stataments cast various struct pointers to void* to
...
avoid printf warnings.misc warnings in etharp.
2002-12-17 09:41:16 +00:00
jani
a071cbf86c
Allocate PBUF_POOL_BUFSIZE at once not harcoded 128.Init MTU for slip - 1500 for
...
now needs a SLIP_MTU in opts (later).Add prototypes for low level sio callbacks.
2002-12-17 09:39:10 +00:00
jani
6dd350348d
fix 'conflicting type for strncmp' warning on linux by including string.h
2002-12-17 09:36:50 +00:00
likewise
5472d94b73
Added comment to ip_input() packet filter.
2002-12-11 00:21:12 +00:00
kieranm
40abd14884
Make tmr in tcp_pcb u32_t to ensure it wraps at the same time as tcp_ticks (Bug #1838 )
2002-12-05 09:52:59 +00:00
kieranm
cac01f7a89
Fixed compiler warnings when ARP_QUEUEING is not defined.
2002-12-05 09:41:52 +00:00
kieranm
7ea512e7fa
Added #include <stdlib.h> to ensure abort() is known
2002-12-05 09:41:04 +00:00
kieranm
8bd53b5be8
Added netbuf_copy_partial declaration
2002-12-05 09:40:19 +00:00
kieranm
96610c9c20
Fixed compiler warning - DEBUGF statement with too many arguments
2002-12-05 09:38:25 +00:00
kieranm
6972e81ac0
Zero pcb->acked if ack does not acknowledge new data
...
- prevents the sent function being called multiple times when no new data has been acknowledged
2002-12-03 10:45:47 +00:00
likewise
ac46dbacfa
Fixed wrong assertion condition.
2002-12-02 16:08:09 +00:00
likewise
ea3b0fc477
Fixed missing end-of-comment.
2002-12-02 13:11:04 +00:00
likewise
99dfbfeef0
Clarified debug messages where the timers are set.
2002-12-02 12:23:37 +00:00
likewise
dcce504ade
First attempt to stylize and document DHCP sources.
2002-12-01 19:49:45 +00:00
likewise
dfa0369678
More complete ARP protocol implementation.
2002-11-29 16:02:11 +00:00
likewise
1d341bae31
Initial commit of C16x/ST10 arch files and CS8900a Ethernet driver.
2002-11-29 10:59:34 +00:00
likewise
0ed4fd6741
Documented ( *output)() and ( *linkoutput)() better for upcoming ARP changes.
2002-11-28 15:03:07 +00:00
likewise
6fc6acf295
Fixed typo: ETHARP_DEGUG
2002-11-28 14:55:10 +00:00
likewise
bda378bb9f
All ARP queueing code is now conditionally compiled-in.
2002-11-28 09:26:18 +00:00
likewise
4619bbc3ea
Changed dhcp_init() to NULL the client_list (on re-inits).
2002-11-25 22:36:25 +00:00
likewise
c73606309f
Fixed argument type compiler warnings of the bcopy() call using type casting.
2002-11-24 22:27:10 +00:00
jani
0442c1e228
new file ip_frag for IP SAR.reassembly code moved from ip.c and fixed
2002-11-22 15:46:50 +00:00
jani
b0500b7b5a
add ip frag switches defaulting to on and increase pbuf pool size for unix demo
2002-11-22 15:35:33 +00:00
jani
38581aad65
include slipif in the objects and widlcard ipv4 so it will include everything in there
2002-11-22 15:24:34 +00:00
jani
53148943bd
add new header file
2002-11-22 13:18:01 +00:00
jani
cfab6dc28b
initialize tapif's mtu to 1500
2002-11-22 12:53:05 +00:00
jani
a57c91404f
add MTU (maximum transmission unit) field to struct netif
2002-11-22 12:52:04 +00:00
jani
8210edfeea
fix pbuf_alloc for layer PBUF_LINK
2002-11-22 08:32:31 +00:00
likewise
c9bd32d12b
Added SNMP call-outs for monitoring of default SNMP status items for TCP/IP.
2002-11-21 10:32:19 +00:00
likewise
dfe1ab7438
Added debug messages for corner cases of TCP states.
2002-11-21 10:29:51 +00:00
jani
e26a3e347b
change tapif 'MTU' to be 1500 just like the linux tap's MTU
2002-11-19 10:20:19 +00:00
likewise
29f5968c23
Conditionally have ARP queue outgoing pbufs.
2002-11-18 10:30:02 +00:00
likewise
1b798ed6d3
Added PBUF_REF (payload external, copied on queueing).
2002-11-18 09:51:48 +00:00
jani
dbac2ff0b3
Move etharp packed structures to the header file.
2002-11-18 08:41:31 +00:00
jani
f2fbcdf00a
typo fixes.The unterminated comment already got two bugreports so it was time.
2002-11-18 07:36:29 +00:00
jani
b8972f5701
forgot to delete 'return' in the last commit
2002-11-18 06:51:53 +00:00
jani
8b9a303e21
pack the fields in dhcp_msg.This way DHCP works on non-byte aligned archs too.
2002-11-15 15:12:49 +00:00
jani
6ef24c4e48
make it call etharp_output_sent() in tapif_output.This is to prevent the recently
...
discovered memory leak.
2002-11-15 15:08:21 +00:00
jani
428293a69b
make lwip_write() use lwip_send() and avoid code duplication.return copylen
...
in lwip_recvfrom since it has already been chosen as the minimum
of len and buflen.
2002-11-15 15:05:06 +00:00
likewise
1dd7e81df7
DHCP cleanup redux (patch #654 ).
2002-11-15 12:44:50 +00:00
likewise
4beff6c2cf
ETHARP_SNOOP_UPDATES made externally configurable.
2002-11-15 12:41:59 +00:00
jani
58d748a8ad
take out the msvc pragmas that cancel each other.leave only one pair around 3 structs.
2002-11-15 12:32:47 +00:00
adamdunkels
43a06e8e37
The code that increased the retransmission time was commented out for some reason. This has been fixed. Also removed some old, out-commented, code.
2002-11-15 09:40:05 +00:00
jani
8f2284d5c7
reclaimed fields have been unused for a while.remove them.
2002-11-14 12:21:55 +00:00
jani
131eed412a
Fix function names in DEBUGF stataments.Remove reference to "reclaimed" field in stat.
2002-11-14 12:20:37 +00:00
jani
330647dad8
Add SLIP_DEBUG
2002-11-14 10:52:03 +00:00
jani
ecf0f56d33
Fix bug which eats pbufs if SLIP_END comes at a pbuf boundary.Also cleaned up and commented the code.
2002-11-14 08:03:25 +00:00
kieranm
05a91a4725
Change type of members of struct stats_mem to "mem_size_t" (Bug #1694 )
2002-11-13 21:55:38 +00:00
kieranm
4b9e035a9f
Initialize err in tcp_slowtmr to prevent compiler warning.
2002-11-13 21:54:22 +00:00
kieranm
f975754ad9
Initialize err in do_close to prevent compiler warning.
2002-11-13 21:53:36 +00:00
likewise
d31ef42acf
ARP entries can now be updated (but not added) on any ARP traffic. Set #define ETHARP_SNOOP_UPDATES 1 to enable.
2002-11-13 09:10:19 +00:00
likewise
f9129c4dcd
Implemented conditional insertion of ARP entries to update_arp_entry using ARP_INSERT_FLAG.
2002-11-13 08:56:11 +00:00
adamdunkels
1f1e6eb5a1
Fixed a few C style issues to make it compatible with the rest of lwIP.
2002-11-13 08:11:52 +00:00
likewise
2382792792
Fixes all issues that showed up after the first commit.
2002-11-11 15:36:31 +00:00
likewise
8cdeaa5148
Hardware address bytes made unsigned char instead of char, consistent with other sources.
2002-11-11 15:35:18 +00:00
likewise
10bf9ef2ef
ip_output() no longer frees pbuf in case no route could be found.
2002-11-11 14:49:17 +00:00
likewise
bca526b634
Workaround for compile error on TCP_REG. This workaround is disabled by default.
2002-11-11 14:47:26 +00:00
likewise
9b76f5bf53
Fixes all issues that showed up after the first commit.
2002-11-11 14:40:03 +00:00
likewise
e41134bbbe
Note about ethernetif.c not up-to-date with etharp.c API. Fixed typo.
2002-11-11 14:37:30 +00:00
likewise
b9353eaf12
Changed static etharp_query() to support queueing packets. This fix missed in last commit.
2002-11-11 14:34:12 +00:00
likewise
3e62b75529
memp_alloc() now zeroes allocated memory (for robustness). Callers must NOT assume this.
2002-11-11 14:31:00 +00:00
likewise
ad55cb6733
Added pbuf_ref_chain() which increases ref count of all pbufs in a chain.
2002-11-11 11:22:49 +00:00
likewise
6c977ad6ed
Surrounded all #include's for packed structs with #ifdef's.
2002-11-08 22:50:49 +00:00
likewise
2b53babf99
Fixed numerous bugs. Re-used etharp_query() in etharp_output(). Added comments and JavaDoc documentation.
2002-11-08 22:14:24 +00:00
likewise
8077dd838c
Added DHCP client by Leon Woestenberg
2002-11-08 15:57:23 +00:00
proff_fs
c22eaf5f52
Added MSVC6 port.
2002-11-08 12:57:58 +00:00
proff_fs
f1c0bbc62b
Added includeds for bpstruct and epstruct.
...
Ports should update from using PACK_STRUCT_BEGIN and PACK_STRUCT_END to use these includes.
Maybe there should be an PACK_STRUCT_USE_INCLUDES ifdef around these, for ports for which PACK_STRUCT_BEGIN and PACK_STRUCT_END works nicely.
2002-11-08 12:54:43 +00:00
likewise
e988d2ee0b
find_arp_entry() returned 0 instead of ARP_TABLE_SIZE if full pending cache (bug #1625 ).
2002-11-06 11:43:21 +00:00
likewise
72e3d22271
To prevent compiler warnings, added UL to some bit mask constants.
2002-11-06 10:00:32 +00:00
cborrelli
585b250540
added v2pro description; added include/ dir description
2002-11-05 23:27:08 +00:00
cborrelli
a582ccfce8
initial version for Xilinx Virtex-II Pro port
2002-11-05 23:14:33 +00:00
cborrelli
6c979fed40
added ifndef around the TCP_TMR defines so that the user can define these values in the lwipopts.h file if needed; this change will not be seen outside the stack unless the user wants to change the default values.
2002-11-05 18:36:32 +00:00
likewise
bb06293b30
Fixed NULL pointer bug ( #1493 ). Fix for memory leak bug ( #1601 ), etharp_output_sent(). Added etharp_query for DHCP.
2002-11-04 14:56:24 +00:00
adamdunkels
50111c8689
Added #ifdefs around each debug output switch so that those can be defined in lwipopts.h instead.
2002-11-03 13:08:23 +00:00
adamdunkels
6028e2c420
Added a 404 error page.
2002-11-03 13:02:35 +00:00
adamdunkels
d6986a757a
Added a 404 error page. The web server crashed without it.
2002-11-03 13:02:12 +00:00
adamdunkels
01cccf4aee
Reformatted the code to make it consistent with the rest of lwIP.
2002-11-02 20:40:06 +00:00
adamdunkels
4e4da8e019
Added short descriptions of the generic network interface code.
2002-11-02 20:38:49 +00:00
kieranm
2a3d00f1ed
New example project demonstrates how to use lwIP as a shared library
2002-10-25 15:31:01 +00:00
kieranm
8b5fcad039
Added check on entire sequence number of received packet being less than the rcv_nxt variable.
...
(see http://www.sics.se/mailing-lists/lwip.html/msg01409.html )
2002-10-24 13:34:36 +00:00
adamdunkels
aa69784495
Replaced a += (combined addition and assignment) with an explicit assignment and addition to avoid compiler warnings.
2002-10-24 13:20:42 +00:00
kieranm
4933bfaaa0
Fixed bug in duplicate ack handling
...
(see http://www.sics.se/mailing-lists/lwip.html/msg01460.html )
Solution adds check on right window edge when duplicate ack received, if it is different it is not a duplicate.
2002-10-24 13:14:52 +00:00
adamdunkels
ef6b7099ba
Removed the old lwIP homepage from the example web server filesystem and replaced it with a simple web page with short information about the lwIP project. Previously the web pages in the example web server was a large portion of the final .tar.gz file.
2002-10-24 13:11:51 +00:00
adamdunkels
1be416fe0e
Added unsigned qualifier to the struct members to avoid compiler warnings.
2002-10-24 13:09:45 +00:00
adamdunkels
524bab33ba
Added unsigned qualifier to the output to avoid compiler warnings for the produced fsdata.c file. Added a final newline to the output to avoid warnings.
2002-10-24 13:09:11 +00:00
adamdunkels
2a3e3b984d
Added typecasts to avoid compiler warnings
2002-10-24 13:04:51 +00:00
adamdunkels
fc242e107d
Removed #inclusion of "netif/sioslipif.h" since the file has been removed and split into two, "netif/sio.h" and "netif/slipif.h".
2002-10-24 12:45:27 +00:00
adamdunkels
a7db4e4347
Rewrote the COREFILES to reflect the changes from tcp_input.c and tcp_output.c to tcp_in.c and tcp_out.c. Removed simrouter and simnode from the all: target.
2002-10-24 12:44:27 +00:00
kieranm
8fe9e007c9
Fixed congestion window bug where the pcb->cwnd variable overflowed when increased.
2002-10-24 10:57:44 +00:00
adamdunkels
05b8bf216c
Added SIO_FIFO_DEBUG and PPP_DEBUG to make -DDEBUG work with arch/unix/netif/sio.c
2002-10-23 20:20:29 +00:00
adamdunkels
faf18b7f9a
Added Author: comment, #ifdef'ed linux specific stuff, added typecast for strlen
2002-10-23 20:18:27 +00:00
adamdunkels
62b78bebe1
Added Author: comment
2002-10-23 20:14:27 +00:00
adamdunkels
27dff9af70
Added typecasts and #includes to keep compiler from issuing warnings
2002-10-23 20:12:18 +00:00
adamdunkels
43c6a550b2
Added #undefs for htonl and friends to keep compiler from issuing "doubly defined" warnings
2002-10-23 20:00:21 +00:00
adamdunkels
814f8c505e
Updated TCP out-of-sequence handling to use recv_data variable instead of old pcb->recv_data.
2002-10-23 19:58:16 +00:00
adamdunkels
fbd9fa5d94
Fixed COREFILES to reflect the tcp_input.c -> tcp_in.c and tcp_output.c -> tcp_out.c filename changes
2002-10-23 19:45:33 +00:00
adamdunkels
28832ba9c2
Added #if LWIP_UDP around udp_init() body, fixed bug where un-connected UDP PCBs did not always receive correct datagram
2002-10-23 19:44:32 +00:00
likewise
6cb3ae7d7f
Mention the search feature mailing list archive. Commited to test CVS email notification.
2002-10-22 23:42:17 +00:00
likewise
bcb2600107
New file structure towards SLIP/PPP. Renamed tcp_*.c for 8.3 sake.
...
See lwip@sics.se Mon, 21 Oct 2002 magnus.ivarsson
2002-10-22 12:32:58 +00:00
likewise
18ee2d90c9
Added URL to web-browsable CVS tree.
2002-10-20 15:24:36 +00:00
likewise
fecc7424e4
Added redundant brackets in an if statement to keep a flaky compiler happy.
2002-10-20 15:20:30 +00:00
likewise
9ede36a386
Allocate struct tcp_seg *prev, *cseg only if TCP_QUEUE_OOSEQ is defined.
2002-10-20 15:19:20 +00:00
likewise
950f2d0f2f
Re-added without vendor tag.
2002-10-20 15:13:14 +00:00
likewise
89bc334515
Removed to get rid of vendor tag.
2002-10-20 15:11:10 +00:00
likewise
67e47cac49
Added explanation on move to Savannah and URLs to its project pages.
2002-10-20 14:58:05 +00:00
likewise
58cb89d261
Removed old Id: tags in 4 non-source-code files.
2002-10-19 19:48:06 +00:00
likewise
fea27fd743
Added FILES without old vendor Id: tag.
2002-10-19 19:41:10 +00:00
likewise
d5ae18e468
Removed FILES to remove the old vendor Id: tag.
2002-10-19 19:39:57 +00:00
likewise
129c4d20c7
Updated texts to reflect move to http://savannah.nongnu.org/projects/lwip/
2002-10-19 16:07:55 +00:00
likewise
76e851fc56
Fixed typo. Testing CVS add as a test.
2002-10-19 13:16:22 +00:00