summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 *);