summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2015-11-23 00:00:09 +0300
committerDmitry Kozlov <xeb@mail.ru>2015-12-04 21:30:40 +0300
commit43a2c73a9607561faa30ab6cd9812cbfb361a9c1 (patch)
treedcbdd15ffc807601e060232292eb5e03c1418dcd /accel-pppd/ctrl
parent3b030913ce1965ff96f2ed4bdee315600b7e09b6 (diff)
downloadaccel-ppp-43a2c73a9607561faa30ab6cd9812cbfb361a9c1.tar.gz
accel-ppp-43a2c73a9607561faa30ab6cd9812cbfb361a9c1.zip
preparation for DPDK intergation (part 3)
Diffstat (limited to 'accel-pppd/ctrl')
-rw-r--r--accel-pppd/ctrl/pppoe/pppoe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/ctrl/pppoe/pppoe.c b/accel-pppd/ctrl/pppoe/pppoe.c
index 74b368b3..44851c25 100644
--- a/accel-pppd/ctrl/pppoe/pppoe.c
+++ b/accel-pppd/ctrl/pppoe/pppoe.c
@@ -411,7 +411,7 @@ static void connect_channel(struct pppoe_conn_t *conn)
triton_event_fire(EV_CTRL_STARTING, &conn->ppp.ses);
triton_event_fire(EV_CTRL_STARTED, &conn->ppp.ses);
- sock = net->pppox_socket(PX_PROTO_OE);
+ sock = net->socket(AF_PPPOX, SOCK_DGRAM, PX_PROTO_OE);
if (!sock) {
log_error("pppoe: socket(PPPOX): %s\n", strerror(errno));
goto out_err;
@@ -427,7 +427,7 @@ static void connect_channel(struct pppoe_conn_t *conn)
strcpy(sp.sa_addr.pppoe.dev, conn->serv->ifname);
memcpy(sp.sa_addr.pppoe.remote, conn->addr, ETH_ALEN);
- if (net->pppox_connect(sock, (struct sockaddr *)&sp, sizeof(sp))) {
+ if (net->connect(sock, (struct sockaddr *)&sp, sizeof(sp))) {
log_error("pppoe: connect: %s\n", strerror(errno));
goto out_err_close;
}