summaryrefslogtreecommitdiffstats
path: root/nest/iface.h
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1998-11-29 23:01:03 +0100
committerMartin Mares <mj@ucw.cz>1998-11-29 23:01:03 +0100
commited45f2e126680c7197be2058f9c162f1d5019eeb (patch)
tree2d67bd66f969b2c9c96079abf5fdd3f81c7c2c4d /nest/iface.h
parent49e4a4d1fd64da045182f6ccd38753feb364f9c5 (diff)
downloadbird-ed45f2e126680c7197be2058f9c162f1d5019eeb.tar
bird-ed45f2e126680c7197be2058f9c162f1d5019eeb.zip
Added functions for manipulating interface name pattern lists:
o iface_patt_match(list, iface) -- match interface against list o iface_patts_equal(a, b, c) -- compare whether two pattern lists are equal or not. c(x,y) is called for comparison of protocol-dependent data.
Diffstat (limited to 'nest/iface.h')
-rw-r--r--nest/iface.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/nest/iface.h b/nest/iface.h
index ea93720..62b3f94 100644
--- a/nest/iface.h
+++ b/nest/iface.h
@@ -91,4 +91,18 @@ neighbor *neigh_find(struct proto *, ip_addr *, unsigned flags);
void neigh_dump(neighbor *);
void neigh_dump_all(void);
+/*
+ * Interface Pattern Lists
+ */
+
+struct iface_patt {
+ node n;
+ byte *pattern; /* Interface name pattern */
+
+ /* Protocol-specific data follow */
+};
+
+struct iface_patt *iface_patt_match(list *, struct iface *);
+int iface_patts_equal(list *, list *, int (*)(struct iface_patt *, struct iface_patt *));
+
#endif