summaryrefslogtreecommitdiff
path: root/babeld/babel_interface.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-10-16 12:00:38 -0400
committerGitHub <noreply@github.com>2017-10-16 12:00:38 -0400
commit5b8d8894f8ecb401acc9b3986bbb6ce95b3263e9 (patch)
tree077628692cdbae750e26d1b8f237c422bae6519d /babeld/babel_interface.h
parent4c6ed05e4e2276c463f16c1dbf8d9f04bc1130fe (diff)
parent451fda4f9a2fadc24328e640077780a00ffcdac2 (diff)
Merge pull request #1298 from opensourcerouting/iface-rb-tree
Use rb-trees to store interfaces instead of linked-lists
Diffstat (limited to 'babeld/babel_interface.h')
-rw-r--r--babeld/babel_interface.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/babeld/babel_interface.h b/babeld/babel_interface.h
index 501177e602..17d9bfb936 100644
--- a/babeld/babel_interface.h
+++ b/babeld/babel_interface.h
@@ -103,16 +103,6 @@ if_up(struct interface *ifp)
(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];
@@ -120,7 +110,6 @@ struct buffered_update {
unsigned char pad[3];
};
-
/* init function */
void babel_if_init(void);