Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use more conventional way for the alignment | Vladislav Grishenko | 2016-01-31 | 1 | -3/+5 |
| | |||||
* | Merge pull request #44 from bwhacks/alignment-fixes | Steven Barth | 2016-01-31 | 1 | -7/+18 |
|\ | | | | | Alignment fixes | ||||
| * | Fix alignment of hash buffer in dhcpv6_response_is_valid | Ben Hutchings | 2016-01-28 | 1 | -1/+2 |
| | | | | | | | | | | | | | | md5_final() writes to the hash buffer in 32-bit chunks, so it needs to be 32-bit aligned. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> | ||||
| * | Fix unaligned 32-bit reads from DHCP packets | Ben Hutchings | 2016-01-28 | 1 | -5/+13 |
| | | | | | | | | Signed-off-by: Ben Hutchings <ben@decadent.org.uk> | ||||
| * | Fix alignment of buffers in ra_process and dhcpv6_request | Ben Hutchings | 2016-01-28 | 1 | -1/+3 |
| | | | | | | | | | | | | | | | | | | | | The packet buffer needs to be 32-bit aligned to ensure that the various 32-bit fields we pick out are naturally aligned. The control message buffers needs to be naturally aligned for struct cmsghdr. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> | ||||
* | | Fix end pointer passed from dhcpv6_handle_reply() to dhcpv6_parse_ia() | Ben Hutchings | 2016-01-28 | 1 | -1/+1 |
|/ | | | | | | The end of the IA option is odata + olen; there's no need to add anything. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> | ||||
* | Add missing option length checks in dhcpv6_handle_advert | Ben Hutchings | 2016-01-28 | 1 | -2/+4 |
| | | | | | | | These might be redundant with checks elsewhere but it's better to be safe. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> | ||||
* | Fix potential log forgery via status string | Ben Hutchings | 2016-01-28 | 1 | -6/+13 |
| | | | | | | | | | We should not include any control characters from the server status message when logging it; in particular if we include '\n' this could result in additional arbitrary log lines. In dhcpv6_log_status_code, replace all control characters with '?'. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> | ||||
* | Check for unsupported PD exclusion configuration in dhcpv6_parse_ia | Ben Hutchings | 2016-01-28 | 1 | -1/+1 |
| | | | | | | | | | | | | We currently only support PD exclusions that only affect bits 64-95 of the address, so we require: 32 <= PD prefix length < exclusion prefix length <= 64 The first inequality was not validated, and this could result in a buffer overflow when generating the next request message. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> | ||||
* | Fix memory leak in dhcpv6_add_server_cand in case odhcp6c_insert_state fails | Ben Hutchings | 2016-01-28 | 1 | -1/+5 |
| | | | | | | | | If we fail to store information from the new server, the associated NA and PD options will never be freed. An attacker could use this for denial-of-service. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> | ||||
* | Merge branch 'upstream' | Vladislav Grishenko | 2015-07-13 | 1 | -12/+0 |
|\ | |||||
| * | dhcpv6: remove dead code | Steven Barth | 2015-07-13 | 1 | -12/+0 |
| | | |||||
* | | Avoid solicit for zero-length prefix | Vladislav Grishenko | 2015-07-12 | 1 | -4/+8 |
|/ | |||||
* | dhcpv6: clear CUSTOM_OPTS in a more sane manner | Steven Barth | 2015-06-09 | 1 | -0/+1 |
| | | | | Signed-off-by: Steven Barth <steven@midlink.org> | ||||
* | Avoid of waiting for Advertise in stateless-only mode | Vladislav Grishenko | 2015-04-25 | 1 | -5/+19 |
| | | | | | | | Start with Information-request when configured not to ask IA_NA/IA_PD. It allows to complete the exchange using only two messages, instead of four, and fixes infinite Advertise waiting loop with servers that just ignore Solicit messages. | ||||
* | scan-code fixes | Steven Barth | 2015-04-14 | 1 | -130/+130 |
| | |||||
* | Improve handling of DNS search domains | Steven Barth | 2015-04-13 | 1 | -2/+1 |
| | | | | Signed-off-by: Steven Barth <steven@midlink.org> | ||||
* | Remove obsolete prefix class support | Steven Barth | 2015-04-12 | 1 | -22/+1 |
| | | | | Signed-off-by: Steven Barth <steven@midlink.org> | ||||
* | Fix handling of DHCPv6 replies containing unrequested IA_NA/IA_PD options | Vladislav Grishenko | 2015-02-17 | 1 | -0/+4 |
| | |||||
* | set default information refresh time to 86400 as per RFC 4242v1.1 | Steven Barth | 2015-01-13 | 1 | -1/+1 |
| | |||||
* | Don't apply excess filter to DHCPv6 and unify odhcp6c_update_entry | Steven Barth | 2014-12-10 | 1 | -2/+2 |
| | |||||
* | More compatibility with non RFC-compliant servers | Steven Barth | 2014-11-30 | 1 | -2/+13 |
| | | | | Signed-off-by: Steven Barth <steven@midlink.org> | ||||
* | Be less picky when erroring out due to strange IA status-codes | Steven Barth | 2014-11-28 | 1 | -16/+1 |
| | |||||
* | Fix initial delay of SOLICIT message | Steven Barth | 2014-11-28 | 1 | -2/+2 |
| | | | | Signed-off-by: Steven Barth <steven@midlink.org> | ||||
* | Fix msghdr initialization on musl | Steven Barth | 2014-11-18 | 1 | -3/+5 |
| | |||||
* | Fix parsing empty IA_NA, IA_PD and invalid IA_ADDR options | Vladislav Grishenko | 2014-10-10 | 1 | -6/+7 |
| | |||||
* | Export DHCPv6 server address to env | Steven Barth | 2014-10-06 | 1 | -9/+16 |
| | |||||
* | Enable softwire-support by defaultv1.0 | Steven Barth | 2014-08-25 | 1 | -4/+0 |
| | |||||
* | Also test for correct IA-ID for IA_NA | Steven Barth | 2014-08-22 | 1 | -1/+1 |
| | |||||
* | ia_na: use big-endian 1 as IAID | Steven Barth | 2014-08-22 | 1 | -1/+1 |
| | |||||
* | Filter FQDN as well | Steven Barth | 2014-05-30 | 1 | -0/+1 |
| | |||||
* | Improve filter | Steven Barth | 2014-05-30 | 1 | -1/+1 |
| | |||||
* | filter DNS-domain from passthru | Steven Barth | 2014-05-23 | 1 | -0/+1 |
| | |||||
* | Add support for DHCPv6 option passthru | Steven Barth | 2014-05-23 | 1 | -10/+33 |
| | |||||
* | Ignore multiple MAP-E instances for now and output DMR / BR for every rule | Steven Barth | 2014-04-28 | 1 | -1/+4 |
| | |||||
* | Initial support for MAP & LW4O6 provisioning | Steven Barth | 2014-04-28 | 1 | -0/+16 |
| | |||||
* | Fix fallout | Steven Barth | 2014-04-09 | 1 | -0/+2 |
| | |||||
* | Revert "Revert to old behaviour regarding information requests" | Steven Barth | 2014-04-09 | 1 | -4/+1 |
| | | | | This reverts commit c98181c4a48c57e405effd1dc9046aaaee6d480f. | ||||
* | Add user-class option in help text and minor clean up | Hans Dedecker | 2014-04-03 | 1 | -1/+0 |
| | |||||
* | Correctly clear CER | Steven Barth | 2014-04-01 | 1 | -0/+1 |
| | |||||
* | Don't disable looping (meh) | Steven Barth | 2014-04-01 | 1 | -1/+0 |
| | |||||
* | Add initial support for CER-ID | Steven Barth | 2014-03-30 | 1 | -1/+12 |
| | |||||
* | Fix building with clang 3.4 | Steven Barth | 2014-03-18 | 1 | -1/+1 |
| | |||||
* | Fix HMAC-MD5 verify in reconfigure | Steven Barth | 2014-03-11 | 1 | -2/+4 |
| | |||||
* | Reintroduce Reconfigure-Accept in Request-Message | Steven Barth | 2014-02-17 | 1 | -6/+4 |
| | |||||
* | use enum to specify order and indexes of iov struct. | Kaspar Schleiser | 2014-02-12 | 1 | -22/+39 |
| | | | | | | | | | This helps to avoid brainfuck index calculation errors when adding features. On my build machine (arch linux x86_64), the stripped binary has exactly the same size, so this patch should produce the same binary, but increase code maintainability. | ||||
* | Fix fallout from userclass addition | Steven Barth | 2014-02-06 | 1 | -5/+5 |
| | |||||
* | Fix T1, T2 and T3 timer values in case of infinite time values | Hans Dedecker | 2014-02-05 | 1 | -11/+16 |
| | | | | Honor T1, T2 and T3 timer values from DHCPv6 server in case of infinite values | ||||
* | Add user-class option | Steven Barth | 2014-02-05 | 1 | -3/+11 |
| | |||||
* | Bump copyright headers | Steven Barth | 2014-01-29 | 1 | -1/+1 |
| |