/************************************************************************ ** * ** Copyright © 1996 Digital Equipment Corporation. * ** All rights reserved. * ** * ** Redistribution and use in source and binary forms are permitted * ** provided that the above copyright notice and this paragraph are * ** duplicated in all such forms and that any documentation, * ** advertising materials, and other materials related to such * ** distribution and use acknowledge that the software was developed * ** by Digital Equipment Corporation. The name of the * ** Corporation may not be used to endorse or promote products derived * ** from this software without specific prior written permission. * ** THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR * ** IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * ** WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * ** * ************************************************************************* **++ ** FACILITY: ** ** ppp_mgmt.h. ** ** ABSTRACT: ** ** Constant defintions and external defs of variables in ppp_mgmt.c ** ** AUTHORS: ** ** Patrick Crilly, Networks Engineering (Australia). ** ** CREATION DATE: ** ** 4-January-1996 ** ** MODIFICATION HISTORY: ** ** 17-December-1996 Barry W. Kierstein ** Replaced the standard Digital copyright with ** one compatible with the CMU copyright. ** ** 24-July-1996 Barry W. Kierstein ** Corrected copyright notice. ** ** 4-January-1996 Original version. ** **-- */ #ifndef _PPP_MGMT_H_ #define _PPP_MGMT_H_ /* ** ** import definitions: ** lineId ** */ #ifndef _PPPD_H_ #include "pppd.h" #endif /* ** ** import definitions: ** ItemList ** mgmt item codes ** */ #ifndef _PPP_MGMT_IF_H_ #include "ppp_mgmt_if.h" #endif /* ** Define an entry in a parse table */ typedef struct parseItem { u_char minSize; /* mininmum size of item */ u_char maxSize; /* maximum size of item */ } parseItem; /* ** Define the sizes of data items */ #define WORD_SIZE 2 #define LONG_SIZE 4 #define MIN_STRING_SIZE 0 #define MAX_STRING_SIZE PPPD$K_MAX_NAME /* ** Prototypes */ ItemList *mgmtAllocItemList( u_int size ); int mgmtAppendItem( ItemList *list, int tag, int len, void *value ); u_int mgmtCreateLine( lineId *id, char *lineName, u_int lineNameLen ); void mgmtDeallocItemList( ItemList *list ); u_int mgmtDeleteLine( lineId id ); u_int mgmtDisableLine( lineId id ); u_int mgmtEnableLine( lineId id ); u_int mgmtGetLineId( lineId *id, char *lineName, u_int lineNameLen ); ItemEntry *mgmtNextItem( ItemList *itml_p, ItemEntry **curItem_p ); char mgmtParseItemList( ItemList *list, parseItem tbl[], int numItems, u_int *qual ); u_int mgmtSetLine( lineId id, ItemList *lineDetails, u_int *qual ); u_int mgmtShowLine( lineId id, ItemList *lineDetails, u_int *qual ); #endif /* _PPP_MGMT_H */