Deleted Added
full compact
mp.c (49434) mp.c (50059)
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 * $Id: mp.c,v 1.25 1999/06/09 16:54:03 brian Exp $
26 * $Id: mp.c,v 1.26 1999/08/05 10:32:12 brian Exp $
27 */
28
29#include <sys/param.h>
30#include <netinet/in.h>
31#include <netinet/in_systm.h>
32#include <netinet/ip.h>
33#include <arpa/inet.h>
34#include <net/if_dl.h>

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

40#include <stdlib.h>
41#include <stdio.h>
42#include <string.h>
43#include <sys/stat.h>
44#include <termios.h>
45#include <unistd.h>
46
47#include "layer.h"
27 */
28
29#include <sys/param.h>
30#include <netinet/in.h>
31#include <netinet/in_systm.h>
32#include <netinet/ip.h>
33#include <arpa/inet.h>
34#include <net/if_dl.h>

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

40#include <stdlib.h>
41#include <stdio.h>
42#include <string.h>
43#include <sys/stat.h>
44#include <termios.h>
45#include <unistd.h>
46
47#include "layer.h"
48#ifndef NOALIAS
48#ifndef NONAT
49#include "alias_cmd.h"
50#endif
51#include "vjcomp.h"
52#include "ua.h"
53#include "defs.h"
54#include "command.h"
55#include "mbuf.h"
56#include "log.h"

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

273
274 lcp_Init(&mp->link.lcp, mp->bundle, &mp->link, NULL);
275 ccp_Init(&mp->link.ccp, mp->bundle, &mp->link, &mp->fsmp);
276
277 link_EmptyStack(&mp->link);
278 link_Stack(&mp->link, &protolayer);
279 link_Stack(&mp->link, &ccplayer);
280 link_Stack(&mp->link, &vjlayer);
49#include "alias_cmd.h"
50#endif
51#include "vjcomp.h"
52#include "ua.h"
53#include "defs.h"
54#include "command.h"
55#include "mbuf.h"
56#include "log.h"

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

273
274 lcp_Init(&mp->link.lcp, mp->bundle, &mp->link, NULL);
275 ccp_Init(&mp->link.ccp, mp->bundle, &mp->link, &mp->fsmp);
276
277 link_EmptyStack(&mp->link);
278 link_Stack(&mp->link, &protolayer);
279 link_Stack(&mp->link, &ccplayer);
280 link_Stack(&mp->link, &vjlayer);
281#ifndef NOALIAS
282 link_Stack(&mp->link, &aliaslayer);
281#ifndef NONAT
282 link_Stack(&mp->link, &natlayer);
283#endif
284}
285
286int
287mp_Up(struct mp *mp, struct datalink *dl)
288{
289 struct lcp *lcp = &dl->physical->link.lcp;
290

--- 850 unchanged lines hidden ---
283#endif
284}
285
286int
287mp_Up(struct mp *mp, struct datalink *dl)
288{
289 struct lcp *lcp = &dl->physical->link.lcp;
290

--- 850 unchanged lines hidden ---