aboutsummaryrefslogtreecommitdiffstats
path: root/.clang-tidy
blob: f3f69d2d5bb3c5fd566aa5f5f49eae7f2221872d (plain)
1
2
3
4
5
6
7
8
Checks: "-*,\
misc-*,\
bugprone-*,\
-bugprone-reserved-identifier,\
-performance-*,\
clang-analyzer-*,\
-clang-analyzer-valist.Uninitialized,\
"
background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
/*
 * Copyright (c) 2016 Cisco and/or its affiliates.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at:
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include "fib_entry.h"
#include "fib_entry_src.h"
#include "fib_path_list.h"

/**
 * Source initialisation Function 
 */
static void
fib_entry_src_default_init (fib_entry_src_t *src)
{
}

/**
 * Source deinitialisation Function 
 */
static void
fib_entry_src_default_deinit (fib_entry_src_t *src)
{
}

static void
fib_entry_src_cover_change (fib_entry_src_t *src)
{
}

/**
 * Source deinitialisation Function 
 */
static void
fib_entry_src_default_deinit (fib_entry_src_t *src)
{
}

static void
fib_entry_src_default_path_add (fib_entry_src_t *src,
				fib_protocol_t proto,
				const ip46_address_t *next_hop,
				u32 next_hop_sw_if_index,
				u32 next_hop_fib_index,
				u32 next_hop_weight)
{
}

static void
fib_entry_src_default_path_remove (fib_entry_src_t *src,
				     fib_protocol_t proto,
				     const ip46_address_t *next_hop,
				     u32 next_hop_sw_if_index,
				     u32 next_hop_fib_index,
				     u32 next_hop_weight)
{
}


/*
 * Source activate. 
 * Called when the source is teh new longer best source on the entry
 */
static void
fib_entry_src_default_activate (fib_entry_src_t *src,
				  const fib_entry_t *fib_entry)
{
}

/*
 * Source Deactivate. 
 * Called when the source is no longer best source on the entry
 */
static void
fib_entry_src_default_deactivate (fib_entry_src_t *src,
				    const fib_entry_t *fib_entry)
{
}

static void
fib_entry_src_default_add (fib_entry_src_t *src,
			     fib_entry_flag_t flags,
			     fib_protocol_t proto)
{
}

static void
fib_entry_src_default_remove (fib_entry_src_t *src)
{
}

const static fib_entry_src_vft_t default_src_vft = {
    .fesv_init = fib_entry_src_default_init,
    .fesv_deinit = fib_entry_src_default_deinit,
    .fesv_add = fib_entry_src_default_add,
    .fesv_remove = fib_entry_src_default_remove,
    .fesv_path_add = fib_entry_src_default_path_add,
    .fesv_path_remove = fib_entry_src_default_path_remove,
    .fesv_activate = fib_entry_src_default_activate,
    .fesv_deactivate = fib_entry_src_default_deactivate,
};

void
fib_entry_src_default_register (void)
{
    fib_source_t source;

    FOR_EACH_FIB_SOURCE(source) {
	fib_entry_src_register(source, &default_src_vft);    
    }
}