diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2015-11-23 12:52:44 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2015-12-04 21:33:42 +0300 |
commit | 343af33b08ebc83791fd57a1ccdef91ce1ac2a9e (patch) | |
tree | 335dc2f4f2b6dcba678a2b9445fda1ceba80c92c /accel-pppd/ppp | |
parent | 4f511651b830aabc251eee01cb90ace822578053 (diff) | |
download | accel-ppp-343af33b08ebc83791fd57a1ccdef91ce1ac2a9e.tar.gz accel-ppp-343af33b08ebc83791fd57a1ccdef91ce1ac2a9e.zip |
preparation for DPDK intergation (part 5)
Diffstat (limited to 'accel-pppd/ppp')
-rw-r--r-- | accel-pppd/ppp/ppp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/accel-pppd/ppp/ppp.c b/accel-pppd/ppp/ppp.c index 22ebc24f..916cf8b5 100644 --- a/accel-pppd/ppp/ppp.c +++ b/accel-pppd/ppp/ppp.c @@ -327,7 +327,7 @@ int __export ppp_chan_send(struct ppp_t *ppp, void *data, int size) //printf("ppp_chan_send: "); //print_buf((uint8_t*)data,size); - n = write(ppp->chan_fd,data,size); + n = net->write(ppp->chan_fd, data, size); if (n < size) log_ppp_error("ppp_chan_send: short write %i, excpected %i\n", n, size); return n; @@ -340,7 +340,7 @@ int __export ppp_unit_send(struct ppp_t *ppp, void *data, int size) //printf("ppp_unit_send: "); //print_buf((uint8_t*)data,size); - n=write(ppp->unit_fd, data, size); + n = net->write(ppp->unit_fd, data, size); if (n < size) log_ppp_error("ppp_unit_send: short write %i, excpected %i\n",n,size); return n; @@ -354,7 +354,7 @@ static int ppp_chan_read(struct triton_md_handler_t *h) while(1) { cont: - ppp->buf_size = read(h->fd, ppp->buf, PPP_MRU); + ppp->buf_size = net->read(h->fd, ppp->buf, PPP_MRU); if (ppp->buf_size < 0) { if (errno == EAGAIN) return 0; @@ -399,7 +399,7 @@ static int ppp_unit_read(struct triton_md_handler_t *h) while (1) { cont: - ppp->buf_size = read(h->fd, ppp->buf, PPP_MRU); + ppp->buf_size = net->read(h->fd, ppp->buf, PPP_MRU); if (ppp->buf_size < 0) { if (errno == EAGAIN) return 0; |