From 9852f81064a38d35ff1bd5cc9fab7fc33926c83c Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Tue, 7 Dec 2010 23:34:36 +0100 Subject: Multipath support for static protocol. --- proto/static/static.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'proto/static/static.h') diff --git a/proto/static/static.h b/proto/static/static.h index 5c31e00..c91b9ce 100644 --- a/proto/static/static.h +++ b/proto/static/static.h @@ -28,9 +28,13 @@ struct static_route { ip_addr via; /* Destination router */ struct neighbor *neigh; byte *if_name; /* Name for RTD_DEVICE routes */ + struct static_route *mp_next; /* Nexthops for RTD_MULTIPATH routes */ int installed; /* Installed in master table */ }; +/* Dummy nodes (parts of multipath route) abuses masklen field for weight + and if_name field for a ptr to the master (RTD_MULTIPATH) node. */ + void static_show(struct proto *); #endif -- cgit v1.2.3