Mercurial > hg > dhcpcd
changeset 2260:8b82f0165b96 draft
Implement Force Renew Nonce Capability option, RFC6704
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Fri, 31 Jan 2014 12:26:39 +0000 |
| parents | 7502a71beb0a |
| children | 7647be917379 |
| files | dhcp.c dhcp.h dhcpcd-definitions.conf dhcpcd.8.in |
| diffstat | 4 files changed, 12 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/dhcp.c Fri Jan 31 12:03:54 2014 +0000 +++ b/dhcp.c Fri Jan 31 12:26:39 2014 +0000 @@ -866,6 +866,11 @@ p += ifo->vendor[0] + 1; } + /* We support HMAC-MD5 */ + *p++ = DHO_FORCERENEW_NONCE; + *p++ = 1; + *p++ = AUTH_ALG_HMAC_MD5; + if (ifo->vivco_len) { *p++ = DHO_VIVCO; lp = p++;
--- a/dhcp.h Fri Jan 31 12:03:54 2014 +0000 +++ b/dhcp.h Fri Jan 31 12:26:39 2014 +0000 @@ -108,10 +108,11 @@ DHO_RAPIDCOMMIT = 80, /* RFC 4039 */ DHO_FQDN = 81, DHO_AUTHENTICATION = 90, /* RFC 3118 */ + DHO_DNSSEARCH = 119, /* RFC 3397 */ + DHO_CSR = 121, /* RFC 3442 */ DHO_VIVCO = 124, /* RFC 3925 */ DHO_VIVSO = 125, /* RFC 3925 */ - DHO_DNSSEARCH = 119, /* RFC 3397 */ - DHO_CSR = 121, /* RFC 3442 */ + DHO_FORCERENEW_NONCE = 145, /* RFC 6704 */ DHO_SIXRD = 212, /* RFC 5969 */ DHO_MSCSR = 249, /* MS code for RFC 3442 */ DHO_END = 255
--- a/dhcpcd-definitions.conf Fri Jan 31 12:03:54 2014 +0000 +++ b/dhcpcd-definitions.conf Fri Jan 31 12:26:39 2014 +0000 @@ -164,6 +164,9 @@ # Their code is matched to the enterprise number defined above # see the end of this file for an example +# DHCP FORCERENEW Nonce Capability, RFC6704 +define 145 array byte forcerenew_nonce_capable + # DHCP IPv6 Rapid Deployment on IPv4 Infrastructures, RFC5969 define 212 rfc5969 sixrd
--- a/dhcpcd.8.in Fri Jan 31 12:03:54 2014 +0000 +++ b/dhcpcd.8.in Fri Jan 31 12:26:39 2014 +0000 @@ -656,7 +656,7 @@ RFC\ 3118, RFC\ 3203, RFC\ 3315, RFC\ 3361, RFC\ 3633, RFC\ 3396, RFC\ 3397, RFC\ 3442, RFC\ 3495, RFC\ 3925, RFC\ 3927, RFC\ 4039, RFC\ 4075, RFC\ 4242, RFC\ 4361, RFC\ 4390, RFC\ 4702, RFC\ 4074, RFC\ 4861, RFC\ 4833, RFC\ 5227, -RFC\ 5942, RFC\ 5969, RFC\ 6106. +RFC\ 5942, RFC\ 5969, RFC\ 6106, RFC\ 6704. .Sh AUTHORS .An Roy Marples Aq Mt roy@marples.name .Sh BUGS
