Keep protocol data out of iface_patt.
This commit is contained in:
parent
50e89a6ea2
commit
77cedad1f6
1 changed files with 6 additions and 6 deletions
12
nest/iface.h
12
nest/iface.h
|
@ -99,12 +99,12 @@ struct iface_patt {
|
||||||
node n;
|
node n;
|
||||||
byte *pattern; /* Interface name pattern */
|
byte *pattern; /* Interface name pattern */
|
||||||
|
|
||||||
/* Protocol-specific data follow */
|
/* Protocol-specific data follow, but keep them like this:
|
||||||
union {
|
struct rip_iface_patt {
|
||||||
struct {
|
struct iface_patt i;
|
||||||
int metric;
|
whatever you (need);
|
||||||
} rip;
|
}
|
||||||
} u;
|
*/
|
||||||
};
|
};
|
||||||
|
|
||||||
struct iface_patt *iface_patt_match(list *, struct iface *);
|
struct iface_patt *iface_patt_match(list *, struct iface *);
|
||||||
|
|
Loading…
Reference in a new issue