]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Keep protocol data out of iface_patt.
authorPavel Machek <pavel@ucw.cz>
Tue, 12 Jan 1999 16:41:34 +0000 (16:41 +0000)
committerPavel Machek <pavel@ucw.cz>
Tue, 12 Jan 1999 16:41:34 +0000 (16:41 +0000)
nest/iface.h

index fdec0946131e3cd43dc93c662f40a55227b90262..a7f90a6eb74332e481ffeb3d5885ea589a867298 100644 (file)
@@ -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 *);