]> git.proxmox.com Git - mirror_frr.git/blobdiff - ldpd/ldpe.h
Merge pull request #5681 from opensourcerouting/manpage-rename
[mirror_frr.git] / ldpd / ldpe.h
index 22b75eb008c2723efc24d08d6ea4052efa568768..ccff1e803d354f890e528b6e72c1245fca668561 100644 (file)
@@ -21,7 +21,7 @@
 #ifndef _LDPE_H_
 #define _LDPE_H_
 
-#include "openbsd-queue.h"
+#include "queue.h"
 #include "openbsd-tree.h"
 #ifdef __OpenBSD__
 #include <net/pfkeyv2.h>
@@ -100,6 +100,7 @@ struct nbr {
        int                      idtimer_cnt;
        uint16_t                 keepalive;
        uint16_t                 max_pdu_len;
+       struct ldp_stats         stats;
 
        struct {
                uint8_t                 established;
@@ -194,9 +195,11 @@ int         tlv_decode_fec_elm(struct nbr *, struct ldp_msg *, char *,
            uint16_t, struct map *);
 
 /* ldpe.c */
-void            ldpe(const char *, const char *, const char *);
+void            ldpe(void);
+void            ldpe_init(struct ldpd_init *);
 int             ldpe_imsg_compose_parent(int, pid_t, void *,
                    uint16_t);
+void            ldpe_imsg_compose_parent_sync(int, pid_t, void *, uint16_t);
 int             ldpe_imsg_compose_lde(int, uint32_t, pid_t, void *,
                    uint16_t);
 int             ldpe_acl_check(char *, int, union ldpd_addr *, uint8_t);
@@ -207,20 +210,22 @@ void               ldpe_stop_init_backoff(int);
 struct ctl_conn;
 void            ldpe_iface_ctl(struct ctl_conn *, unsigned int);
 void            ldpe_adj_ctl(struct ctl_conn *);
+void            ldpe_adj_detail_ctl(struct ctl_conn *);
 void            ldpe_nbr_ctl(struct ctl_conn *);
 void            mapping_list_add(struct mapping_head *, struct map *);
 void            mapping_list_clr(struct mapping_head *);
 
 /* interface.c */
-struct iface   *if_new(struct kif *);
-void            if_exit(struct iface *);
+struct iface   *if_new(const char *);
+void            ldpe_if_init(struct iface *);
+void            ldpe_if_exit(struct iface *);
 struct iface   *if_lookup(struct ldpd_conf *, unsigned short);
 struct iface   *if_lookup_name(struct ldpd_conf *, const char *);
 void            if_update_info(struct iface *, struct kif *);
 struct iface_af *iface_af_get(struct iface *, int);
 void            if_addr_add(struct kaddr *);
 void            if_addr_del(struct kaddr *);
-void            if_update(struct iface *, int);
+void            ldp_if_update(struct iface *, int);
 void            if_update_all(int);
 uint16_t        if_get_hello_holdtime(struct iface_af *);
 uint16_t        if_get_hello_interval(struct iface_af *);
@@ -231,8 +236,8 @@ in_addr_t    if_get_ipv4_addr(struct iface *);
 struct adj     *adj_new(struct in_addr, struct hello_source *,
                    union ldpd_addr *);
 void            adj_del(struct adj *, uint32_t);
-struct adj     *adj_find(struct hello_source *);
-int             adj_get_af(struct adj *adj);
+struct adj     *adj_find(struct in_addr, struct hello_source *);
+int             adj_get_af(const struct adj *adj);
 void            adj_start_itimer(struct adj *);
 void            adj_stop_itimer(struct adj *);
 struct tnbr    *tnbr_new(int, union ldpd_addr *);