From 939ff04fb80605e688720f64c824be3d21dad07e Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Sun, 22 Nov 2015 12:42:10 +0300 Subject: preparation for DPDK intergation (part 2) --- accel-pppd/ppp/ppp_ccp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'accel-pppd/ppp/ppp_ccp.c') 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; } -- cgit v1.2.3