]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zserv.c: delete unused zsend_write_nexthop
authorpaulzlabn <paulz@labn.net>
Thu, 15 Mar 2018 05:17:53 +0000 (22:17 -0700)
committerGitHub <noreply@github.com>
Thu, 15 Mar 2018 05:17:53 +0000 (22:17 -0700)
zebra/zserv.c

index 96fa0d3be3e92ad42eca82430b79a9c6f3d2f569..2dc9e290d384fd24cc82e7cd74a227df26ad949d 100644 (file)
@@ -611,32 +611,6 @@ int zsend_redistribute_route(int cmd, struct zserv *client, struct prefix *p,
        return zebra_server_send_message(client, s);
 }
 
-static int zsend_write_nexthop(struct stream *s, struct nexthop *nexthop)
-{
-       stream_putc(s, nexthop->type);
-       switch (nexthop->type) {
-       case NEXTHOP_TYPE_IPV4:
-       case NEXTHOP_TYPE_IPV4_IFINDEX:
-               stream_put_in_addr(s, &nexthop->gate.ipv4);
-               stream_putl(s, nexthop->ifindex);
-               break;
-       case NEXTHOP_TYPE_IPV6:
-               stream_put(s, &nexthop->gate.ipv6, 16);
-               break;
-       case NEXTHOP_TYPE_IPV6_IFINDEX:
-               stream_put(s, &nexthop->gate.ipv6, 16);
-               stream_putl(s, nexthop->ifindex);
-               break;
-       case NEXTHOP_TYPE_IFINDEX:
-               stream_putl(s, nexthop->ifindex);
-               break;
-       default:
-               /* do nothing */
-               break;
-       }
-       return 1;
-}
-
 /*
  * Modified version of zsend_ipv4_nexthop_lookup(): Query unicast rib if
  * nexthop is not found on mrib. Returns both route metric and protocol