server.c (37141) | server.c (37192) |
---|---|
1/*- 2 * Copyright (c) 1997 Brian Somers <brian@Awfulhak.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 1997 Brian Somers <brian@Awfulhak.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $Id: server.c,v 1.20 1998/06/16 19:40:41 brian Exp $ | 26 * $Id: server.c,v 1.21 1998/06/24 19:33:36 brian Exp $ |
27 */ 28 29#include <sys/types.h> 30#include <sys/socket.h> 31#include <netinet/in.h> 32#include <arpa/inet.h> | 27 */ 28 29#include <sys/types.h> 30#include <sys/socket.h> 31#include <netinet/in.h> 32#include <arpa/inet.h> |
33#include <netinet/in_systm.h> 34#include <netinet/ip.h> | |
35#include <sys/un.h> 36 37#include <errno.h> 38#include <stdio.h> 39#include <string.h> 40#include <sys/stat.h> 41#include <termios.h> 42#include <unistd.h> 43 | 33#include <sys/un.h> 34 35#include <errno.h> 36#include <stdio.h> 37#include <string.h> 38#include <sys/stat.h> 39#include <termios.h> 40#include <unistd.h> 41 |
44#include "mbuf.h" | |
45#include "log.h" | 42#include "log.h" |
46#include "defs.h" | |
47#include "descriptor.h" 48#include "server.h" 49#include "id.h" 50#include "prompt.h" | 43#include "descriptor.h" 44#include "server.h" 45#include "id.h" 46#include "prompt.h" |
51#include "timer.h" 52#include "lqr.h" 53#include "hdlc.h" 54#include "fsm.h" 55#include "lcp.h" 56#include "ccp.h" 57#include "throughput.h" 58#include "link.h" 59#include "mp.h" 60#include "iplist.h" 61#include "slcompress.h" 62#include "ipcp.h" 63#include "filter.h" 64#include "bundle.h" | |
65 66static int 67server_UpdateSet(struct descriptor *d, fd_set *r, fd_set *w, fd_set *e, int *n) 68{ 69 struct server *s = descriptor2server(d); 70 struct prompt *p; 71 int sets; 72 --- 227 unchanged lines hidden --- | 47 48static int 49server_UpdateSet(struct descriptor *d, fd_set *r, fd_set *w, fd_set *e, int *n) 50{ 51 struct server *s = descriptor2server(d); 52 struct prompt *p; 53 int sets; 54 --- 227 unchanged lines hidden --- |