Deleted Added
full compact
async.c (91623) async.c (93418)
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/async.c 91623 2002-03-04 10:08:57Z brian $
28 * $FreeBSD: head/usr.sbin/ppp/async.c 93418 2002-03-30 12:30:09Z brian $
29 */
30
31#include <sys/types.h>
32
33#include <string.h>
34#include <termios.h>
35
36#include "layer.h"

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

64async_Setup(struct async *async)
65{
66 async->mode = MODE_HUNT;
67 async->length = 0;
68 async->my_accmap = async->his_accmap = 0xffffffff;
69}
70
71void
29 */
30
31#include <sys/types.h>
32
33#include <string.h>
34#include <termios.h>
35
36#include "layer.h"

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

64async_Setup(struct async *async)
65{
66 async->mode = MODE_HUNT;
67 async->length = 0;
68 async->my_accmap = async->his_accmap = 0xffffffff;
69}
70
71void
72async_SetLinkParams(struct async *async, struct lcp *lcp)
72async_SetLinkParams(struct async *async, u_int32_t mymap, u_int32_t hismap)
73{
73{
74 async->my_accmap = lcp->want_accmap;
75 async->his_accmap = lcp->his_accmap | lcp->want_accmap;
74 async->my_accmap = mymap;
75 async->his_accmap = hismap | mymap;
76}
77
78/*
79 * Encode into async HDLC byte code
80 */
81static void
82async_Encode(struct async *async, u_char **cp, u_char c, int proto)
83{

--- 131 unchanged lines hidden ---
76}
77
78/*
79 * Encode into async HDLC byte code
80 */
81static void
82async_Encode(struct async *async, u_char **cp, u_char c, int proto)
83{

--- 131 unchanged lines hidden ---