sg
|
4e520cdd30
|
fixed bug #37068 (netif up/down handling is unclear): correclty separated administrative status of a netif (up/down) from 'valid address' status ATTENTION: netif_set_up() now always has to be called, even when dhcp/autoip is used!
|
2015-03-05 20:57:43 +01:00 |
|
sg
|
ec5cf8593e
|
Continued chrysn's work: changed nearly all functions taking 'ip(X)_addr_t' pointer to take const pointers (changed user callbacks: raw_recv_fn, udp_recv_fn; changed port callbacks: netif_output_fn, netif_igmp_mac_filter_fn)
|
2015-02-22 21:46:35 +01:00 |
|
Ivan Delamer
|
b938154f6b
|
Removed unused netif flag for DHCP
|
2015-02-19 16:22:19 -07:00 |
|
goldsimon
|
9048a7f021
|
fixed compiler warning in dhcp.c
|
2015-02-18 09:02:37 +01:00 |
|
sg
|
90db821036
|
patch #8361 "Add support for NTP option in DHCP" (slighly modified)
|
2015-02-16 21:23:06 +01:00 |
|
goldsimon
|
32c6f96000
|
prevent dhcp from starting when netif link is down (only when LWIP_DHCP_CHECK_LINK_UP==1, which is disabled by default for compatibility reasons)
|
2014-12-19 16:04:48 +01:00 |
|
Simon Goldschmidt
|
33237419c1
|
Parts of patch #8397 Typos corrected in comments and text outputs
|
2014-09-18 21:15:13 +02:00 |
|
Simon Goldschmidt
|
3f016fcc5a
|
Multiple small/minor issues: bug #36492 Static Analysis on code 1.4.0
|
2014-04-06 21:43:37 +02:00 |
|
Simon Goldschmidt
|
be75c483d0
|
Fixed bug #41787 DHCP Discovery is invalid when an IP is set to thet netif (send discover, request and decline from 'any').
Addd functions to send udp/ipv4/ipv6 packets with source address 'any' although netif has an address assigned
|
2014-04-06 20:32:37 +02:00 |
|
Simon Goldschmidt
|
c82f04f54c
|
fixed bug #40303 DHCP xid renewed when sending a DHCPREQUEST
|
2014-02-27 22:44:16 +01:00 |
|
Sylvain Rochet
|
c681e5e082
|
reverted dhcp.c from DOS (CRLF) to UNIX (LF) format
|
2013-04-26 19:52:42 +02:00 |
|
Simon Goldschmidt
|
d237ec7e78
|
Changed C++ comments to C style
|
2013-01-11 21:27:45 +01:00 |
|
goldsimon
|
99aea7eb6f
|
Added brackets, completed CHANGELOG
|
2012-09-26 21:30:01 +02:00 |
|
Henrik Persson
|
b4ac36337f
|
Fix corner case with dhcp timeouts
If t1 >= t2 timeout then only t2 timer should be scheduled. This can happen
when a sub 1 minute lease is received.
|
2012-09-26 21:25:04 +02:00 |
|
goldsimon
|
7072bc3203
|
Added brackets, completed CHANGELOG
|
2012-09-26 21:21:26 +02:00 |
|
Henrik Persson
|
7e9f000d0b
|
Segfault in dhcp_parse_reply if no end marker
If no endmarker is present in a dhcp reply a null pointer is potentially
dereferenced.
Add fix and test case as proof of concept.
|
2012-09-19 22:11:56 +02:00 |
|
goldsimon
|
bab8c82a35
|
fixed bug #36645: Calling dhcp_release before dhcp_start dereferences NULL
|
2012-08-13 21:50:15 +02:00 |
|
goldsimon
|
c69914367d
|
Sanity-check the size of netif->hwaddr
|
2012-08-13 20:57:19 +02:00 |
|
goldsimon
|
1704d21356
|
dhcp: check array bounds before accessing it (bug #36170)
|
2012-05-03 20:21:50 +02:00 |
|
goldsimon
|
b15e60243b
|
- fixed bug #35151: DHCP asserts on incoming option lengths;
- fixed wrong CHANGELOG of the last commit
|
2012-01-20 21:36:52 +01:00 |
|
goldsimon
|
c8647c0396
|
implemented API functions to access so_options of IP pcbs (UDP, TCP, RAW) (fixes bug #35061)
|
2011-12-17 22:12:01 +01:00 |
|
goldsimon
|
cfb70bccc1
|
bug #34406 dhcp_option_hostname() can overflow the pbuf
|
2011-09-27 07:49:04 +02:00 |
|
Simon Goldschmidt
|
e27d34d118
|
DHCP uses LWIP_RAND() for xid's (bug #30302)
|
2011-09-03 22:27:06 +02:00 |
|
Simon Goldschmidt
|
c55f6b40ec
|
fixed bug #34122 dhcp: hostname can overflow
|
2011-08-24 20:12:23 +02:00 |
|
goldsimon
|
d0026793bf
|
Cleaned up usage of sys.h a bit
|
2011-06-26 16:51:04 +00:00 |
|
goldsimon
|
732cac1c0e
|
Moved static variable from inside the function to global scope
|
2011-06-07 19:10:55 +00:00 |
|
goldsimon
|
f3c1686a40
|
replaced tab with spaces
|
2011-05-16 18:45:51 +00:00 |
|
goldsimon
|
856ccb5bb7
|
Added missing U/UL modifiers to fix 16-bit-arch portability.
|
2011-02-18 13:31:28 +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
|
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
|
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
|
4b0be4a477
|
Fixed invalid fix for bug #30038
|
2010-06-14 19:18:11 +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
|
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
|
1c23bfdc7f
|
Only add hostname if it's not empty (strlen > 0)
|
2010-03-08 12:15:58 +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
|
96e9689dbd
|
Use new macro ip_addr_copy where applicable
|
2010-02-14 12:42:49 +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
|
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
|
90bed0c5ac
|
Added yet another IP-address-modifying define, ip_addr_set_any()
|
2010-02-08 17:24:08 +00:00 |
|
goldsimon
|
6c027c153b
|
Fixed compiler warnings
|
2010-02-08 12:24:29 +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
|
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
|
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
|
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 |
|