summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVladislav Grishenko <themiron@mail.ru>2015-07-13 18:12:41 +0500
committerVladislav Grishenko <themiron@mail.ru>2015-07-13 18:12:41 +0500
commitb30bce275255b48de02783e85b8cb3e0ba9dea2e (patch)
treea14a412db070a98aa47017943181e99e53d01775 /src
parent4a169b02b003fe50b2bccdf6b8c78a4de245669f (diff)
parent523431acff2f8afc2309c2e17b3add83d03125dc (diff)
downloadodhcp6c-b30bce275255b48de02783e85b8cb3e0ba9dea2e.tar.gz
Merge branch 'upstream'
Diffstat (limited to 'src')
-rw-r--r--src/dhcpv6.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/dhcpv6.c b/src/dhcpv6.c
index a3e0a18..cfa3f29 100644
--- a/src/dhcpv6.c
+++ b/src/dhcpv6.c
@@ -797,18 +797,6 @@ static int dhcpv6_handle_advert(enum dhcpv6_msg orig, const int rc,
if (otype == DHCPV6_OPT_SERVERID && olen <= 130) {
memcpy(cand.duid, odata, olen);
cand.duid_len = olen;
- } else if (otype == DHCPV6_OPT_STATUS && olen >= 2) {
- int error = ((int)odata[0] << 8 | (int)odata[1]);
-
- switch (error) {
- case DHCPV6_NoPrefixAvail:
- // Status code on global level
- cand.preference -= 2000;
- break;
-
- default :
- break;
- }
} else if (otype == DHCPV6_OPT_PREF && olen >= 1 &&
cand.preference >= 0) {
cand.preference = pref = odata[0];