diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2016-03-01 19:27:36 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-09-23 15:31:05 +0200 |
commit | 8429abe0c2f8ee2ef6ed3904c393a4182c4589fc (patch) | |
tree | bbcaaf66c18c0adffd7ad32c5d6da0cd69d937eb /ldpd/control.h | |
parent | MPLS: Fix pointer manipulation when forming netlink nested attributes (diff) | |
download | frr-8429abe0c2f8ee2ef6ed3904c393a4182c4589fc.tar.xz frr-8429abe0c2f8ee2ef6ed3904c393a4182c4589fc.zip |
ldpd: copy original sources from OpenBSD (14/09/2016)
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ldpd/control.h')
-rw-r--r-- | ldpd/control.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/ldpd/control.h b/ldpd/control.h new file mode 100644 index 000000000..fd6e47071 --- /dev/null +++ b/ldpd/control.h @@ -0,0 +1,38 @@ +/* $OpenBSD$ */ + +/* + * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +#ifndef _CONTROL_H_ +#define _CONTROL_H_ + +#include <sys/types.h> +#include <sys/queue.h> + +struct ctl_conn { + TAILQ_ENTRY(ctl_conn) entry; + struct imsgev iev; +}; +TAILQ_HEAD(ctl_conns, ctl_conn); + +extern struct ctl_conns ctl_conns; + +int control_init(void); +int control_listen(void); +void control_cleanup(void); +int control_imsg_relay(struct imsg *); + +#endif /* _CONTROL_H_ */ |