Deleted Added
full compact
physical.h (65862) physical.h (78410)
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.h 65862 2000-09-14 22:02:54Z brian $
19 * $FreeBSD: head/usr.sbin/ppp/physical.h 78410 2001-06-18 14:59:36Z brian $
20 *
21 */
22
23struct datalink;
24struct bundle;
25struct iovec;
26struct physical;
27struct bundle;

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

51struct cd {
52 unsigned necessity : 2; /* A CD_ value */
53 int delay; /* Wait this many seconds after login script */
54};
55
56struct device {
57 int type;
58 const char *name;
20 *
21 */
22
23struct datalink;
24struct bundle;
25struct iovec;
26struct physical;
27struct bundle;

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

51struct cd {
52 unsigned necessity : 2; /* A CD_ value */
53 int delay; /* Wait this many seconds after login script */
54};
55
56struct device {
57 int type;
58 const char *name;
59 u_short mtu;
59 struct cd cd;
60
61 int (*awaitcarrier)(struct physical *);
62 int (*removefromset)(struct physical *, fd_set *, fd_set *, fd_set *);
63 int (*raw)(struct physical *);
64 void (*offline)(struct physical *);
65 void (*cooked)(struct physical *);
66 void (*stoptimer)(struct physical *);

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

138extern struct physical *iov2physical(struct datalink *, struct iovec *, int *,
139 int, int, int *, int *);
140extern int physical2iov(struct physical *, struct iovec *, int *, int, int *,
141 int *);
142extern const char *physical_LockedDevice(struct physical *);
143extern void physical_ChangedPid(struct physical *, pid_t);
144
145extern int physical_IsSync(struct physical *);
60 struct cd cd;
61
62 int (*awaitcarrier)(struct physical *);
63 int (*removefromset)(struct physical *, fd_set *, fd_set *, fd_set *);
64 int (*raw)(struct physical *);
65 void (*offline)(struct physical *);
66 void (*cooked)(struct physical *);
67 void (*stoptimer)(struct physical *);

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

139extern struct physical *iov2physical(struct datalink *, struct iovec *, int *,
140 int, int, int *, int *);
141extern int physical2iov(struct physical *, struct iovec *, int *, int, int *,
142 int *);
143extern const char *physical_LockedDevice(struct physical *);
144extern void physical_ChangedPid(struct physical *, pid_t);
145
146extern int physical_IsSync(struct physical *);
147extern u_short physical_DeviceMTU(struct physical *);
146extern const char *physical_GetDevice(struct physical *);
147extern void physical_SetDeviceList(struct physical *, int, const char *const *);
148extern void physical_SetDevice(struct physical *, const char *);
149
150extern ssize_t physical_Read(struct physical *, void *, size_t);
151extern ssize_t physical_Write(struct physical *, const void *, size_t);
152extern int physical_doUpdateSet(struct fdescriptor *, fd_set *, fd_set *,
153 fd_set *, int *, int);

--- 13 unchanged lines hidden ---
148extern const char *physical_GetDevice(struct physical *);
149extern void physical_SetDeviceList(struct physical *, int, const char *const *);
150extern void physical_SetDevice(struct physical *, const char *);
151
152extern ssize_t physical_Read(struct physical *, void *, size_t);
153extern ssize_t physical_Write(struct physical *, const void *, size_t);
154extern int physical_doUpdateSet(struct fdescriptor *, fd_set *, fd_set *,
155 fd_set *, int *, int);

--- 13 unchanged lines hidden ---