* more details.
*
* You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * with this program; see the file COPYING; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _ZEBRA_ISIS_DYNHN_H
#define _ZEBRA_ISIS_DYNHN_H
struct isis_dynhn {
- u_char id[ISIS_SYS_ID_LEN];
- struct hostname name;
+ uint8_t id[ISIS_SYS_ID_LEN];
+ char hostname[256];
time_t refresh;
int level;
};
void dyn_cache_init(void);
-void isis_dynhn_insert(const u_char *id, struct hostname *hostname, int level);
-void isis_dynhn_remove(const u_char *id);
-struct isis_dynhn *dynhn_find_by_id(const u_char *id);
+void isis_dynhn_insert(const uint8_t *id, const char *hostname, int level);
+void isis_dynhn_remove(const uint8_t *id);
+struct isis_dynhn *dynhn_find_by_id(const uint8_t *id);
struct isis_dynhn *dynhn_find_by_name(const char *hostname);
void dynhn_print_all(struct vty *vty);