Deleted Added
full compact
physical.c (136375) physical.c (179315)
1/*
2 * Written by Eivind Eklund <eivind@yes.no>
3 * for Yes Interactive
4 *
5 * Copyright (C) 1998, Yes Interactive. All rights reserved.
6 *
7 * Redistribution and use in any form is permitted. Redistribution in
8 * source form should include the above copyright and this set of
9 * conditions, because large sections american law seems to have been
10 * created by a bunch of jerks on drugs that are now illegal, forcing
11 * me to include this copyright-stuff instead of placing this in the
12 * public domain. The name of of 'Yes Interactive' or 'Eivind Eklund'
13 * may not be used to endorse or promote products derived from this
14 * software without specific prior written permission.
15 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
16 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
17 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
18 *
1/*
2 * Written by Eivind Eklund <eivind@yes.no>
3 * for Yes Interactive
4 *
5 * Copyright (C) 1998, Yes Interactive. All rights reserved.
6 *
7 * Redistribution and use in any form is permitted. Redistribution in
8 * source form should include the above copyright and this set of
9 * conditions, because large sections american law seems to have been
10 * created by a bunch of jerks on drugs that are now illegal, forcing
11 * me to include this copyright-stuff instead of placing this in the
12 * public domain. The name of of 'Yes Interactive' or 'Eivind Eklund'
13 * may not be used to endorse or promote products derived from this
14 * software without specific prior written permission.
15 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
16 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
17 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
18 *
19 * $FreeBSD: head/usr.sbin/ppp/physical.c 136375 2004-10-11 09:45:58Z brian $
19 * $FreeBSD: head/usr.sbin/ppp/physical.c 179315 2008-05-26 10:40:09Z bz $
20 *
21 */
22
23#include <sys/param.h>
24#include <netinet/in.h>
25#include <netinet/in_systm.h>
26#include <netinet/ip.h>
27#include <sys/socket.h>

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

92#include "main.h"
93#include "chap.h"
94#include "cbcp.h"
95#include "datalink.h"
96#include "tcp.h"
97#include "udp.h"
98#include "exec.h"
99#include "tty.h"
20 *
21 */
22
23#include <sys/param.h>
24#include <netinet/in.h>
25#include <netinet/in_systm.h>
26#include <netinet/ip.h>
27#include <sys/socket.h>

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

92#include "main.h"
93#include "chap.h"
94#include "cbcp.h"
95#include "datalink.h"
96#include "tcp.h"
97#include "udp.h"
98#include "exec.h"
99#include "tty.h"
100#ifndef NOI4B
101#include "i4b.h"
102#endif
103#ifndef NONETGRAPH
104#include "ether.h"
105#include "netgraph.h"
106#endif
107#ifndef NOATM
108#include "atm.h"
109#endif
110#include "tcpmss.h"

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

121}
122
123struct {
124 struct device *(*create)(struct physical *);
125 struct device *(*iov2device)(int, struct physical *, struct iovec *,
126 int *, int, int *, int *);
127 unsigned (*DeviceSize)(void);
128} devices[] = {
100#ifndef NONETGRAPH
101#include "ether.h"
102#include "netgraph.h"
103#endif
104#ifndef NOATM
105#include "atm.h"
106#endif
107#include "tcpmss.h"

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

118}
119
120struct {
121 struct device *(*create)(struct physical *);
122 struct device *(*iov2device)(int, struct physical *, struct iovec *,
123 int *, int, int *, int *);
124 unsigned (*DeviceSize)(void);
125} devices[] = {
129#ifndef NOI4B
130 /*
131 * This must come before ``tty'' so that the probe routine is
132 * able to identify it as a more specific type of terminal device.
133 */
134 { i4b_Create, i4b_iov2device, i4b_DeviceSize },
135#endif
136 { tty_Create, tty_iov2device, tty_DeviceSize },
137#ifndef NONETGRAPH
138 /*
139 * This must come before ``udp'' so that the probe routine is
140 * able to identify it as a more specific type of SOCK_DGRAM.
141 */
142 { ether_Create, ether_iov2device, ether_DeviceSize },
143#ifdef EXPERIMENTAL_NETGRAPH

--- 1007 unchanged lines hidden ---
126 { tty_Create, tty_iov2device, tty_DeviceSize },
127#ifndef NONETGRAPH
128 /*
129 * This must come before ``udp'' so that the probe routine is
130 * able to identify it as a more specific type of SOCK_DGRAM.
131 */
132 { ether_Create, ether_iov2device, ether_DeviceSize },
133#ifdef EXPERIMENTAL_NETGRAPH

--- 1007 unchanged lines hidden ---