summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_rib.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/zebra_rib.c')
-rw-r--r--zebra/zebra_rib.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c
index 69249779..0e9e8a26 100644
--- a/zebra/zebra_rib.c
+++ b/zebra/zebra_rib.c
@@ -1623,7 +1623,8 @@ int
rib_add_ipv4 (int type, int flags, struct prefix_ipv4 *p,
struct in_addr *gate, struct in_addr *src,
unsigned int ifindex, u_int32_t vrf_id,
- u_int32_t metric, u_int8_t distance, u_int8_t scope)
+ u_int32_t metric, u_int8_t distance,
+ u_int8_t scope, u_int8_t proto)
{
struct rib *rib;
struct rib *same = NULL;
@@ -1688,6 +1689,7 @@ rib_add_ipv4 (int type, int flags, struct prefix_ipv4 *p,
rib->nexthop_num = 0;
rib->uptime = time (NULL);
rib->scope = scope;
+ rib->protocol = proto;
/* Nexthop settings. */
if (gate)
@@ -1701,7 +1703,7 @@ rib_add_ipv4 (int type, int flags, struct prefix_ipv4 *p,
nexthop_ifindex_add (rib, ifindex, src);
/* If this route is kernel route, set FIB flag to the route. */
- if (RIB_SYSTEM_ROUTE (rib))
+ if (RIB_SYSTEM_ROUTE (rib))
{
/* Mark system routes with the don't touch me flag */
if (! rib_system_routes)