Deleted Added
full compact
datalink.h (58028) datalink.h (93418)
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/datalink.h 58028 2000-03-14 01:46:09Z brian $
26 * $FreeBSD: head/usr.sbin/ppp/datalink.h 93418 2002-03-30 12:30:09Z brian $
27 */
28
29#define DATALINK_CLOSED (0)
30#define DATALINK_OPENING (1)
31#define DATALINK_HANGUP (2)
32#define DATALINK_DIAL (3)
33#define DATALINK_CARRIER (4)
34#define DATALINK_LOGOUT (5)

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

47#define CLOSE_LCP 2
48
49struct iovec;
50struct prompt;
51struct physical;
52struct bundle;
53
54struct datalink {
27 */
28
29#define DATALINK_CLOSED (0)
30#define DATALINK_OPENING (1)
31#define DATALINK_HANGUP (2)
32#define DATALINK_DIAL (3)
33#define DATALINK_CARRIER (4)
34#define DATALINK_LOGOUT (5)

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

47#define CLOSE_LCP 2
48
49struct iovec;
50struct prompt;
51struct physical;
52struct bundle;
53
54struct datalink {
55 struct fdescriptor desc; /* We play either a physical or a chat */
55 struct fdescriptor desc; /* We play either a physical or a chat */
56 int state; /* Our DATALINK_* state */
57 struct physical *physical; /* Our link */
58
59 struct chat chat; /* For bringing the link up & down */
60
61 unsigned stayonline : 1; /* stay online when LCP is closed ? */
62 struct {
63 unsigned run : 1; /* run scripts ? */

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

149extern const char *datalink_State(struct datalink *);
150extern void datalink_Rename(struct datalink *, const char *);
151extern char *datalink_NextName(struct datalink *);
152extern int datalink_RemoveFromSet(struct datalink *, fd_set *, fd_set *,
153 fd_set *);
154extern int datalink_SetMode(struct datalink *, int);
155extern int datalink_GetDialTimeout(struct datalink *);
156extern const char *datalink_ChoosePhoneNumber(struct datalink *);
56 int state; /* Our DATALINK_* state */
57 struct physical *physical; /* Our link */
58
59 struct chat chat; /* For bringing the link up & down */
60
61 unsigned stayonline : 1; /* stay online when LCP is closed ? */
62 struct {
63 unsigned run : 1; /* run scripts ? */

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

149extern const char *datalink_State(struct datalink *);
150extern void datalink_Rename(struct datalink *, const char *);
151extern char *datalink_NextName(struct datalink *);
152extern int datalink_RemoveFromSet(struct datalink *, fd_set *, fd_set *,
153 fd_set *);
154extern int datalink_SetMode(struct datalink *, int);
155extern int datalink_GetDialTimeout(struct datalink *);
156extern const char *datalink_ChoosePhoneNumber(struct datalink *);
157extern void datalink_ComeDown(struct datalink *, int);