Deleted Added
full compact
ccp.c (79396) ccp.c (81634)
1/*-
2 * Copyright (c) 1996 - 2001 Brian Somers <brian@Awfulhak.org>
3 * based on work by Toshiharu OHNO <tony-o@iij.ad.jp>
4 * Internet Initiative Japan, Inc (IIJ)
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
1/*-
2 * Copyright (c) 1996 - 2001 Brian Somers <brian@Awfulhak.org>
3 * based on work by Toshiharu OHNO <tony-o@iij.ad.jp>
4 * Internet Initiative Japan, Inc (IIJ)
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
28 * $FreeBSD: head/usr.sbin/ppp/ccp.c 79396 2001-07-07 13:12:07Z brian $
28 * $FreeBSD: head/usr.sbin/ppp/ccp.c 81634 2001-08-14 16:05:52Z brian $
29 */
30
31#include <sys/param.h>
32#include <netinet/in.h>
33#include <netinet/in_systm.h>
34#include <netinet/ip.h>
29 */
30
31#include <sys/param.h>
32#include <netinet/in.h>
33#include <netinet/in_systm.h>
34#include <netinet/ip.h>
35#include <sys/socket.h>
35#include <sys/un.h>
36
37#include <stdio.h>
38#include <stdlib.h>
39#include <string.h> /* memcpy() on some archs */
40#include <termios.h>
41
42#include "layer.h"

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

51#include "deflate.h"
52#include "throughput.h"
53#include "iplist.h"
54#include "slcompress.h"
55#include "lqr.h"
56#include "hdlc.h"
57#include "lcp.h"
58#include "ccp.h"
36#include <sys/un.h>
37
38#include <stdio.h>
39#include <stdlib.h>
40#include <string.h> /* memcpy() on some archs */
41#include <termios.h>
42
43#include "layer.h"

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

52#include "deflate.h"
53#include "throughput.h"
54#include "iplist.h"
55#include "slcompress.h"
56#include "lqr.h"
57#include "hdlc.h"
58#include "lcp.h"
59#include "ccp.h"
60#include "ncpaddr.h"
61#include "ip.h"
59#include "ipcp.h"
60#include "filter.h"
61#include "descriptor.h"
62#include "prompt.h"
63#include "link.h"
64#include "mp.h"
65#include "async.h"
66#include "physical.h"
67#ifndef NORADIUS
68#include "radius.h"
69#endif
70#ifdef HAVE_DES
71#include "mppe.h"
72#endif
62#include "ipcp.h"
63#include "filter.h"
64#include "descriptor.h"
65#include "prompt.h"
66#include "link.h"
67#include "mp.h"
68#include "async.h"
69#include "physical.h"
70#ifndef NORADIUS
71#include "radius.h"
72#endif
73#ifdef HAVE_DES
74#include "mppe.h"
75#endif
76#include "ipv6cp.h"
77#include "ncp.h"
73#include "bundle.h"
74
75static void CcpSendConfigReq(struct fsm *);
76static void CcpSentTerminateReq(struct fsm *);
77static void CcpSendTerminateAck(struct fsm *, u_char);
78static void CcpDecodeConfig(struct fsm *, u_char *, int, int,
79 struct fsm_decode *);
80static void CcpLayerStart(struct fsm *);

--- 758 unchanged lines hidden ---
78#include "bundle.h"
79
80static void CcpSendConfigReq(struct fsm *);
81static void CcpSentTerminateReq(struct fsm *);
82static void CcpSendTerminateAck(struct fsm *, u_char);
83static void CcpDecodeConfig(struct fsm *, u_char *, int, int,
84 struct fsm_decode *);
85static void CcpLayerStart(struct fsm *);

--- 758 unchanged lines hidden ---