diff options
author | Steven Barth <steven@midlink.org> | 2015-07-13 12:38:42 +0200 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2015-07-13 12:38:42 +0200 |
commit | 523431acff2f8afc2309c2e17b3add83d03125dc (patch) | |
tree | de872a8399b6b4cf8a335fa20d018bcad326f758 | |
parent | d21764d12bb799f89d42c94dc20d4adb6d588077 (diff) | |
download | odhcp6c-523431acff2f8afc2309c2e17b3add83d03125dc.tar.gz |
dhcpv6: remove dead code
-rw-r--r-- | src/dhcpv6.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/dhcpv6.c b/src/dhcpv6.c index 760f235..cc28627 100644 --- a/src/dhcpv6.c +++ b/src/dhcpv6.c @@ -793,18 +793,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]; |