mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-05 08:31:53 +00:00
Moved sk_open_unix() to common lib
This commit is contained in:
parent
93cbc49289
commit
65086fda3d
@ -88,6 +88,7 @@ sock *sock_new(pool *); /* Allocate new socket */
|
|||||||
#define sk_new(X) sock_new(X) /* Wrapper to avoid name collision with OpenSSL */
|
#define sk_new(X) sock_new(X) /* Wrapper to avoid name collision with OpenSSL */
|
||||||
|
|
||||||
int sk_open(sock *, struct birdloop *); /* Open socket */
|
int sk_open(sock *, struct birdloop *); /* Open socket */
|
||||||
|
int sk_open_unix(struct birdsock *s, struct birdloop *, const char *name); /* Open UNIX socket */
|
||||||
void sk_reloop(sock *, struct birdloop *); /* Move socket to another loop. Both loops must be locked. */
|
void sk_reloop(sock *, struct birdloop *); /* Move socket to another loop. Both loops must be locked. */
|
||||||
static inline void sk_close(sock *s) { rfree(&s->r); } /* Explicitly close socket */
|
static inline void sk_close(sock *s) { rfree(&s->r); } /* Explicitly close socket */
|
||||||
|
|
||||||
|
@ -1379,7 +1379,7 @@ err:
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
sk_open_unix(sock *s, struct birdloop *loop, char *name)
|
sk_open_unix(sock *s, struct birdloop *loop, const char *name)
|
||||||
{
|
{
|
||||||
struct sockaddr_un sa;
|
struct sockaddr_un sa;
|
||||||
int fd;
|
int fd;
|
||||||
|
@ -113,7 +113,6 @@ extern volatile sig_atomic_t async_shutdown_flag;
|
|||||||
void io_init(void);
|
void io_init(void);
|
||||||
void io_loop(void);
|
void io_loop(void);
|
||||||
void io_log_dump(void);
|
void io_log_dump(void);
|
||||||
int sk_open_unix(struct birdsock *s, struct birdloop *, char *name);
|
|
||||||
|
|
||||||
enum rf_mode {
|
enum rf_mode {
|
||||||
RF_APPEND = 1,
|
RF_APPEND = 1,
|
||||||
|
Loading…
Reference in New Issue
Block a user