From: Pavel Machek Date: Tue, 12 Jan 1999 16:41:34 +0000 (+0000) Subject: Keep protocol data out of iface_patt. X-Git-Tag: v1.2.0~1743 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77cedad1f6de8fcd0e59f280d08437ab3216428e;p=thirdparty%2Fbird.git Keep protocol data out of iface_patt. --- diff --git a/nest/iface.h b/nest/iface.h index fdec09461..a7f90a6eb 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 *);