1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Files
2024-07-22 01:58:46 -03:00

38 lines
904 B
C
Executable File

/*
*
* Configuration DB
*
* $Id: //BBN_Linux/Branch/Branch_for_Rel_TP_ASEAN_20161216/tclinux_phoenix/apps/public/linux-atm/lane/ldb.h#1 $
*
*/
#ifndef LDB_H
#define LDB_H
typedef struct {
char elan_name[32];
short elan_name_size;
int no_addresses;
char *addresses[256];
unsigned char les_addr[20];
char type; /* Unspecified, 802.3, 802.5 */
char max_frame; /* 1516, 4544, 9234, 18190 */
} Elan_t;
/* Protos */
Elan_t *new_elan(const char *name);
int add_les(Elan_t *elan, const char *addr);
int add_atm(Elan_t *elan, char *addr);
void set_default(Elan_t *elan);
void set_lecs_addr(const char *addr);
const unsigned char *get_lecs_addr(void);
Elan_t *find_elan(unsigned char *lec_addr, const char type,
const char max_frame, const char *elan_name,
const short elan_name_size, unsigned short *reason);
void dump_db(Elan_t *elan);
void reset_db(void);
#endif /* LDB_H */