Deleted Added
full compact
server.c (31081) server.c (31121)
1/*
1/*
2 * $Id: server.c,v 1.8 1997/11/09 14:18:51 brian Exp $
2 * $Id: server.c,v 1.9 1997/11/09 22:07:29 brian Exp $
3 */
4
5#include <sys/param.h>
6#include <sys/socket.h>
7#include <netinet/in.h>
8#include <arpa/inet.h>
9#include <netinet/in_systm.h>
10#include <netinet/ip.h>

--- 26 unchanged lines hidden (view full) ---

37 int s;
38
39 if (VarLocalAuth == LOCAL_DENY) {
40 LogPrintf(LogERROR, "Local: Can't open socket %s: No password "
41 "in ppp.secret\n", name);
42 return 1;
43 }
44
3 */
4
5#include <sys/param.h>
6#include <sys/socket.h>
7#include <netinet/in.h>
8#include <arpa/inet.h>
9#include <netinet/in_systm.h>
10#include <netinet/ip.h>

--- 26 unchanged lines hidden (view full) ---

37 int s;
38
39 if (VarLocalAuth == LOCAL_DENY) {
40 LogPrintf(LogERROR, "Local: Can't open socket %s: No password "
41 "in ppp.secret\n", name);
42 return 1;
43 }
44
45 if (!(mode&(MODE_AUTO|MODE_DEDICATED|MODE_DIRECT))) {
45 if (mode & MODE_INTER) {
46 LogPrintf(LogERROR, "Local: Can't open socket in interactive mode\n");
47 return 1;
48 }
49
50 ifsun.sun_len = strlen(name);
51 if (ifsun.sun_len > sizeof ifsun.sun_path - 1) {
52 LogPrintf(LogERROR, "Local: %s: Path too long\n", name);
53 return 2;

--- 41 unchanged lines hidden (view full) ---

95 int s;
96
97 if (VarLocalAuth == LOCAL_DENY) {
98 LogPrintf(LogERROR, "Tcp: Can't open socket %d: No password "
99 "in ppp.secret\n", port);
100 return 6;
101 }
102
46 LogPrintf(LogERROR, "Local: Can't open socket in interactive mode\n");
47 return 1;
48 }
49
50 ifsun.sun_len = strlen(name);
51 if (ifsun.sun_len > sizeof ifsun.sun_path - 1) {
52 LogPrintf(LogERROR, "Local: %s: Path too long\n", name);
53 return 2;

--- 41 unchanged lines hidden (view full) ---

95 int s;
96
97 if (VarLocalAuth == LOCAL_DENY) {
98 LogPrintf(LogERROR, "Tcp: Can't open socket %d: No password "
99 "in ppp.secret\n", port);
100 return 6;
101 }
102
103 if (!(mode&(MODE_AUTO|MODE_DEDICATED|MODE_DIRECT))) {
103 if (mode & MODE_INTER) {
104 LogPrintf(LogERROR, "Tcp: Can't open socket in interactive mode\n");
105 return 6;
106 }
107
108 s = ID0socket(PF_INET, SOCK_STREAM, 0);
109 if (s < 0) {
110 LogPrintf(LogERROR, "Tcp: socket: %s\n", strerror(errno));
111 return 7;

--- 35 unchanged lines hidden ---
104 LogPrintf(LogERROR, "Tcp: Can't open socket in interactive mode\n");
105 return 6;
106 }
107
108 s = ID0socket(PF_INET, SOCK_STREAM, 0);
109 if (s < 0) {
110 LogPrintf(LogERROR, "Tcp: socket: %s\n", strerror(errno));
111 return 7;

--- 35 unchanged lines hidden ---