X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;ds=inline;f=src%2Fvnet%2Fip%2Flookup.c;h=c1fbc429b9783b592fc1f4937be9edf732a083b4;hb=0b6a857d85df97e887de7aaf00fd6bd2dae39bf8;hp=e354db77216771a13990170ce047eab45d60c51e;hpb=46023762d1da674ff73954f0d1523d450bfcf03c;p=vpp.git diff --git a/src/vnet/ip/lookup.c b/src/vnet/ip/lookup.c index e354db77216..c1fbc429b97 100644 --- a/src/vnet/ip/lookup.c +++ b/src/vnet/ip/lookup.c @@ -13,7 +13,7 @@ * limitations under the License. */ /* - * ip/ip_lookup.c: ip4/6 adjacency and lookup table managment + * ip/ip_lookup.c: ip4/6 adjacency and lookup table management * * Copyright (c) 2008 Eliot Dresselhaus * @@ -55,7 +55,7 @@ /** * @file - * @brief IPv4 and IPv6 adjacency and lookup table managment. + * @brief IPv4 and IPv6 adjacency and lookup table management. * */ @@ -258,27 +258,10 @@ format_ip_flow_hash_config (u8 * s, va_list * args) u8 * format_ip_adjacency_packet_data (u8 * s, va_list * args) { - u32 adj_index = va_arg (*args, u32); u8 *packet_data = va_arg (*args, u8 *); u32 n_packet_data_bytes = va_arg (*args, u32); - ip_adjacency_t *adj; - if (!adj_is_valid (adj_index)) - return format (s, ""); - - adj = adj_get (adj_index); - - switch (adj->lookup_next_index) - { - case IP_LOOKUP_NEXT_REWRITE: - case IP_LOOKUP_NEXT_MCAST: - s = - format (s, "%U", format_hex_bytes, packet_data, n_packet_data_bytes); - break; - - default: - break; - } + s = format (s, "%U", format_hex_bytes, packet_data, n_packet_data_bytes); return s; } @@ -1016,7 +999,7 @@ done: } /*? - * This command is used to add or delete IPv4 or IPv6 multicastroutes. All + * This command is used to add or delete IPv4 or IPv6 multicast routes. All * IP Addresses ('/', * '' and '') * can be IPv4 or IPv6, but all must be of the same form in a single