diff options
author | Brian Somers <brian@FreeBSD.org> | 1998-02-27 01:22:39 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 1998-02-27 01:22:39 +0000 |
commit | 6d6667755ecffdeb3518255e2b482ebe03333c35 (patch) | |
tree | b02f94839215262e8e4c7171a2b2e2570b722da9 /usr.sbin/ppp/datalink.h | |
parent | 486f40c95cc4846754e9ee2c0af465729eeb95fb (diff) | |
download | src-6d6667755ecffdeb3518255e2b482ebe03333c35.tar.gz src-6d6667755ecffdeb3518255e2b482ebe03333c35.zip |
Create struct fsm_parent. FSMs are created with one of these,
and the FSM passes subsequent events to them.
The datalink now hides its CCP from the bundle layer.
Notes
Notes:
svn path=/cvs2svn/branches/MP/; revision=33858
Diffstat (limited to 'usr.sbin/ppp/datalink.h')
-rw-r--r-- | usr.sbin/ppp/datalink.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/usr.sbin/ppp/datalink.h b/usr.sbin/ppp/datalink.h index f4bda0014aa6..25becaeeda93 100644 --- a/usr.sbin/ppp/datalink.h +++ b/usr.sbin/ppp/datalink.h @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: datalink.h,v 1.1.2.7 1998/02/17 19:28:46 brian Exp $ + * $Id: datalink.h,v 1.1.2.8 1998/02/23 00:38:27 brian Exp $ */ #define DATALINK_CLOSED (0) @@ -66,20 +66,23 @@ struct datalink { char *name; /* Our name */ + struct fsm_parent fsm; /* Our callback functions */ + const struct fsm_parent *parent; /* Our parent */ #ifdef soon - struct lcp lcp; /* Our line control FSM */ + struct lcp lcp; /* Our line control FSM */ #endif - struct ccp ccp; /* Our compression FSM */ + struct ccp ccp; /* Our compression FSM */ - struct bundle *bundle; /* for the moment */ - struct datalink *next; /* Next in the list */ + struct bundle *bundle; /* for the moment */ + struct datalink *next; /* Next in the list */ }; #define datalink2descriptor(dl) (&(dl)->desc) #define descriptor2datalink(d) \ ((d)->type == DATALINK_DESCRIPTOR ? (struct datalink *)(d) : NULL) -extern struct datalink *datalink_Create(const char *name, struct bundle *); +extern struct datalink *datalink_Create(const char *name, struct bundle *, + const struct fsm_parent *); extern struct datalink *datalink_Destroy(struct datalink *); extern void datalink_Up(struct datalink *, int, int); extern void datalink_Close(struct datalink *, int); |