static u32
fib_hash(struct fib *f, const net_addr *a)
{
+ ASSERT(f->addr_type == a->type);
+
switch (f->addr_type)
{
case NET_IP4: return FIB_HASH(f, a, ip4);
static void
fib_insert(struct fib *f, const net_addr *a, struct fib_node *e)
{
+ ASSERT(f->addr_type == a->type);
+
switch (f->addr_type)
{
case NET_IP4: FIB_INSERT(f, a, e, ip4); return;