summaryrefslogtreecommitdiff
path: root/zebra/zebra_static.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-08-06 04:32:55 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2017-08-06 05:22:49 +0200
commit7569827e30cd02e35b7ca1d0e1fae7daa55f6c58 (patch)
tree01467fdd1601e02a3b35876fb5eeaea80bb25122 /zebra/zebra_static.h
parent78986c05cdb4adf6019d02dc328341943c573b35 (diff)
zebra: static: rename IFINDEX -> IFNAME
Static routes are really held by ifname, not ifindex. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'zebra/zebra_static.h')
-rw-r--r--zebra/zebra_static.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/zebra/zebra_static.h b/zebra/zebra_static.h
index adc2efff58..1379bef093 100644
--- a/zebra/zebra_static.h
+++ b/zebra/zebra_static.h
@@ -32,11 +32,11 @@ struct static_nh_label
};
typedef enum {
- STATIC_IFINDEX,
+ STATIC_IFNAME,
STATIC_IPV4_GATEWAY,
STATIC_BLACKHOLE,
STATIC_IPV6_GATEWAY,
- STATIC_IPV6_GATEWAY_IFINDEX,
+ STATIC_IPV6_GATEWAY_IFNAME,
} zebra_static_types;
/* Static route information. */
@@ -64,7 +64,7 @@ struct static_route
* Under IPv4 addr and ifindex are
* used independentyly.
* STATIC_IPV4_GATEWAY uses addr
- * STATIC_IFINDEX uses ifindex
+ * STATIC_IFNAME uses ifindex
*/
union g_addr addr;
ifindex_t ifindex;