Commit Graph

  • 8fbaf0304a Added a minimal version of posix fctl() to have a standardised way to set O_NONBLOCK for nonblocking sockets. goldsimon 2010-02-12 17:59:20 +00:00
  • f89c08872c Fixed indentation goldsimon 2010-02-12 17:57:02 +00:00
  • 29eb56a2f6 netif_set_link_up/down: only do something if the link state actually changes goldsimon 2010-02-12 16:50:23 +00:00
  • 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 goldsimon 2010-02-12 16:42:02 +00:00
  • 8768e4488a patch #6865: use so_options SOF_REUSEADDR instead of flags TF_REUSEADDR (which has ben removed again) goldsimon 2010-02-12 16:32:31 +00:00
  • bd3f86e505 Code layout: splitted long line goldsimon 2010-02-12 16:31:18 +00:00
  • 82e4716784 Fixed comment to our flag names goldsimon 2010-02-12 16:30:58 +00:00
  • d3635c5eef patch #6865 (SO_REUSEADDR for TCP): if tcp_pcb.flags has TF_REUSEADDR set, allow binding to endpoint in TIME_WAIT goldsimon 2010-02-12 15:33:02 +00:00
  • c73b1b4fa2 Fixed bug #28865 (Cannot close socket/netconn in non-blocking connect) goldsimon 2010-02-12 15:21:37 +00:00
  • 39df7d048c Added comment about mem_realloc() vs. realloc() goldsimon 2010-02-12 14:56:34 +00:00
  • 3529349470 Fixed compilation for NO_SYS==1 goldsimon 2010-02-12 13:56:51 +00:00
  • 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) goldsimon 2010-02-12 13:49:21 +00:00
  • 2d1631792a struct netconn.socket is only used with LWIP_SOCKET; added comments goldsimon 2010-02-12 09:58:44 +00:00
  • b6babe38ea Use braces for if blocks goldsimon 2010-02-12 09:51:30 +00:00
  • df7e435b86 Fixed bug #28866 (mem_realloc function defined in mem.h) goldsimon 2010-02-12 09:30:31 +00:00
  • 9e59f661bc Fixed a compiler warning (comparison between signed and unsigned) goldsimon 2010-02-10 08:11:18 +00:00
  • 87c2d911c9 Removed invalid assert (always true) goldsimon 2010-02-10 07:58:21 +00:00
  • 44af02aa1e Fixed wrong printf formatter goldsimon 2010-02-10 07:58:01 +00:00
  • 45e51d1929 Removed sys_sem_wait_timeout, added comments to the port-supplied sys(-arch)-functions goldsimon 2010-02-09 21:05:39 +00:00
  • 59a623e648 Use sys_arch_sem_wait instead of sys_sem_wait_timeout (same function, different name) goldsimon 2010-02-09 21:04:50 +00:00
  • 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 goldsimon 2010-02-09 20:23:39 +00:00
  • 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 goldsimon 2010-02-09 20:17:06 +00:00
  • 1550c4215d Fixed bug #28853 (lwip_recvfrom() returns 0 on receive time-out or any netconn_recv() error) goldsimon 2010-02-09 18:46:54 +00:00
  • a84590273d Merge 3 u8_t for netconn-internal status into one u8_t 'flags' to prevent waisting memory when adding more flags goldsimon 2010-02-09 18:41:07 +00:00
  • 6fe258c6bc task #10154 (PPP: Update snmp in/out counters for tx/rx packets) goldsimon 2010-02-09 18:21:21 +00:00
  • 27c1c7a0f7 Added function sys_restart_timeouts() from patch #7085 (Restart system timeout handling) goldsimon 2010-02-09 17:49:20 +00:00
  • a668a4e4d1 Fixed compilation for NO_SYS==1 goldsimon 2010-02-09 17:41:34 +00:00
  • b1250f003d For loopback packets, adjust the stats- and snmp-counters for the loopback netif. goldsimon 2010-02-09 17:00:57 +00:00
  • 3f8e6c423c Fixed unit tests after changing struct ip_addr to ip_addr_t goldsimon 2010-02-09 16:40:52 +00:00
  • 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. goldsimon 2010-02-09 16:01:24 +00:00
  • 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. goldsimon 2010-02-09 11:40:46 +00:00
  • 6af20340dd Minor: Fixed indentation after changing struct ip_addr to ip_addr_t goldsimon 2010-02-09 11:38:59 +00:00
  • 68ab197b68 Fixed a missing cast warning goldsimon 2010-02-09 11:38:00 +00:00
  • 79e6b4c819 Added reentrant versions of inet_ntoa/ipaddr_ntoa inet_ntoa_r/ipaddr_ntoa_r goldsimon 2010-02-08 20:14:21 +00:00
  • ececc3ca45 Internalize another function; use the supplied max_response_time instead of dividing it by 2 goldsimon 2010-02-08 19:50:49 +00:00
  • 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 goldsimon 2010-02-08 19:41:53 +00:00
  • 49274c1507 added netif_s/get_igmp_mac_filter() macros goldsimon 2010-02-08 19:32:40 +00:00
  • 27d4cf6aef Improved IGMP stats (patch from bug #28798) goldsimon 2010-02-08 19:19:26 +00:00
  • b156d392cb Fixed bug #28798 (Error in "Max Response Time" processing) and another bug when LWIP_RAND() returns zero. goldsimon 2010-02-08 18:12:53 +00:00
  • b0b4290c29 Reduced the time SYS_ARCH_PROTECT is protecting the socket array goldsimon 2010-02-08 17:25:57 +00:00
  • 90bed0c5ac Added yet another IP-address-modifying define, ip_addr_set_any() goldsimon 2010-02-08 17:24:08 +00:00
  • b3caddab30 Minor: source code layout goldsimon 2010-02-08 17:12:45 +00:00
  • 1017279e68 Minor: removed one space goldsimon 2010-02-08 17:12:14 +00:00
  • f74cebcbcd Minot: Fixed comments and code style goldsimon 2010-02-08 16:53:47 +00:00
  • 848debf999 Fixed bug #28818 (New connection probably not marked writable on accept()) introduced a week ago while implementing non-blocking connect goldsimon 2010-02-08 12:33:28 +00:00
  • 47756a8faa Fixed macro ip_addr_set_loopback(): htonl was missing (fixes bug #28828: ip_addr.h some macro error) goldsimon 2010-02-08 12:25:01 +00:00
  • 6c027c153b Fixed compiler warnings goldsimon 2010-02-08 12:24:29 +00:00
  • 28dc5f491c Correctly initialize netif flags in pppifNetifInit goldsimon 2010-02-05 11:20:49 +00:00
  • 758e99f362 Added function-like macros to get/set the hostname on a netif goldsimon 2010-02-05 11:17:55 +00:00
  • 010dc6258e Fixed another compiler warning (missing cast) goldsimon 2010-02-05 10:35:47 +00:00
  • a5c5949009 Added missing casts to suppress compiler warnings (this mainly satisfies MSVC - the double casts are a bit ugly but don't hurt...) goldsimon 2010-02-05 10:09:38 +00:00
  • d51d6b2d89 Use macros to compare IP addresses goldsimon 2010-02-05 10:08:49 +00:00
  • c58dfa2156 Added missing casts to suppress compiler warnings goldsimon 2010-02-05 10:08:41 +00:00
  • 5d360a6711 Replaced struct ip_addr by typedef ip_addr_t to make changing the actual implementation behind the typedef easier. goldsimon 2010-02-04 18:47:44 +00:00
  • 24fcf9a86e Accidentally changed the member name of struct ip_addr for testing... goldsimon 2010-02-04 17:25:22 +00:00
  • 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). goldsimon 2010-02-04 17:21:32 +00:00
  • 258fe88232 Added an own debug-print option for timers.c (used TCPIP_DEBUG and SYS_DEBUG as the code was copied from there) goldsimon 2010-02-04 16:53:10 +00:00
  • 9ff7d29696 Fixed compiler warnings when MEM_SIZE < 64000 goldsimon 2010-02-02 20:14:05 +00:00
  • 30d69d68e3 Fix handling of zero-padding and parse file before sname field (if overloaded, according to the RFC) goldsimon 2010-02-02 18:26:40 +00:00
  • 4495d9ef5b Fixed an error in dhcp_free_request() from dhcp_inform() goldsimon 2010-02-02 16:30:11 +00:00
  • a66039b86c Let netdb use a memp pool for allocating memory when getaddrinfo() is called. goldsimon 2010-02-01 21:04:29 +00:00
  • 81c5d9e983 Prevent mem_free (leave struct dhcp allocated on dhcp_stop) to prevent calling mem_malloc when restarting dhcp later goldsimon 2010-02-01 20:20:38 +00:00
  • 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() goldsimon 2010-02-01 19:55:16 +00:00
  • 72d6f1a418 Don't parse broadcast option, we don't use it anyway (made up from ipaddr and netmask), layout change of struct dhcp goldsimon 2010-01-31 18:59:37 +00:00
  • 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. goldsimon 2010-01-31 17:27:15 +00:00
  • 8712deb0b2 Don't call the link-callback from netif_set_up/down() since this invalidly retriggers DHCP. goldsimon 2010-01-31 13:30:47 +00:00
  • 2e8de4f601 Updated comment about recv_bufsize goldsimon 2010-01-30 15:20:01 +00:00
  • c22d3b4c98 Use SYS_LIGHTWEIGHT_PROT instead of a semaphore to protect the sockets array since the protection time is short goldsimon 2010-01-30 15:01:29 +00:00
  • f8c22c7428 Moved freeing a socket to its own function (free_socket, like alloc_socket goldsimon 2010-01-30 14:19:18 +00:00
  • 855dcadf7a Added except set support in select (patch #6860) goldsimon 2010-01-29 23:05:33 +00:00
  • 9c41e1eea3 Replaced tabs with spaces goldsimon 2010-01-29 23:04:06 +00:00
  • c70c3eac62 Added function-like macro for struct netconn::non_blocking goldsimon 2010-01-29 22:21:45 +00:00
  • e58f4c567a Add non-blocking support for connect (partly from patch #6860) plus many cleanups in socket & netconn API goldsimon 2010-01-29 22:09:31 +00:00
  • 1dd8300e69 Added comments goldsimon 2010-01-29 14:41:54 +00:00
  • 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. goldsimon 2010-01-29 08:20:32 +00:00
  • 32c16fad42 igmp related: renamed netif pointers from 'interface' to 'netif' to not use keywords (or at least my editor highlights it as one...) goldsimon 2010-01-28 18:42:40 +00:00
  • 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 goldsimon 2010-01-28 18:27:26 +00:00
  • 95445fc328 Ensure ssthresh >= 2*MSS kieranm 2010-01-28 13:14:42 +00:00
  • 21e3cde95c Added missing casts (bug #28659) goldsimon 2010-01-28 12:05:14 +00:00
  • d587940801 Keep 'const' of varius snmp structs the same throughout 'derived structs' goldsimon 2010-01-28 12:04:06 +00:00
  • f5d4f3d83c For wrong configurations, let the test fail instead of the compiler goldsimon 2010-01-27 20:37:02 +00:00
  • 04a8b0f85d Added TCP_SNDQUEUELOWAT corresponding to TCP_SNDLOWAT and added tcp_sndqueuelen() - this fixes bug #28605 goldsimon 2010-01-27 18:24:57 +00:00
  • 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 goldsimon 2010-01-27 17:36:37 +00:00
  • 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()! goldsimon 2010-01-27 17:22:06 +00:00
  • 606fed8896 Use memp pools for snmp instead of the heap; added 4 new pools. goldsimon 2010-01-26 20:28:24 +00:00
  • a5463f0400 Moved missing include goldsimon 2010-01-26 16:09:03 +00:00
  • 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) goldsimon 2010-01-25 17:44:07 +00:00
  • 5d3cab0042 Added one more missing cast goldsimon 2010-01-25 09:19:52 +00:00
  • e678e1bdcb bug #28659: Missing casts goldsimon 2010-01-25 08:24:30 +00:00
  • 1811a344f5 Renamed the private mib node from 'private' to 'mib_private' to *not* use reserved C/C++ keywords goldsimon 2010-01-24 17:25:22 +00:00
  • 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 goldsimon 2010-01-24 17:16:37 +00:00
  • 9dd6c28523 bug #26523: Compiler Warnings goldsimon 2010-01-24 14:35:28 +00:00
  • 61e5301d49 bug #26523: Compiler Warnings goldsimon 2010-01-24 13:19:34 +00:00
  • 408829bcf6 Fixed compilation for LWIP_TCPIP_CORE_LOCKING goldsimon 2010-01-23 18:13:55 +00:00
  • dbcce3a4be bug #26523: Compiler Warnings goldsimon 2010-01-23 17:48:36 +00:00
  • 426dd9bfad Fixed bug #28716: select() returns 0 after waiting for less than 1 ms goldsimon 2010-01-23 15:01:15 +00:00
  • 82318c0ef1 Fixed bug #28651 (tcp_connect: no callbacks called if tcp_enqueue fails) both in raw- and netconn-API goldsimon 2010-01-21 18:43:37 +00:00
  • 60696a8485 Removed unused function declaration for netbuf_len (is a macro now) goldsimon 2010-01-21 17:18:15 +00:00
  • 7044385d8e Fixed netconn_err() macro goldsimon 2010-01-20 07:37:24 +00:00
  • a7139ef06b Added missing include goldsimon 2010-01-20 07:36:45 +00:00