]>
git.ipfire.org Git - thirdparty/bird.git/blob - sysdep/unix/unix.h
2 * BIRD -- Declarations Common to Unix Port
4 * (c) 1998--2000 Martin Mares <mj@ucw.cz>
6 * Can be freely distributed and used under the terms of the GNU GPL.
16 void async_config(void);
17 void async_dump(void);
18 void async_shutdown(void);
19 void cmd_reconfig(char *name
, int type
);
23 volatile int async_config_flag
;
24 volatile int async_dump_flag
;
25 volatile int async_shutdown_flag
;
28 #define BIRD_PF PF_INET6
29 #define BIRD_AF AF_INET6
30 typedef struct sockaddr_in6 sockaddr
;
32 #define BIRD_PF PF_INET
33 #define BIRD_AF AF_INET
34 typedef struct sockaddr_in sockaddr
;
38 #define SUN_LEN(ptr) ((size_t) (((struct sockaddr_un *) 0)->sun_path) + strlen ((ptr)->sun_path))
45 void fill_in_sockaddr(sockaddr
*sa
, ip_addr a
, unsigned port
);
46 void get_sockaddr(sockaddr
*sa
, ip_addr
*a
, unsigned *port
, int check
);
47 int sk_open_unix(struct birdsock
*s
, char *name
);
48 void *tracked_fopen(struct pool
*, char *name
, char *mode
);
49 void test_old_bird(char *path
);
54 void krt_io_init(void);
58 void log_init(int debug
, int init
);
59 void log_init_debug(char *); /* Initialize debug dump to given file (NULL=stderr, ""=off) */
60 void log_switch(int debug
, struct list
*);
64 unsigned int mask
; /* Classes to log */
65 void *fh
; /* FILE to log to, NULL=syslog */