Deleted Added
full compact
link.c (64652) link.c (81634)
1/*-
2 * Copyright (c) 1998 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) 1998 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 * $FreeBSD: head/usr.sbin/ppp/link.c 64652 2000-08-15 00:59:21Z brian $
26 * $FreeBSD: head/usr.sbin/ppp/link.c 81634 2001-08-14 16:05:52Z brian $
27 *
28 */
29
30#include <sys/types.h>
31#include <netinet/in_systm.h>
27 *
28 */
29
30#include <sys/types.h>
31#include <netinet/in_systm.h>
32#include <sys/socket.h>
32#include <sys/un.h>
33#include <netinet/in.h>
34#include <netinet/ip.h>
35
36#include <stdio.h>
37#include <string.h>
38#include <termios.h>
39

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

52#include "ccp.h"
53#include "link.h"
54#include "prompt.h"
55#include "async.h"
56#include "physical.h"
57#include "mp.h"
58#include "iplist.h"
59#include "slcompress.h"
33#include <sys/un.h>
34#include <netinet/in.h>
35#include <netinet/ip.h>
36
37#include <stdio.h>
38#include <string.h>
39#include <termios.h>
40

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

53#include "ccp.h"
54#include "link.h"
55#include "prompt.h"
56#include "async.h"
57#include "physical.h"
58#include "mp.h"
59#include "iplist.h"
60#include "slcompress.h"
60#include "ipcp.h"
61#include "ncpaddr.h"
61#include "ip.h"
62#include "ip.h"
63#include "ipcp.h"
64#include "ipv6cp.h"
62#include "auth.h"
63#include "pap.h"
64#include "chap.h"
65#include "cbcp.h"
66#include "command.h"
67
68static void Despatch(struct bundle *, struct link *, struct mbuf *, u_short);
69

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

312{
313 l->nlayers = 0;
314}
315
316static const struct {
317 u_short proto;
318 struct mbuf *(*fn)(struct bundle *, struct link *, struct mbuf *);
319} despatcher[] = {
65#include "auth.h"
66#include "pap.h"
67#include "chap.h"
68#include "cbcp.h"
69#include "command.h"
70
71static void Despatch(struct bundle *, struct link *, struct mbuf *, u_short);
72

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

315{
316 l->nlayers = 0;
317}
318
319static const struct {
320 u_short proto;
321 struct mbuf *(*fn)(struct bundle *, struct link *, struct mbuf *);
322} despatcher[] = {
320 { PROTO_IP, ip_Input },
323 { PROTO_IP, ipv4_Input },
324#ifndef NOINET6
325 { PROTO_IPV6, ipv6_Input },
326#endif
321 { PROTO_MP, mp_Input },
322 { PROTO_LCP, lcp_Input },
323 { PROTO_IPCP, ipcp_Input },
327 { PROTO_MP, mp_Input },
328 { PROTO_LCP, lcp_Input },
329 { PROTO_IPCP, ipcp_Input },
330#ifndef NOINET6
331 { PROTO_IPV6CP, ipv6cp_Input },
332#endif
324 { PROTO_PAP, pap_Input },
325 { PROTO_CHAP, chap_Input },
326 { PROTO_CCP, ccp_Input },
327 { PROTO_LQR, lqr_Input },
328 { PROTO_CBCP, cbcp_Input }
329};
330
331#define DSIZE (sizeof despatcher / sizeof despatcher[0])

--- 42 unchanged lines hidden ---
333 { PROTO_PAP, pap_Input },
334 { PROTO_CHAP, chap_Input },
335 { PROTO_CCP, ccp_Input },
336 { PROTO_LQR, lqr_Input },
337 { PROTO_CBCP, cbcp_Input }
338};
339
340#define DSIZE (sizeof despatcher / sizeof despatcher[0])

--- 42 unchanged lines hidden ---