diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2012-08-29 11:40:34 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2012-08-29 11:40:34 +0400 |
commit | 28df233a46f2d136e8169d86ee62861a7c024eff (patch) | |
tree | a8d1131645c7f09fa276208895b31a5b3b2467bc /accel-pppd/ifcfg.c | |
parent | 1872dd97822f406a2d54bd75ed8220092ec5d4fb (diff) | |
download | accel-ppp-28df233a46f2d136e8169d86ee62861a7c024eff.tar.gz accel-ppp-28df233a46f2d136e8169d86ee62861a7c024eff.zip |
add 'ppp' filed to CTRL to identify ppp sessions
Diffstat (limited to 'accel-pppd/ifcfg.c')
-rw-r--r-- | accel-pppd/ifcfg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/ifcfg.c b/accel-pppd/ifcfg.c index ac88a0d1..296b354b 100644 --- a/accel-pppd/ifcfg.c +++ b/accel-pppd/ifcfg.c @@ -119,7 +119,7 @@ void ap_session_ifup(struct ap_session *ses) memset(&ifr6, 0, sizeof(ifr6)); - if (ses->ctrl->type != CTRL_TYPE_IPOE) { + if (ses->ctrl->ppp) { ifr6.ifr6_addr.s6_addr32[0] = htons(0xfe80); *(uint64_t *)(ifr6.ifr6_addr.s6_addr + 8) = ses->ipv6->intf_id; ifr6.ifr6_prefixlen = 64; @@ -149,7 +149,7 @@ void ap_session_ifup(struct ap_session *ses) if (ioctl(sock_fd, SIOCSIFFLAGS, &ifr)) log_ppp_error("failed to set interface flags: %s\n", strerror(errno)); - if (ses->ctrl->type != CTRL_TYPE_IPOE) { + if (ses->ctrl->ppp) { ppp = container_of(ses, typeof(*ppp), ses); if (ses->ipv4) { np.protocol = PPP_IP; |