Revision a1f5e514 nest/rt-show.c

View differences:

nest/rt-show.c
70 70
    for (nh = &(a->nh); nh; nh = nh->next)
71 71
    {
72 72
      char mpls[MPLS_MAX_LABEL_STACK*12 + 5], *lsp = mpls;
73
      char *onlink = (nh->flags & RNF_ONLINK) ? " onlink" : "";
73 74

  
74 75
      if (nh->labels)
75 76
        {
......
80 81
      *lsp = '\0';
81 82

  
82 83
      if (a->nh.next)
83
	cli_printf(c, -1007, "\tvia %I%s on %s weight %d", nh->gw, mpls, nh->iface->name, nh->weight + 1);
84
	cli_printf(c, -1007, "\tvia %I%s on %s%s weight %d",
85
		   nh->gw, mpls, nh->iface->name, onlink, nh->weight + 1);
84 86
      else
85
	cli_printf(c, -1007, "\tvia %I%s on %s", nh->gw, mpls, nh->iface->name);
87
	cli_printf(c, -1007, "\tvia %I%s on %s%s",
88
		   nh->gw, mpls, nh->iface->name, onlink);
86 89
    }
87 90

  
88 91
  if (d->verbose)

Also available in: Unified diff