diff options
| author | Brian Somers <brian@FreeBSD.org> | 1997-10-26 01:04:02 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 1997-10-26 01:04:02 +0000 |
| commit | 75240ed1789e0754da5b1024dcb80dcfc5dae0c3 (patch) | |
| tree | ef7296fa69b93cfce40120da724736ed6c9b347e /usr.sbin/ppp/server.c | |
| parent | 11ea2762ebb2a63ea051e522e95837700de85d17 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/ppp/server.c')
| -rw-r--r-- | usr.sbin/ppp/server.c | 34 |
1 files changed, 15 insertions, 19 deletions
diff --git a/usr.sbin/ppp/server.c b/usr.sbin/ppp/server.c index c756d77ebe9d..4cc8f2e623b6 100644 --- a/usr.sbin/ppp/server.c +++ b/usr.sbin/ppp/server.c @@ -1,23 +1,32 @@ -#include <sys/types.h> -#include <sys/stat.h> +/* + * $Id: $ + */ + +#include <sys/param.h> #include <sys/socket.h> #include <netinet/in.h> -#include <sys/un.h> #include <arpa/inet.h> #include <netinet/in_systm.h> #include <netinet/ip.h> -#include <string.h> -#include <stdio.h> + #include <errno.h> +#include <stdio.h> +#include <string.h> +#include <sys/stat.h> +#include <sys/un.h> #include <unistd.h> + #include "mbuf.h" #include "log.h" #include "loadalias.h" +#include "command.h" #include "vars.h" #include "server.h" +#include "log.h" #include "defs.h" -int server = UNKNOWN_SERVER; +int server = -2; + static struct sockaddr_un ifsun; static char *rm; @@ -131,16 +140,3 @@ ServerClose() } server = -1; } - -int -ServerType() -{ - if (server == UNKNOWN_SERVER) - return UNKNOWN_SERVER; - else if (server == NO_SERVER) - return NO_SERVER; - else if (rm) - return LOCAL_SERVER; - else - return INET_SERVER; -} |
