diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2011-08-29 01:17:54 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2011-08-29 01:17:54 +0400 |
commit | 799db65ebf7aaab83bdac467e1425568b554fb2a (patch) | |
tree | c2a2c4486f277b0c3641aa9b50b92eba59ae129e /accel-pppd/ipv6 | |
parent | 6c6e40184caef7a4d11ee5b0fa23cef8166072f2 (diff) | |
download | accel-ppp-799db65ebf7aaab83bdac467e1425568b554fb2a.tar.gz accel-ppp-799db65ebf7aaab83bdac467e1425568b554fb2a.zip |
ipv6pool: implemented prefix delegation support
Diffstat (limited to 'accel-pppd/ipv6')
-rw-r--r-- | accel-pppd/ipv6/dhcpv6.c | 4 | ||||
-rw-r--r-- | accel-pppd/ipv6/dhcpv6_packet.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/accel-pppd/ipv6/dhcpv6.c b/accel-pppd/ipv6/dhcpv6.c index 16d9675..dae9418 100644 --- a/accel-pppd/ipv6/dhcpv6.c +++ b/accel-pppd/ipv6/dhcpv6.c @@ -180,10 +180,10 @@ static void insert_dp_routes(struct ppp_t *ppp, struct dhcpv6_pd *pd) inet_ntop(AF_INET6, &p->addr, str1, sizeof(str1)); inet_ntop(AF_INET6, &rt6.rtmsg_gateway, str2, sizeof(str2)); log_ppp_error("dhcpv6: add route %s/%i via %s: %s\n", str1, p->prefix_len, str2, strerror(err)); - } else { + } else if (conf_verbose) { inet_ntop(AF_INET6, &p->addr, str1, sizeof(str1)); inet_ntop(AF_INET6, &rt6.rtmsg_gateway, str2, sizeof(str2)); - log_ppp_info2("dhcpv6: add route %s/%i via %s\n", str1, p->prefix_len, str2); + log_ppp_info2("dhcpv6: route add %s/%i via %s\n", str1, p->prefix_len, str2); } } diff --git a/accel-pppd/ipv6/dhcpv6_packet.c b/accel-pppd/ipv6/dhcpv6_packet.c index 4c36161..8decc8b 100644 --- a/accel-pppd/ipv6/dhcpv6_packet.c +++ b/accel-pppd/ipv6/dhcpv6_packet.c @@ -286,7 +286,7 @@ void dhcpv6_packet_print(struct dhcpv6_packet *pkt, void (*print)(const char *fm "Solicit", "Advertise", "Request", - "Confirt", + "Confirm", "Renew", "Rebind", "Reply", |