summaryrefslogtreecommitdiff
path: root/src/dhcpv6.c
Commit message (Collapse)AuthorAgeFilesLines
...
* add support Vendor Class optionKaspar Schleiser2014-01-271-7/+18
| | | | | | | | | This patch adds cli option "-V <hex-string>" which will enable sending of DHCPv6 option 16 ("vendor class"). Based on Patch by Christian Carstensen Contributed by T-Labs, Deutsche Telekom Innovation Laboratories
* allow disabling "client fqdn" and "accept reconfiguration" optionsKaspar Schleiser2014-01-271-2/+13
| | | | | | | | | | Some DHCPv6 servers require these to be absent, so add command line switches that allow disabling them. (includes "Combination of command line switches -f and -a broke "-N none" and IA_PD." from Christian Carstensen) Contributed by T-Labs, Deutsche Telekom Innovation Laboratories
* add support for multiple prefixes with distinct IAIDsKaspar Schleiser2014-01-271-51/+97
| | | | | | | | | | | Changes from v1: - removed some unneeded changes - use *_add_state instead of (semantically identical and so unnecessary) *_append_state This is missing IAID validation for prefixes. Contributed by T-Labs, Deutsche Telekom Innovation Laboratories
* added command line switch for strict oroKaspar Schleiser2014-01-271-4/+6
| | | | | | | Now "-R" command line switch makes odhcpv6c only request those options specified by "-r". Contributed by T-Labs, Deutsche Telekom Innovation Laboratories
* fix NTP server option handlingKaspar Schleiser2014-01-271-3/+8
| | | | | | | | | previously, only option 56 (NTP server) was supported, but named SNTP_* throughout code and in the scripts environment. This patch fixes this and adds optnion 31 (SNTP Servers) support. Uses NTP_IP and NTP_FQDN and SNTP_IP in script environment. Contributed by T-Labs, Deutsche Telekom Innovation Laboratories
* Whitespace fixesMatthias Schiffer2014-01-101-14/+14
| | | | Mostly trailing spaces or whitespace in empty lines.
* Switch to a leaner MD5 librarySteven Barth2014-01-051-9/+9
|
* Revert to old behaviour regarding information requestsSteven Barth2013-12-301-1/+4
|
* Revert "Server unicast option support"Steven Barth2013-12-301-44/+3
| | | | | | This reverts commit 348cbc2efee1281c3b39e705114f44eca72a8247. Avoid too much bloat for rarely useful functionality
* Fix compilation and cleanupSteven Barth2013-12-301-7/+5
|
* Support for SOL_MAX_RT and INF_MAX_RT options (RFC7083)Hans Dedecker2013-12-301-16/+50
|
* Drop DHCPv6 messages containing invalid option lengthHans Dedecker2013-12-271-1/+1
|
* Revert "Fix handling of DHCPv6 messages containing option lengths exceeding ↵Hans Dedecker2013-12-271-5/+1
| | | | | | the message" This reverts commit 26c5d8724355b29694af684ee29b47e52129a33c.
* Fix handling of DHCPv6 messages containing option lengths exceeding the messageHans Dedecker2013-12-121-1/+5
|
* Fix server candidate selection logicHans Dedecker2013-12-121-17/+23
| | | | | Flush all server candidates for unbound client in stateless mode Fix initial server candidate promotion condition
* Fine tune server candidate selection logicHans Dedecker2013-12-011-45/+91
| | | | | | | | | | | DHCPv6 server info from ADVERTISE messages is inserted in the server candidate list sorted according to the preference value (highest values first in the list). Server candidate list can only contain one entry from a given server. Server with highest preference value is selected; in case the server does not respond the next server is selected from the list. When the server candidate list is empty and no servers responded; the client restarts the DHCPv6 server discovery process
* Fix receive rounds end conditionHans Dedecker2013-12-011-1/+1
|
* Remove setsockopt error checkingHans Dedecker2013-12-011-24/+15
|
* Server unicast option supportHans Dedecker2013-11-131-3/+46
|
* Improved message validation checks and socket error hardeningHans Dedecker2013-11-131-53/+107
|
* Be less verbose when sending solicitsSteven Barth2013-10-291-2/+3
|
* Fix compilation on 64-bit platformsSteven Barth2013-10-231-3/+5
|
* odhpc6c: status code support in replyHans Dedecker2013-10-231-52/+224
| | | | | | | | | | | | | | | | | | | | | | | | The patch implements support for status code handling in reply messages as described in RFC3313 paragraph 18.1.8. The client will *log the status codes returned by the client *send a request if no binding status code is returned for a given IA *send further renew/rebind if the IA was not present in the reply *terminate message exchange when no prefix/no address status code is returned in reponse to a request *terminate message exchange when unspec fail status code is returned *calculate t1/t2/t3 when all IA's have been processed and based on recorded t1/t2/valid timer values per IA Without this patch I have seen issues with request messages send without any IA_PD/IA_NA and t1/t2/t3 timer values which were not correct. These changes have been tested intensive against an ISC DHCPv6 server Signed-off-by: Hans Dedecker <hans.dedecker@gmail.com>
* odhcp6c: preference and status code support in advertiseHans Dedecker2013-10-231-10/+29
| | | | | | | | | | | The patch implements handling of advertise messages as described in RFC3315 paragraph 17.1.2. Client will stop collecting advertise messages if preference option is equal to 255 or if the first RT has elapsed. Status codes are handled in the advertise message depending on the startup parameters Signed-off-by: Hans Dedecker <hans.dedecker@gmail.com>
* odhcp6c: message retransmission count supportHans Dedecker2013-10-231-37/+46
| | | | | | | | The patch implements message retransmission count (MRC) support as described in RFC3315 paragraphs 5.5 and 14 for DHCPv6 request/release/ decline messages. Patch also disables multicast packets loopback. Signed-off-by: Hans Dedecker <hans.dedecker@gmail.com>
* Fix handling of PD-AdvertisementsSteven Barth2013-10-171-1/+1
|
* Make SOL_MAX_RT configurable and default to 120Steven Barth2013-10-141-2/+3
|
* Prefer servers with bigger prefixesSteven Barth2013-10-141-5/+10
|
* Don't hang indefinitely if REQUEST is never answeredSteven Barth2013-10-111-2/+4
|
* odhcp6c: improve server selectionSteven Barth2013-10-071-23/+32
|
* Handle NoAddrsAvail IA-statusSteven Barth2013-09-211-1/+2
|
* Restart transaction if server returns IAID error codeSteven Barth2013-09-181-6/+8
|
* Add default T1, T2, T3 for buggy serversSteven Barth2013-09-121-0/+9
|
* Merge preliminary prefix class supportSteven Barth2013-08-311-11/+15
|
* Merge remote-tracking branch 'up/master' into hnetMarkus Stenberg2013-08-011-7/+7
|\
| * Fix including PD in requestSteven Barth2013-08-011-7/+7
| |
* | Merge remote-tracking branch 'up/master' into hnetMarkus Stenberg2013-07-311-6/+33
|\ \ | |/
| * Include IAs in Request to be more compatible with some serversSteven Barth2013-07-311-3/+30
| |
| * Add better overflow safety in resendSteven Barth2013-07-031-3/+3
| |
* | Add support for colored address in IA_NAMaico Le Pape2013-07-311-0/+9
| | | | | | | | Signed-off-by: Maico Le Pape <mlepape@cisco.com>
* | Merge branch 'master' into hnetMarkus Stenberg2013-06-241-57/+170
|\ \ | |/ | | | | | | | | | | Conflicts: README src/dhcpv6.c src/odhcp6c.h
| * Honor T1 and T2 from server betterSteven Barth2013-05-211-17/+11
| |
| * Fix reconfigure accept option transmissionSteven Barth2013-05-211-4/+3
| |
| * Fix IA expiring logicSteven Barth2013-05-201-4/+6
| |
| * Add support for DS-Lite AFTRSteven Barth2013-05-121-4/+13
| |
| * Set default SOL_MAX_RT to 1hSteven Barth2013-04-231-1/+1
| |
| * Several bugfixesSteven Barth2013-04-221-3/+4
| |
| * Set SOL_MAX_RT to 7200 according to RFC 6204 bisSteven Barth2013-04-211-1/+1
| |
| * Add reconfigure authenticationSteven Barth2013-04-081-4/+50
| |
| * Initial support for RFC 6603Steven Barth2013-04-071-21/+84
| |