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 |
|
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
|
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
|
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
|
dbcce3a4be
|
bug #26523: Compiler Warnings
|
2010-01-23 17:48:36 +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
|
b09b8a0ccc
|
Tiny code size improvement using goto instead of duplicating code
|
2009-10-26 09:55:46 +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
|
f2f20cf133
|
fixed invalid dependency to etharp_query if DHCP_DOES_ARP_CHECK==0
|
2009-08-25 17:49:47 +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
|
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 |
|
fbernon
|
e29f94a980
|
dhcp.c, netbios.c: Changes if IF_SOF_BROADCAST is enabled.
|
2009-05-04 08:40:44 +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
|
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
|
620b3e6739
|
task #9192: mem_free of dhcp->options_in and dhcp->msg_in
|
2009-04-15 19:53:59 +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
|
bf09400c4c
|
fixed bug #25345 (DHCPDECLINE is sent with "Maximum message size" option)
|
2009-02-12 16:16:25 +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
|
9ccd31a12e
|
fixed bug #22804: dhcp_stop doesn't clear NETIF_FLAG_DHCP (flag now cleared)
|
2008-04-15 17:24:54 +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
|
bfd96264e6
|
Minor changes: fix warning in dhcp_unfold_reply when LWIP_DEBUG=0
|
2008-01-21 16:55:26 +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
|
081e4d9209
|
Minor change: use goto instead of redundant code to return on error in dhcp_rev().
|
2007-12-02 14:40:32 +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
|
511cdfb951
|
Minor coding style changes, added some comments
|
2007-11-25 14:23:59 +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 |
|
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 |
|
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 |
|