diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2015-11-22 12:42:10 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2015-12-04 21:30:40 +0300 |
commit | 939ff04fb80605e688720f64c824be3d21dad07e (patch) | |
tree | 474b80eb4aef7c33070b2d2255ad5ce7cf2a6405 /accel-pppd/ppp/ppp_ccp.c | |
parent | bf84f9763ca3b6f018774b2b1664e838e119b028 (diff) | |
download | accel-ppp-939ff04fb80605e688720f64c824be3d21dad07e.tar.gz accel-ppp-939ff04fb80605e688720f64c824be3d21dad07e.zip |
preparation for DPDK intergation (part 2)
Diffstat (limited to 'accel-pppd/ppp/ppp_ccp.c')
-rw-r--r-- | accel-pppd/ppp/ppp_ccp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/ppp/ppp_ccp.c b/accel-pppd/ppp/ppp_ccp.c index ceaccee2..f9e05e89 100644 --- a/accel-pppd/ppp/ppp_ccp.c +++ b/accel-pppd/ppp/ppp_ccp.c @@ -75,7 +75,7 @@ static int ccp_set_flags(int fd, int isopen, int isup) { int flags; - if (ioctl(fd, PPPIOCGFLAGS, &flags)) { + if (net->ppp_ioctl(fd, PPPIOCGFLAGS, &flags)) { log_ppp_error("ccp: failed to get flags: %s\n", strerror(errno)); return -1; } @@ -83,7 +83,7 @@ static int ccp_set_flags(int fd, int isopen, int isup) flags &= ~(SC_CCP_OPEN | SC_CCP_UP); flags |= (isopen ? SC_CCP_OPEN : 0) | (isup ? SC_CCP_UP : 0); - if (ioctl(fd, PPPIOCSFLAGS, &flags)) { + if (net->ppp_ioctl(fd, PPPIOCSFLAGS, &flags)) { log_ppp_error("ccp: failed to set flags: %s\n", strerror(errno)); return -1; } |