mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Keep protocol data out of iface_patt.
This commit is contained in:
12
nest/iface.h
12
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 *);
|
||||
|
Reference in New Issue
Block a user