mirror of
				https://gitlab.labs.nic.cz/labs/bird.git
				synced 2024-05-11 16:54:54 +00:00 
			
		
		
		
	BFD protocol, ready for release.
Supports OSPF and BGP and also statically configured sessions.
This commit is contained in:
		@@ -538,6 +538,8 @@ sk_free(resource *r)
 | 
			
		||||
  if (s->fd >= 0)
 | 
			
		||||
    {
 | 
			
		||||
      close(s->fd);
 | 
			
		||||
 | 
			
		||||
      /* FIXME: we should call sk_stop() for SKF_THREAD sockets */
 | 
			
		||||
      if (s->flags & SKF_THREAD)
 | 
			
		||||
	return;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -36,13 +36,20 @@ static const bird_clock_t rate_limit_time = 5;
 | 
			
		||||
static const int rate_limit_count = 5;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
// XXX add ifdef for threads
 | 
			
		||||
#ifdef USE_PTHREADS
 | 
			
		||||
 | 
			
		||||
#include <pthread.h>
 | 
			
		||||
static pthread_mutex_t log_mutex;
 | 
			
		||||
static inline void log_lock(void) { pthread_mutex_lock(&log_mutex); }
 | 
			
		||||
static inline void log_unlock(void) { pthread_mutex_unlock(&log_mutex); }
 | 
			
		||||
 | 
			
		||||
#else
 | 
			
		||||
 | 
			
		||||
static inline void log_lock(void) {  }
 | 
			
		||||
static inline void log_unlock(void) {  }
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#ifdef HAVE_SYSLOG
 | 
			
		||||
#include <sys/syslog.h>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user