From 28da35fa4784f98854dbbe5d9e317bcafc16e8f0 Mon Sep 17 00:00:00 2001 From: Vladislav Grishenko Date: Mon, 1 Sep 2014 15:11:44 +0600 Subject: pppoe, pptp: fix socket type for checking --- accel-pppd/ctrl/pppoe/pppoe.c | 2 +- accel-pppd/ctrl/pptp/pptp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'accel-pppd/ctrl') 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")) -- cgit v1.2.3