bundle.h (49434) | bundle.h (49978) |
---|---|
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: bundle.h,v 1.23 1999/06/02 00:46:52 brian Exp $ | 26 * $Id: bundle.h,v 1.24 1999/08/05 10:32:08 brian Exp $ |
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 --- 49 unchanged lines hidden (view full) --- 84 } phys_type; 85 86 unsigned CleaningUp : 1; /* Going to exit.... */ 87 unsigned AliasEnabled : 1; /* Are we using libalias ? */ 88 89 struct fsm_parent fsm; /* Our callback functions */ 90 struct datalink *links; /* Our data links */ 91 | 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 --- 49 unchanged lines hidden (view full) --- 84 } phys_type; 85 86 unsigned CleaningUp : 1; /* Going to exit.... */ 87 unsigned AliasEnabled : 1; /* Are we using libalias ? */ 88 89 struct fsm_parent fsm; /* Our callback functions */ 90 struct datalink *links; /* Our data links */ 91 |
92 time_t upat; /* When the link came up */ 93 |
|
92 struct { | 94 struct { |
93 int idle_timeout; /* NCP Idle timeout value */ | |
94 struct { | 95 struct { |
96 int timeout; /* NCP Idle timeout value */ 97 int min_timeout; /* Don't idle out before this */ 98 } idle; 99 struct { |
|
95 char name[AUTHLEN]; /* PAP/CHAP system name */ 96 char key[AUTHLEN]; /* PAP/CHAP key */ 97 } auth; 98 unsigned opt; /* Uses OPT_ bits from above */ 99 char label[50]; /* last thing `load'ed */ 100 u_short mtu; /* Interface mtu */ 101 102 struct { --- 47 unchanged lines hidden (view full) --- 150extern void bundle_Down(struct bundle *, int); 151extern void bundle_Open(struct bundle *, const char *, int, int); 152extern void bundle_LinkClosed(struct bundle *, struct datalink *); 153 154extern int bundle_FillQueues(struct bundle *); 155extern int bundle_ShowLinks(struct cmdargs const *); 156extern int bundle_ShowStatus(struct cmdargs const *); 157extern void bundle_StartIdleTimer(struct bundle *); | 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 */ 105 u_short mtu; /* Interface mtu */ 106 107 struct { --- 47 unchanged lines hidden (view full) --- 155extern void bundle_Down(struct bundle *, int); 156extern void bundle_Open(struct bundle *, const char *, int, int); 157extern void bundle_LinkClosed(struct bundle *, struct datalink *); 158 159extern int bundle_FillQueues(struct bundle *); 160extern int bundle_ShowLinks(struct cmdargs const *); 161extern int bundle_ShowStatus(struct cmdargs const *); 162extern void bundle_StartIdleTimer(struct bundle *); |
158extern void bundle_SetIdleTimer(struct bundle *, int); | 163extern void bundle_SetIdleTimer(struct bundle *, int, int); |
159extern void bundle_StopIdleTimer(struct bundle *); 160extern int bundle_IsDead(struct bundle *); 161extern struct datalink *bundle2datalink(struct bundle *, const char *); 162 163extern void bundle_RegisterDescriptor(struct bundle *, struct descriptor *); 164extern void bundle_UnRegisterDescriptor(struct bundle *, struct descriptor *); 165 166extern void bundle_SetTtyCommandMode(struct bundle *, struct datalink *); --- 21 unchanged lines hidden --- | 164extern void bundle_StopIdleTimer(struct bundle *); 165extern int bundle_IsDead(struct bundle *); 166extern struct datalink *bundle2datalink(struct bundle *, const char *); 167 168extern void bundle_RegisterDescriptor(struct bundle *, struct descriptor *); 169extern void bundle_UnRegisterDescriptor(struct bundle *, struct descriptor *); 170 171extern void bundle_SetTtyCommandMode(struct bundle *, struct datalink *); --- 21 unchanged lines hidden --- |