Commits
Dinesh G Dutt authored and Paul Jakma committed d1b0991ad84
2909 2909 | rib_queue_add (&zebrad, rn); |
2910 2910 | } |
2911 2911 | else |
2912 2912 | { |
2913 2913 | /* This is new static route. */ |
2914 2914 | rib = XCALLOC (MTYPE_RIB, sizeof (struct rib)); |
2915 2915 | |
2916 2916 | rib->type = ZEBRA_ROUTE_STATIC; |
2917 2917 | rib->distance = si->distance; |
2918 2918 | rib->metric = 0; |
2919 + | rib->table = zebrad.rtm_table_default; |
2919 2920 | rib->nexthop_num = 0; |
2920 2921 | |
2921 2922 | switch (si->type) |
2922 2923 | { |
2923 2924 | case STATIC_IPV6_GATEWAY: |
2924 2925 | nexthop_ipv6_add (rib, &si->ipv6); |
2925 2926 | break; |
2926 2927 | case STATIC_IPV6_IFNAME: |
2927 2928 | nexthop_ifname_add (rib, si->ifname); |
2928 2929 | break; |