bundle.h (75212) | bundle.h (78410) |
---|---|
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/bundle.h 75212 2001-04-05 02:23:48Z brian $ | 26 * $FreeBSD: head/usr.sbin/ppp/bundle.h 78410 2001-06-18 14:59:36Z brian $ |
27 */ 28 29#define PHASE_DEAD 0 /* Link is dead */ 30#define PHASE_ESTABLISH 1 /* Establishing link */ 31#define PHASE_AUTHENTICATE 2 /* Being authenticated */ 32#define PHASE_NETWORK 3 /* We're alive ! */ 33#define PHASE_TERMINATE 4 /* Terminating link */ 34 --- 33 unchanged lines hidden (view full) --- 68 69 struct { 70 char Name[20]; /* The /dev/XXXX name */ 71 int fd; /* The /dev/XXXX descriptor */ 72 unsigned header : 1; /* Family header sent & received ? */ 73 } dev; 74 75 u_long bandwidth; /* struct tuninfo speed */ | 27 */ 28 29#define PHASE_DEAD 0 /* Link is dead */ 30#define PHASE_ESTABLISH 1 /* Establishing link */ 31#define PHASE_AUTHENTICATE 2 /* Being authenticated */ 32#define PHASE_NETWORK 3 /* We're alive ! */ 33#define PHASE_TERMINATE 4 /* Terminating link */ 34 --- 33 unchanged lines hidden (view full) --- 68 69 struct { 70 char Name[20]; /* The /dev/XXXX name */ 71 int fd; /* The /dev/XXXX descriptor */ 72 unsigned header : 1; /* Family header sent & received ? */ 73 } dev; 74 75 u_long bandwidth; /* struct tuninfo speed */ |
76 int mtu; /* struct tuninfo MTU */ | |
77 struct iface *iface; /* Interface information */ 78 79 int routing_seq; /* The current routing sequence number */ 80 u_int phase; /* Curent phase */ 81 82 struct { 83 int all; /* Union of all physical::type's */ 84 int open; /* Union of all open physical::type's */ --- 13 unchanged lines hidden (view full) --- 98 int min_timeout; /* Don't idle out before this */ 99 } idle; 100 struct { 101 char name[AUTHLEN]; /* PAP/CHAP system name */ 102 char key[AUTHLEN]; /* PAP/CHAP key */ 103 } auth; 104 unsigned opt; /* Uses OPT_ bits from above */ 105 char label[50]; /* last thing `load'ed */ | 76 struct iface *iface; /* Interface information */ 77 78 int routing_seq; /* The current routing sequence number */ 79 u_int phase; /* Curent phase */ 80 81 struct { 82 int all; /* Union of all physical::type's */ 83 int open; /* Union of all open physical::type's */ --- 13 unchanged lines hidden (view full) --- 97 int min_timeout; /* Don't idle out before this */ 98 } idle; 99 struct { 100 char name[AUTHLEN]; /* PAP/CHAP system name */ 101 char key[AUTHLEN]; /* PAP/CHAP key */ 102 } auth; 103 unsigned opt; /* Uses OPT_ bits from above */ 104 char label[50]; /* last thing `load'ed */ |
106 u_short mtu; /* Required interface MTU */ | |
107 u_short ifqueue; /* Interface queue size */ 108 109 struct { 110 int timeout; /* How long to leave the output queue choked */ 111 } choked; 112 } cfg; 113 114 struct { --- 82 unchanged lines hidden --- | 105 u_short ifqueue; /* Interface queue size */ 106 107 struct { 108 int timeout; /* How long to leave the output queue choked */ 109 } choked; 110 } cfg; 111 112 struct { --- 82 unchanged lines hidden --- |