2023-02-08 13:17:09 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2003-12-23 09:09:43 +01:00
|
|
|
/*
|
|
|
|
* IS-IS Rout(e)ing protocol - isis_dynhn.h
|
|
|
|
* Dynamic hostname cache
|
|
|
|
*
|
|
|
|
* Copyright (C) 2001,2002 Sampo Saaristo
|
|
|
|
* Tampere University of Technology
|
|
|
|
* Institute of Communications Engineering
|
|
|
|
*/
|
|
|
|
#ifndef _ZEBRA_ISIS_DYNHN_H
|
|
|
|
#define _ZEBRA_ISIS_DYNHN_H
|
|
|
|
|
2004-09-10 22:48:21 +02:00
|
|
|
struct isis_dynhn {
|
2018-03-27 21:13:34 +02:00
|
|
|
uint8_t id[ISIS_SYS_ID_LEN];
|
2017-07-05 18:37:36 +02:00
|
|
|
char hostname[256];
|
2003-12-23 09:09:43 +01:00
|
|
|
time_t refresh;
|
|
|
|
int level;
|
|
|
|
};
|
|
|
|
|
2020-07-13 14:37:59 +02:00
|
|
|
void dyn_cache_init(struct isis *isis);
|
2021-06-11 17:27:46 +02:00
|
|
|
void dyn_cache_finish(struct isis *isis);
|
|
|
|
void isis_dynhn_insert(struct isis *isis, const uint8_t *id,
|
|
|
|
const char *hostname, int level);
|
|
|
|
void isis_dynhn_remove(struct isis *isis, const uint8_t *id);
|
|
|
|
struct isis_dynhn *dynhn_find_by_id(struct isis *isis, const uint8_t *id);
|
|
|
|
struct isis_dynhn *dynhn_find_by_name(struct isis *isis, const char *hostname);
|
2020-07-13 14:37:59 +02:00
|
|
|
void dynhn_print_all(struct vty *vty, struct isis *isis);
|
2003-12-23 09:09:43 +01:00
|
|
|
|
2020-09-15 22:46:15 +02:00
|
|
|
/* Snmp support */
|
2021-06-11 17:27:46 +02:00
|
|
|
struct isis_dynhn *dynhn_snmp_next(struct isis *isis, const uint8_t *id,
|
|
|
|
int level);
|
2020-09-15 22:46:15 +02:00
|
|
|
|
2003-12-23 09:09:43 +01:00
|
|
|
#endif /* _ZEBRA_ISIS_DYNHN_H */
|