예제 #1
0
파일: bgp_table.c 프로젝트: Addision/LVS
void
bgp_table_unlock (struct bgp_table *rt)
{
  assert (rt->lock > 0);
  rt->lock--;

  if (rt->lock == 0)
    bgp_table_free (rt);
}
예제 #2
0
파일: bgp_table.c 프로젝트: NeilW/pmacct
void
bgp_table_finish (struct bgp_table **rt)
{
  bgp_table_free (*rt);
  *rt = NULL;
}