summaryrefslogtreecommitdiffstats
path: root/nest
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>1999-01-12 17:41:34 +0100
committerPavel Machek <pavel@ucw.cz>1999-01-12 17:41:34 +0100
commit77cedad1f6de8fcd0e59f280d08437ab3216428e (patch)
tree923162da18e435415044e34bb509d6b00e4b4afa /nest
parent50e89a6ea26caba59c7d4dd512fdc12c09cee64c (diff)
downloadbird-77cedad1f6de8fcd0e59f280d08437ab3216428e.tar
bird-77cedad1f6de8fcd0e59f280d08437ab3216428e.zip
Keep protocol data out of iface_patt.
Diffstat (limited to 'nest')
-rw-r--r--nest/iface.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/nest/iface.h b/nest/iface.h
index fdec094..a7f90a6 100644
--- a/nest/iface.h
+++ b/nest/iface.h
@@ -99,12 +99,12 @@ struct iface_patt {
node n;
byte *pattern; /* Interface name pattern */
- /* Protocol-specific data follow */
- union {
- struct {
- int metric;
- } rip;
- } u;
+ /* Protocol-specific data follow, but keep them like this:
+ struct rip_iface_patt {
+ struct iface_patt i;
+ whatever you (need);
+ }
+ */
};
struct iface_patt *iface_patt_match(list *, struct iface *);