summaryrefslogtreecommitdiff
path: root/accel-pppd/ppp/ppp.c
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2011-08-29 00:17:53 +0400
committerKozlov Dmitry <xeb@mail.ru>2011-08-29 00:17:53 +0400
commitf53638854c99e4b6b4b1c167c44fbb6dbfd0c6e7 (patch)
treecee88728fb81d74c1aec712cba785ee383829652 /accel-pppd/ppp/ppp.c
parent059b8b24df39591b96ef10dba735e9c2ad7e118c (diff)
downloadaccel-ppp-f53638854c99e4b6b4b1c167c44fbb6dbfd0c6e7.tar.gz
accel-ppp-f53638854c99e4b6b4b1c167c44fbb6dbfd0c6e7.zip
ipv6_dhcp: add routes to delegated prefixes
Diffstat (limited to 'accel-pppd/ppp/ppp.c')
-rw-r--r--accel-pppd/ppp/ppp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/accel-pppd/ppp/ppp.c b/accel-pppd/ppp/ppp.c
index a0f65f1d..e6d97887 100644
--- a/accel-pppd/ppp/ppp.c
+++ b/accel-pppd/ppp/ppp.c
@@ -32,6 +32,7 @@ pthread_rwlock_t __export ppp_lock = PTHREAD_RWLOCK_INITIALIZER;
__export LIST_HEAD(ppp_list);
int __export sock_fd;
+int __export sock6_fd;
int __export ppp_shutdown;
@@ -744,6 +745,10 @@ static void init(void)
_exit(EXIT_FAILURE);
}
+ sock6_fd = socket(AF_INET6, SOCK_DGRAM, 0);
+ if (sock6_fd < 0)
+ log_warn("ppp: kernel doesn't support ipv6\n");
+
opt = conf_get_opt("ppp", "seq-file");
if (!opt)
opt = "/var/run/accel-ppp/seq";