-/* $OpenBSD: rtable.c,v 1.10 2015/10/07 10:50:35 mpi Exp $ */
+/* $OpenBSD: rtable.c,v 1.11 2015/10/07 11:39:49 mpi Exp $ */
/*
* Copyright (c) 2014-2015 Martin Pieuchot
void rtable_init_backend(unsigned int);
int rtable_attach(unsigned int, sa_family_t, int);
+void *rtable_get(unsigned int, sa_family_t);
void rtable_set(unsigned int, sa_family_t, void *);
void
-/* $OpenBSD: rtable.h,v 1.5 2015/10/07 10:50:35 mpi Exp $ */
+/* $OpenBSD: rtable.h,v 1.6 2015/10/07 11:39:49 mpi Exp $ */
/*
* Copyright (c) 2014-2015 Martin Pieuchot
#endif /* ART */
void rtable_init(void);
+int rtable_exists(unsigned int);
+int rtable_add(unsigned int);
+unsigned int rtable_l2(unsigned int);
+void rtable_l2set(unsigned int, unsigned int);
+
struct rtentry *rtable_lookup(unsigned int, struct sockaddr *,
struct sockaddr *);
struct rtentry *rtable_match(unsigned int, struct sockaddr *);
struct sockaddr *, uint8_t, struct rtentry *);
int rtable_delete(unsigned int, struct sockaddr *,
struct sockaddr *, uint8_t, struct rtentry *);
-
-int rtable_exists(unsigned int);
-int rtable_add(unsigned int);
-void *rtable_get(unsigned int, sa_family_t);
-unsigned int rtable_l2(unsigned int);
-void rtable_l2set(unsigned int, unsigned int);
int rtable_walk(unsigned int, sa_family_t,
int (*)(struct rtentry *, void *, unsigned int), void *);