summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
authorVladislav Grishenko <themiron@mail.ru>2014-09-01 15:11:44 +0600
committerDmitry Kozlov <xeb@mail.ru>2014-09-13 11:01:40 +0400
commit28da35fa4784f98854dbbe5d9e317bcafc16e8f0 (patch)
treecacc2544a53effd3b9f354da0bef85ad44f5ab12 /accel-pppd
parente950491e32510700e73df5d1de0ecd5d762afe4d (diff)
downloadaccel-ppp-28da35fa4784f98854dbbe5d9e317bcafc16e8f0.tar.gz
accel-ppp-28da35fa4784f98854dbbe5d9e317bcafc16e8f0.zip
pppoe, pptp: fix socket type for checking
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/ctrl/pppoe/pppoe.c2
-rw-r--r--accel-pppd/ctrl/pptp/pptp.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/ctrl/pppoe/pppoe.c b/accel-pppd/ctrl/pppoe/pppoe.c
index 9892b590..4ff23052 100644
--- a/accel-pppd/ctrl/pppoe/pppoe.c
+++ b/accel-pppd/ctrl/pppoe/pppoe.c
@@ -1601,7 +1601,7 @@ static void pppoe_init(void)
struct conf_option_t *opt;
int fd;
- fd = socket(AF_PPPOX, SOCK_DGRAM, PX_PROTO_OE);
+ fd = socket(AF_PPPOX, SOCK_STREAM, PX_PROTO_OE);
if (fd >= 0)
close(fd);
else if (system("modprobe -q pppoe"))
diff --git a/accel-pppd/ctrl/pptp/pptp.c b/accel-pppd/ctrl/pptp/pptp.c
index 92770bf6..f447aa7a 100644
--- a/accel-pppd/ctrl/pptp/pptp.c
+++ b/accel-pppd/ctrl/pptp/pptp.c
@@ -771,7 +771,7 @@ static void pptp_init(void)
char *opt;
int fd;
- fd = socket(AF_PPPOX, SOCK_DGRAM, PX_PROTO_PPTP);
+ fd = socket(AF_PPPOX, SOCK_STREAM, PX_PROTO_PPTP);
if (fd >= 0)
close(fd);
else if (system("modprobe -q pptp"))