summaryrefslogtreecommitdiff
path: root/accel-pppd/ifcfg.c
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2012-07-05 14:08:04 +0400
committerKozlov Dmitry <xeb@mail.ru>2012-07-05 14:08:04 +0400
commit64b5b693764c4f36870fd988ccbb53bcb188e74d (patch)
tree7af1897fdb9edd9cf40885c65f8567ae58bc0de6 /accel-pppd/ifcfg.c
parent046642d5729493b25e5fba4b11c507fe3d2e2687 (diff)
downloadaccel-ppp-64b5b693764c4f36870fd988ccbb53bcb188e74d.tar.gz
accel-ppp-64b5b693764c4f36870fd988ccbb53bcb188e74d.zip
ipoe: futher work
Diffstat (limited to 'accel-pppd/ifcfg.c')
-rw-r--r--accel-pppd/ifcfg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/accel-pppd/ifcfg.c b/accel-pppd/ifcfg.c
index 11251e1..134edfb 100644
--- a/accel-pppd/ifcfg.c
+++ b/accel-pppd/ifcfg.c
@@ -82,16 +82,16 @@ void ap_session_ifup(struct ap_session *ses)
if (ioctl(sock_fd, SIOCSIFADDR, &ifr))
log_ppp_error("failed to set IPv4 address: %s\n", strerror(errno));
- if (ses->ctrl->type == CTRL_TYPE_IPOE) {
+ /*if (ses->ctrl->type == CTRL_TYPE_IPOE) {
addr.sin_addr.s_addr = 0xffffffff;
memcpy(&ifr.ifr_netmask, &addr, sizeof(addr));
if (ioctl(sock_fd, SIOCSIFNETMASK, &ifr))
log_ppp_error("failed to set IPv4 nask: %s\n", strerror(errno));
- }
+ }*/
addr.sin_addr.s_addr = ses->ipv4->peer_addr;
- if (ses->ctrl->type == CTRL_TYPE_IPOE) {
+ /*if (ses->ctrl->type == CTRL_TYPE_IPOE) {
memset(&rt, 0, sizeof(rt));
memcpy(&rt.rt_dst, &addr, sizeof(addr));
rt.rt_flags = RTF_HOST | RTF_UP;
@@ -99,7 +99,7 @@ void ap_session_ifup(struct ap_session *ses)
rt.rt_dev = ifr.ifr_name;
if (ioctl(sock_fd, SIOCADDRT, &rt, sizeof(rt)))
log_ppp_error("failed to add route: %s\n", strerror(errno));
- } else {
+ } else*/ {
memcpy(&ifr.ifr_dstaddr, &addr, sizeof(addr));
if (ioctl(sock_fd, SIOCSIFDSTADDR, &ifr))