X-Git-Url: https://git.decadent.org.uk/gitweb/?p=odhcp6c.git;a=blobdiff_plain;f=src%2Fdhcpv6.c;h=cfa3f29e17f5ec39415572cc89207b88730d2dcd;hp=a3e0a18e50ec1644b07110e371ac52bd6283ce27;hb=b30bce275255b48de02783e85b8cb3e0ba9dea2e;hpb=4a169b02b003fe50b2bccdf6b8c78a4de245669f 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];