diff options
Diffstat (limited to 'src/plugins/igmp')
-rw-r--r-- | src/plugins/igmp/igmp.c | 6 | ||||
-rw-r--r-- | src/plugins/igmp/igmp_api.c | 6 | ||||
-rw-r--r-- | src/plugins/igmp/igmp_cli.c | 18 | ||||
-rw-r--r-- | src/plugins/igmp/igmp_config.c | 4 | ||||
-rw-r--r-- | src/plugins/igmp/igmp_group.c | 10 | ||||
-rw-r--r-- | src/plugins/igmp/igmp_input.c | 8 | ||||
-rw-r--r-- | src/plugins/igmp/igmp_pkt.c | 4 | ||||
-rw-r--r-- | src/plugins/igmp/igmp_proxy.c | 6 | ||||
-rw-r--r-- | src/plugins/igmp/igmp_query.c | 2 | ||||
-rw-r--r-- | src/plugins/igmp/igmp_ssm_range.c | 4 | ||||
-rw-r--r-- | src/plugins/igmp/igmp_timer.c | 2 |
11 files changed, 0 insertions, 70 deletions
diff --git a/src/plugins/igmp/igmp.c b/src/plugins/igmp/igmp.c index d66a013e3f9..30f167d483a 100644 --- a/src/plugins/igmp/igmp.c +++ b/src/plugins/igmp/igmp.c @@ -35,7 +35,6 @@ igmp_main_t igmp_main; -/* *INDENT-OFF* */ /* General Query address */ const static mfib_prefix_t mpfx_general_query = { .fp_proto = FIB_PROTOCOL_IP4, @@ -57,7 +56,6 @@ const static mfib_prefix_t mpfx_report = { }, }, }; -/* *INDENT-ON* */ /** * @brief igmp send query (igmp_timer_function_t) @@ -345,7 +343,6 @@ igmp_enable_disable (u32 sw_if_index, u8 enable, igmp_mode_t mode) IGMP_DBG ("%s: %U", (enable ? "Enabled" : "Disabled"), format_vnet_sw_if_index_name, vnet_get_main (), sw_if_index); - /* *INDENT-OFF* */ fib_route_path_t via_itf_path = { .frp_proto = fib_proto_to_dpo (FIB_PROTOCOL_IP4), @@ -365,7 +362,6 @@ igmp_enable_disable (u32 sw_if_index, u8 enable, igmp_mode_t mode) .frp_mitf_flags = MFIB_ITF_FLAG_FORWARD, }; - /* *INDENT-ON* */ /* find configuration, if it doesn't exist, create new */ config = igmp_config_lookup (sw_if_index); mfib_index = mfib_table_get_index_for_sw_if_index (FIB_PROTOCOL_IP4, @@ -488,7 +484,6 @@ igmp_init (vlib_main_t * vm) return (0); } -/* *INDENT-OFF* */ VLIB_INIT_FUNCTION (igmp_init) = { .runs_after = VLIB_INITS("ip4_lookup_init"), @@ -498,7 +493,6 @@ VLIB_PLUGIN_REGISTER () = .version = VPP_BUILD_VER, .description = "Internet Group Management Protocol (IGMP)", }; -/* *INDENT-ON* */ /* * fd.io coding-style-patch-verification: ON diff --git a/src/plugins/igmp/igmp_api.c b/src/plugins/igmp/igmp_api.c index a4746ab5c5b..3f743d8fee1 100644 --- a/src/plugins/igmp/igmp_api.c +++ b/src/plugins/igmp/igmp_api.c @@ -154,7 +154,6 @@ igmp_config_dump (igmp_main_t * im, igmp_group_t *group; igmp_src_t *src; - /* *INDENT-OFF* */ FOR_EACH_GROUP (group, config, ({ FOR_EACH_SRC (src, group, IGMP_FILTER_MODE_INCLUDE, @@ -162,7 +161,6 @@ igmp_config_dump (igmp_main_t * im, send_igmp_details (rp, im, config, group, src, context); })); })); - /* *INDENT-ON* */ } static void @@ -180,12 +178,10 @@ vl_api_igmp_dump_t_handler (vl_api_igmp_dump_t * mp) sw_if_index = ntohl (mp->sw_if_index); if (~0 == sw_if_index) { - /* *INDENT-OFF* */ pool_foreach (config, im->configs) { igmp_config_dump(im, rp, mp->context, config); } - /* *INDENT-ON* */ } else { @@ -401,14 +397,12 @@ igmp_event (igmp_filter_mode_t filter, vnet_get_main (), sw_if_index, format_igmp_filter_mode, filter); - /* *INDENT-OFF* */ pool_foreach (api_client, im->api_clients) { rp = vl_api_client_index_to_registration (api_client->client_index); if (rp) send_igmp_event (rp, filter, sw_if_index, saddr, gaddr); } - /* *INDENT-ON* */ } /* Set up the API message handling tables */ diff --git a/src/plugins/igmp/igmp_cli.c b/src/plugins/igmp/igmp_cli.c index f84cdaf50f7..713f4c31bfb 100644 --- a/src/plugins/igmp/igmp_cli.c +++ b/src/plugins/igmp/igmp_cli.c @@ -69,13 +69,11 @@ done: return error; } -/* *INDENT-OFF* */ VLIB_CLI_COMMAND (igmp_clear_interface_command, static) = { .path = "clear igmp", .short_help = "clear igmp int <interface>", .function = igmp_clear_interface_command_fn, }; -/* *INDENT-ON* */ static clib_error_t * igmp_listen_command_fn (vlib_main_t * vm, unformat_input_t * input, @@ -150,14 +148,12 @@ done: return error; } -/* *INDENT-OFF* */ VLIB_CLI_COMMAND (igmp_listen_command, static) = { .path = "igmp listen", .short_help = "igmp listen [<enable|disable>] " "int <interface> saddr <ip4-address> gaddr <ip4-address>", .function = igmp_listen_command_fn, }; -/* *INDENT-ON* */ static clib_error_t * igmp_enable_cli (vlib_main_t * vm, @@ -211,13 +207,11 @@ done: return error; } -/* *INDENT-OFF* */ VLIB_CLI_COMMAND (igmp_enable_command, static) = { .path = "igmp", .short_help = "igmp <enable|disable> <host|router> <interface>", .function = igmp_enable_cli, }; -/* *INDENT-ON* */ static clib_error_t * igmp_proxy_device_add_del_command_fn (vlib_main_t * vm, @@ -275,13 +269,11 @@ done: unformat_free (line_input); return error; } -/* *INDENT-OFF* */ VLIB_CLI_COMMAND (igmp_proxy_device_add_del_command, static) = { .path = "igmp proxy-dev", .short_help = "igmp proxy-dev <add|del> vrf-id <table-id> <interface>", .function = igmp_proxy_device_add_del_command_fn, }; -/* *INDENT-ON* */ static clib_error_t * igmp_proxy_device_add_del_interface_command_fn (vlib_main_t * vm, @@ -339,13 +331,11 @@ done: unformat_free (line_input); return error; } -/* *INDENT-OFF* */ VLIB_CLI_COMMAND (igmp_proxy_device_add_del_interface_command, static) = { .path = "igmp proxy-dev itf", .short_help = "igmp proxy-dev itf <add|del> vrf-id <table-id> <interface>", .function = igmp_proxy_device_add_del_interface_command_fn, }; -/* *INDENT-ON* */ static clib_error_t * igmp_show_command_fn (vlib_main_t * vm, unformat_input_t * input, @@ -355,23 +345,19 @@ igmp_show_command_fn (vlib_main_t * vm, unformat_input_t * input, igmp_main_t *im = &igmp_main; igmp_config_t *config; - /* *INDENT-OFF* */ pool_foreach (config, im->configs) { vlib_cli_output (vm, "%U", format_igmp_config, config); } - /* *INDENT-ON* */ return error; } -/* *INDENT-OFF* */ VLIB_CLI_COMMAND (igmp_show_command, static) = { .path = "show igmp config", .short_help = "show igmp config", .function = igmp_show_command_fn, }; -/* *INDENT-ON* */ static clib_error_t * igmp_show_timers_command_fn (vlib_main_t * vm, @@ -384,13 +370,11 @@ igmp_show_timers_command_fn (vlib_main_t * vm, return (NULL); } -/* *INDENT-OFF* */ VLIB_CLI_COMMAND (igmp_show_timers_command, static) = { .path = "show igmp timers", .short_help = "show igmp timers", .function = igmp_show_timers_command_fn, }; -/* *INDENT-ON* */ static clib_error_t * test_igmp_command_fn (vlib_main_t * vm, @@ -414,13 +398,11 @@ test_igmp_command_fn (vlib_main_t * vm, return error; } -/* *INDENT-OFF* */ VLIB_CLI_COMMAND (test_igmp_command, static) = { .path = "test igmp timers", .short_help = "Change the default values for IGMP timers - only sensible during unit tests", .function = test_igmp_command_fn, }; -/* *INDENT-ON* */ clib_error_t * diff --git a/src/plugins/igmp/igmp_config.c b/src/plugins/igmp/igmp_config.c index 7637adba5bf..288d9c87222 100644 --- a/src/plugins/igmp/igmp_config.c +++ b/src/plugins/igmp/igmp_config.c @@ -28,12 +28,10 @@ igmp_clear_config (igmp_config_t * config) format_vnet_sw_if_index_name, vnet_get_main (), config->sw_if_index); - /* *INDENT-OFF* */ FOR_EACH_GROUP (group, config, ({ igmp_group_clear (&group); })); - /* *INDENT-ON* */ for (ii = 0; ii < IGMP_CONFIG_N_TIMERS; ii++) { @@ -125,12 +123,10 @@ format_igmp_config (u8 * s, va_list * args) format_igmp_timer_id, config->timers[ii]); } - /* *INDENT-OFF* */ FOR_EACH_GROUP (group, config, ({ s = format (s, "\n%U", format_igmp_group, group, 4); })); - /* *INDENT-ON* */ return (s); } diff --git a/src/plugins/igmp/igmp_group.c b/src/plugins/igmp/igmp_group.c index eec4c9b8f81..be3d997cbeb 100644 --- a/src/plugins/igmp/igmp_group.c +++ b/src/plugins/igmp/igmp_group.c @@ -23,12 +23,10 @@ igmp_group_free_all_srcs (igmp_group_t * group) { igmp_src_t *src; - /* *INDENT-OFF* */ FOR_EACH_SRC (src, group, IGMP_FILTER_MODE_INCLUDE, ({ igmp_src_free(src); })); - /* *INDENT-ON* */ hash_free (group->igmp_src_by_key[IGMP_FILTER_MODE_INCLUDE]); hash_free (group->igmp_src_by_key[IGMP_FILTER_MODE_EXCLUDE]); @@ -152,7 +150,6 @@ igmp_group_present_minus_new (igmp_group_t * group, pmn = NULL; - /* *INDENT-OFF* */ if (0 == vec_len(saddrs)) { FOR_EACH_SRC(src, group, mode, @@ -178,7 +175,6 @@ igmp_group_present_minus_new (igmp_group_t * group, vec_add1(pmn, *src->key); })); } - /* *INDENT-ON* */ return (pmn); } @@ -198,7 +194,6 @@ igmp_group_new_minus_present (igmp_group_t * group, npm = NULL; - /* *INDENT-OFF* */ vec_foreach(s1, saddrs) { found = 0; @@ -214,7 +209,6 @@ igmp_group_new_minus_present (igmp_group_t * group, if (!found) vec_add1(npm, *s1); } - /* *INDENT-ON* */ return (npm); } @@ -230,7 +224,6 @@ igmp_group_new_intersect_present (igmp_group_t * group, intersect = NULL; - /* *INDENT-OFF* */ FOR_EACH_SRC(src, group, mode, ({ vec_foreach(s1, saddrs) @@ -242,7 +235,6 @@ igmp_group_new_intersect_present (igmp_group_t * group, } } })); - /* *INDENT-ON* */ return (intersect); } @@ -311,12 +303,10 @@ format_igmp_group (u8 * s, va_list * args) format_igmp_group_timer_type, ii, format_igmp_timer_id, group->timers[ii]); - /* *INDENT-OFF* */ FOR_EACH_SRC (src, group, IGMP_FILTER_MODE_INCLUDE, ({ s = format (s, "\n%U", format_igmp_src, src, indent+4); })); - /* *INDENT-ON* */ return (s); } diff --git a/src/plugins/igmp/igmp_input.c b/src/plugins/igmp/igmp_input.c index 1858a1b4d66..012c22399de 100644 --- a/src/plugins/igmp/igmp_input.c +++ b/src/plugins/igmp/igmp_input.c @@ -219,7 +219,6 @@ igmp_input (vlib_main_t * vm, vlib_node_runtime_t * node, return frame->n_vectors; } -/* *INDENT-OFF* */ VLIB_REGISTER_NODE (igmp_input_node) = { .function = igmp_input, @@ -239,7 +238,6 @@ VLIB_REGISTER_NODE (igmp_input_node) = [IGMP_INPUT_NEXT_PARSE_REPORT] = "igmp-parse-report", } }; -/* *INDENT-ON* */ static uword igmp_parse_query (vlib_main_t * vm, vlib_node_runtime_t * node, @@ -325,7 +323,6 @@ igmp_parse_query (vlib_main_t * vm, vlib_node_runtime_t * node, return frame->n_vectors; } -/* *INDENT-OFF* */ VLIB_REGISTER_NODE (igmp_parse_query_node) = { .function = igmp_parse_query, @@ -343,7 +340,6 @@ VLIB_REGISTER_NODE (igmp_parse_query_node) = [IGMP_PARSE_QUERY_NEXT_DROP] = "error-drop", } }; -/* *INDENT-ON* */ static uword igmp_parse_report (vlib_main_t * vm, vlib_node_runtime_t * node, @@ -436,7 +432,6 @@ igmp_parse_report (vlib_main_t * vm, vlib_node_runtime_t * node, return frame->n_vectors; } -/* *INDENT-OFF* */ VLIB_REGISTER_NODE (igmp_parse_report_node) = { .function = igmp_parse_report, @@ -454,7 +449,6 @@ VLIB_REGISTER_NODE (igmp_parse_report_node) = [IGMP_PARSE_REPORT_NEXT_DROP] = "error-drop", } }; -/* *INDENT-ON* */ static clib_error_t * igmp_input_init (vlib_main_t * vm) @@ -466,12 +460,10 @@ igmp_input_init (vlib_main_t * vm) return (0); } -/* *INDENT-OFF* */ VLIB_INIT_FUNCTION (igmp_input_init) = { .runs_after = VLIB_INITS("igmp_init"), }; -/* *INDENT-ON* */ /* * fd.io coding-style-patch-verification: ON diff --git a/src/plugins/igmp/igmp_pkt.c b/src/plugins/igmp/igmp_pkt.c index c2ce5c71255..7fadeb638a3 100644 --- a/src/plugins/igmp/igmp_pkt.c +++ b/src/plugins/igmp/igmp_pkt.c @@ -329,7 +329,6 @@ igmp_pkt_report_v3_add_report (igmp_pkt_build_report_t * br, if (NULL == igmp_group) return; - /* *INDENT-OFF* */ vec_foreach(s, srcs) { igmp_group = igmp_pkt_report_v3_append_src(br, igmp_group, @@ -337,7 +336,6 @@ igmp_pkt_report_v3_add_report (igmp_pkt_build_report_t * br, if (NULL == igmp_group) return; }; - /* *INDENT-ON* */ igmp_group->n_src_addresses = clib_host_to_net_u16 (br->n_srcs); @@ -378,7 +376,6 @@ igmp_pkt_report_v3_add_group (igmp_pkt_build_report_t * br, igmp_group = igmp_pkt_report_v3_append_group (br, group->key, type); - /* *INDENT-OFF* */ FOR_EACH_SRC (src, group, IGMP_FILTER_MODE_INCLUDE, ({ igmp_group = igmp_pkt_report_v3_append_src(br, igmp_group, @@ -387,7 +384,6 @@ igmp_pkt_report_v3_add_group (igmp_pkt_build_report_t * br, if (NULL == igmp_group) return; })); - /* *INDENT-ON* */ igmp_group->n_src_addresses = clib_host_to_net_u16 (br->n_srcs); IGMP_DBG (" ..add-group: %U srcs:%d", diff --git a/src/plugins/igmp/igmp_proxy.c b/src/plugins/igmp/igmp_proxy.c index 6d930ac791b..bf5e3aafad8 100644 --- a/src/plugins/igmp/igmp_proxy.c +++ b/src/plugins/igmp/igmp_proxy.c @@ -34,7 +34,6 @@ igmp_proxy_device_mfib_path_add_del (igmp_group_t * group, u8 add) mfib_table_get_index_for_sw_if_index (FIB_PROTOCOL_IP4, config->sw_if_index); - /* *INDENT-OFF* */ mfib_prefix_t mpfx_group_addr = { .fp_proto = FIB_PROTOCOL_IP4, .fp_len = 32, @@ -51,7 +50,6 @@ igmp_proxy_device_mfib_path_add_del (igmp_group_t * group, u8 add) .frp_weight = 1, .frp_mitf_flags = MFIB_ITF_FLAG_FORWARD, }; - /* *INDENT-ON* */ if (add) mfib_table_entry_path_update (mfib_index, &mpfx_group_addr, @@ -346,12 +344,10 @@ igmp_proxy_device_merge_group (igmp_proxy_device_t * proxy_device, igmp_proxy_device_mfib_path_add_del (group, 0); } - /* *INDENT-OFF* */ FOR_EACH_SRC (src, group, group->router_filter_mode, ({ igmp_proxy_device_merge_src (&proxy_group, src, srcaddrs, block); })); - /* *INDENT-ON* */ return proxy_group; } @@ -370,7 +366,6 @@ igmp_proxy_device_merge_config (igmp_config_t * config, u8 block) igmp_pkt_build_report_init (&br, proxy_device->upstream_if); - /* *INDENT-OFF* */ FOR_EACH_GROUP(group, config, ({ proxy_group = igmp_proxy_device_merge_group (proxy_device, group, &srcaddrs, block); @@ -383,7 +378,6 @@ igmp_proxy_device_merge_config (igmp_config_t * config, u8 block) } vec_free (srcaddrs); })); - /* *INDENT-ON* */ igmp_pkt_report_v3_send (&br); diff --git a/src/plugins/igmp/igmp_query.c b/src/plugins/igmp/igmp_query.c index c75b01a295b..c5bf8fca992 100644 --- a/src/plugins/igmp/igmp_query.c +++ b/src/plugins/igmp/igmp_query.c @@ -155,14 +155,12 @@ igmp_send_general_report_v3 (u32 obj, void *data) igmp_pkt_build_report_init (&br, config->sw_if_index); - /* *INDENT-OFF* */ FOR_EACH_GROUP (group, config, ({ igmp_pkt_report_v3_add_group (&br, group, igmp_filter_mode_to_report_type(group->router_filter_mode)); })); - /* *INDENT-ON* */ igmp_pkt_report_v3_send (&br); } diff --git a/src/plugins/igmp/igmp_ssm_range.c b/src/plugins/igmp/igmp_ssm_range.c index c74d312b508..a71741cd5f8 100644 --- a/src/plugins/igmp/igmp_ssm_range.c +++ b/src/plugins/igmp/igmp_ssm_range.c @@ -127,13 +127,11 @@ igmp_ssm_range_show (vlib_main_t * vm, return (NULL); } -/* *INDENT-OFF* */ VLIB_CLI_COMMAND (igmp_show_timers_command, static) = { .path = "show igmp ssm-ranges", .short_help = "show igmp ssm-ranges", .function = igmp_ssm_range_show, }; -/* *INDENT-ON* */ static clib_error_t * igmp_ssm_range_init (vlib_main_t * vm) @@ -145,12 +143,10 @@ igmp_ssm_range_init (vlib_main_t * vm) return (0); } -/* *INDENT-OFF* */ VLIB_INIT_FUNCTION (igmp_ssm_range_init) = { .runs_after = VLIB_INITS("igmp_init"), }; -/* *INDENT-ON* */ /* * fd.io coding-style-patch-verification: ON diff --git a/src/plugins/igmp/igmp_timer.c b/src/plugins/igmp/igmp_timer.c index 2d38dd07a99..8abef8e554e 100644 --- a/src/plugins/igmp/igmp_timer.c +++ b/src/plugins/igmp/igmp_timer.c @@ -181,7 +181,6 @@ igmp_timer_process (vlib_main_t * vm, vlib_node_runtime_t * rt, return 0; } -/* *INDENT-OFF* */ VLIB_REGISTER_NODE (igmp_timer_process_node) = { .function = igmp_timer_process, @@ -189,7 +188,6 @@ VLIB_REGISTER_NODE (igmp_timer_process_node) = .name = "igmp-timer-process", .n_next_nodes = 0, }; -/* *INDENT-ON* */ igmp_timer_id_t igmp_timer_schedule (f64 when, u32 obj, igmp_timer_function_t fn, void *data) |