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/ccp_mppe.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/ccp_mppe.c')
-rw-r--r-- | accel-pppd/ppp/ccp_mppe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/accel-pppd/ppp/ccp_mppe.c b/accel-pppd/ppp/ccp_mppe.c index 31bbad4..4e8d6b9 100644 --- a/accel-pppd/ppp/ccp_mppe.c +++ b/accel-pppd/ppp/ccp_mppe.c @@ -115,7 +115,7 @@ static int setup_mppe_key(int fd, int transmit, uint8_t *key) data.length = sizeof(buf); data.transmit = transmit; - if (ioctl(fd, PPPIOCSCOMPRESS, &data)) { + if (net->ppp_ioctl(fd, PPPIOCSCOMPRESS, &data)) { log_ppp_warn("mppe: MPPE requested but not supported by kernel\n"); return -1; } @@ -129,14 +129,14 @@ static int decrease_mtu(struct ppp_t *ppp) strcpy(ifr.ifr_name, ppp->ses.ifname); - if (ioctl(sock_fd, SIOCGIFMTU, &ifr)) { + if (net->ppp_ioctl(sock_fd, SIOCGIFMTU, &ifr)) { log_ppp_error("mppe: failed to get MTU: %s\n", strerror(errno)); return -1; } ifr.ifr_mtu -= MPPE_PAD; - if (ioctl(sock_fd, SIOCSIFMTU, &ifr)) { + if (net->ppp_ioctl(sock_fd, SIOCSIFMTU, &ifr)) { log_ppp_error("mppe: failed to set MTU: %s\n", strerror(errno)); return -1; } |