diff options
Diffstat (limited to 'accel-pppd/ctrl')
-rw-r--r-- | accel-pppd/ctrl/pppoe/pppoe.c | 2 | ||||
-rw-r--r-- | accel-pppd/ctrl/pptp/pptp.c | 2 |
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")) |