#define CONFIG_NO 1
#define CONFIG_YES 2
-/* babeld interface informations */
+/* babeld interface information */
struct babel_interface {
unsigned short flags; /* see below */
unsigned short cost;
char have_buffered_id;
char have_buffered_nh;
char have_buffered_prefix;
- unsigned char buffered_id[16];
+ unsigned char buffered_id[8];
unsigned char buffered_nh[4];
unsigned char buffered_prefix[16];
unsigned char *sendbuf;
(babel_get_if_nfo(ifp)->flags & BABEL_IF_IS_UP));
}
-/* types:
- struct interface _ifp, struct listnode node */
-#define FOR_ALL_INTERFACES(_ifp, _node) \
- for(ALL_LIST_ELEMENTS_RO(vrf_iflist(VRF_DEFAULT), _node, _ifp))
-
-/* types:
- struct interface *ifp, struct connected *_connected, struct listnode *node */
-#define FOR_ALL_INTERFACES_ADDRESSES(ifp, _connected, _node) \
- for(ALL_LIST_ELEMENTS_RO(ifp->connected, _node, _connected))
-
struct buffered_update {
unsigned char id[8];
unsigned char prefix[16];
unsigned char pad[3];
};
-
/* init function */
void babel_if_init(void);