Revision 04632fd7 nest/route.h

View differences:

nest/route.h
56 56
  struct fib_node **hash_table;		/* Node hash table */
57 57
  uint hash_size;			/* Number of hash table entries (a power of two) */
58 58
  uint hash_order;			/* Binary logarithm of hash_size */
59
  uint hash_shift;			/* 16 - hash_log */
59
  uint hash_shift;			/* 32 - hash_order */
60 60
  uint addr_type;			/* Type of address data stored in fib (NET_*) */
61 61
  uint node_size;	/* XXXX */
62 62
  uint node_offset;	/* XXXX */
......
277 277
static inline net *net_find(rtable *tab, net_addr *addr) { return (net *) fib_find(&tab->fib, addr); }
278 278
static inline net *net_get(rtable *tab, net_addr *addr) { return (net *) fib_get(&tab->fib, addr); }
279 279

  
280
static inline net *net_find_ipa(rtable *tab, ip_addr px, uint pxlen)
281
{ net_addr addr; net_fill_ipa(&addr, px, pxlen); return (net *) fib_find(&tab->fib, &addr); }
282
static inline net *net_get_ipa(rtable *tab, ip_addr px, uint pxlen)
283
{ net_addr addr; net_fill_ipa(&addr, px, pxlen); return (net *) fib_get(&tab->fib, &addr); }
284

  
285 280
rte *rte_find(net *net, struct rte_src *src);
286 281
rte *rte_get_temp(struct rta *);
287 282
void rte_update2(struct announce_hook *ah, net *net, rte *new, struct rte_src *src);
......
313 308
}
314 309

  
315 310
struct rt_show_data {
316
  net_addr *prefix;
311
  net_addr *addr;
317 312
  rtable *table;
318 313
  struct filter *filter;
319 314
  int verbose;

Also available in: Unified diff