Esempio n. 1
0
/* This function is a wrapper function for calling zclient_start from
   timer or event thread. */
static int
zclient_connect (struct thread *t)
{
  struct zclient *zclient;

  zclient = THREAD_ARG (t);
  zclient->t_connect = NULL;

  if (zclient_debug)
    zlog_debug ("zclient_connect is called");

  return zclient_start (zclient);
}
Esempio n. 2
0
/* This function is a wrapper function for calling zclient_start from
   timer or event thread. */
static int
zclient_connect (struct thread *t)
{
  struct zclient *zclient;

  zclient = THREAD_ARG (t);
  zclient->t_connect = NULL;

  #ifdef ZCLIENT_DEBUG
    zlog_debug ("zclient_connect is called");
  #endif

//  if(zclient->redist_default != ZEBRA_ROUTE_SYNC)
  	return zclient_start (zclient);
//  else
//  	return tipc_zclient_start(zclient);
}