/* Nexthop lookup for IPv4. */ static void zread_ipv4_nexthop_lookup (struct zserv *client, u_short length) { struct in_addr addr; addr.s_addr = stream_get_ipv4 (client->ibuf); zsend_ipv4_nexthop_lookup (client, addr); }
/* Nexthop lookup for IPv4. */ static int zread_ipv4_nexthop_lookup (struct zserv *client, u_short length) { struct in_addr addr; char buf[BUFSIZ]; addr.s_addr = stream_get_ipv4 (client->ibuf); if (IS_ZEBRA_DEBUG_PACKET && IS_ZEBRA_DEBUG_RECV) zlog_debug("%s: looking up %s", __func__, inet_ntop (AF_INET, &addr, buf, BUFSIZ)); return zsend_ipv4_nexthop_lookup (client, addr); }