From 77cedad1f6de8fcd0e59f280d08437ab3216428e Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Tue, 12 Jan 1999 16:41:34 +0000 Subject: [PATCH] Keep protocol data out of iface_patt. --- nest/iface.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nest/iface.h b/nest/iface.h index fdec0946..a7f90a6e 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 *);