diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2011-08-28 23:01:32 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2011-08-28 23:01:32 +0400 |
commit | c700bd6c31878c17ce51f4a3f0b7e060d1db3df0 (patch) | |
tree | 1d35f882806c159fbc41c61ea02e1e7e408da684 /accel-pppd/ipv6/dhcpv6_packet.c | |
parent | 27f33ddc2a653879f202cc3e3a85af73a3e5ea1f (diff) | |
download | accel-ppp-c700bd6c31878c17ce51f4a3f0b7e060d1db3df0.tar.gz accel-ppp-c700bd6c31878c17ce51f4a3f0b7e060d1db3df0.zip |
ipv6_dhcp: use NoPrefixAvail instead of NoAddrsAvail for IA_PD
Diffstat (limited to 'accel-pppd/ipv6/dhcpv6_packet.c')
-rw-r--r-- | accel-pppd/ipv6/dhcpv6_packet.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/accel-pppd/ipv6/dhcpv6_packet.c b/accel-pppd/ipv6/dhcpv6_packet.c index e0e348d4..4c36161b 100644 --- a/accel-pppd/ipv6/dhcpv6_packet.c +++ b/accel-pppd/ipv6/dhcpv6_packet.c @@ -416,9 +416,10 @@ static void print_status(struct dhcpv6_option *opt, void (*print)(const char *fm "NoBindings", "NotOnLink", "UseMulticast" + "NoPrefixAvail" }; - if (ntohs(o->code) < 0 || ntohs(o->code) > 5) + if (ntohs(o->code) < 0 || ntohs(o->code) > sizeof(status_name)) print(" %u", ntohs(o->code)); else print(" %s", status_name[ntohs(o->code)]); |