diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-03-24 12:17:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-24 12:17:06 +0100 |
commit | 7bd48975b90419b65326c5663e46bb88c276878f (patch) | |
tree | e874b496b507e9fd7f5fa74b0955c5a2cca98889 /ldpd/ldpd.h | |
parent | Merge pull request #290 from bingen/fix_unused_func (diff) | |
parent | ldpd: provide more detailed information in some show commands (diff) | |
download | frr-7bd48975b90419b65326c5663e46bb88c276878f.tar.xz frr-7bd48975b90419b65326c5663e46bb88c276878f.zip |
Merge pull request #286 from opensourcerouting/ldpd-tshoot
Ldpd tshoot
Diffstat (limited to 'ldpd/ldpd.h')
-rw-r--r-- | ldpd/ldpd.h | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/ldpd/ldpd.h b/ldpd/ldpd.h index c665656aa..a8279ebf6 100644 --- a/ldpd/ldpd.h +++ b/ldpd/ldpd.h @@ -77,6 +77,7 @@ enum imsg_type { IMSG_CTL_RELOAD, IMSG_CTL_SHOW_INTERFACE, IMSG_CTL_SHOW_DISCOVERY, + IMSG_CTL_SHOW_DISCOVERY_DTL, IMSG_CTL_SHOW_DISC_IFACE, IMSG_CTL_SHOW_DISC_TNBR, IMSG_CTL_SHOW_DISC_ADJ, @@ -84,6 +85,10 @@ enum imsg_type { IMSG_CTL_SHOW_NBR_DISC, IMSG_CTL_SHOW_NBR_END, IMSG_CTL_SHOW_LIB, + IMSG_CTL_SHOW_LIB_BEGIN, + IMSG_CTL_SHOW_LIB_SENT, + IMSG_CTL_SHOW_LIB_RCVD, + IMSG_CTL_SHOW_LIB_END, IMSG_CTL_SHOW_L2VPN_PW, IMSG_CTL_SHOW_L2VPN_BINDING, IMSG_CTL_CLEAR_NBR, @@ -347,6 +352,29 @@ DECLARE_QOBJ_TYPE(nbr_params) #define F_NBRP_GTSM 0x02 #define F_NBRP_GTSM_HOPS 0x04 +struct ldp_stats { + uint32_t kalive_sent; + uint32_t kalive_rcvd; + uint32_t addr_sent; + uint32_t addr_rcvd; + uint32_t addrwdraw_sent; + uint32_t addrwdraw_rcvd; + uint32_t notif_sent; + uint32_t notif_rcvd; + uint32_t capability_sent; + uint32_t capability_rcvd; + uint32_t labelmap_sent; + uint32_t labelmap_rcvd; + uint32_t labelreq_sent; + uint32_t labelreq_rcvd; + uint32_t labelwdraw_sent; + uint32_t labelwdraw_rcvd; + uint32_t labelrel_sent; + uint32_t labelrel_rcvd; + uint32_t labelabreq_sent; + uint32_t labelabreq_rcvd; +}; + struct l2vpn_if { RB_ENTRY(l2vpn_if) entry; struct l2vpn *l2vpn; @@ -568,7 +596,9 @@ struct ctl_adj { char ifname[IF_NAMESIZE]; union ldpd_addr src_addr; uint16_t holdtime; + uint16_t holdtime_remaining; union ldpd_addr trans_addr; + int ds_tlv; }; struct ctl_nbr { @@ -578,9 +608,12 @@ struct ctl_nbr { in_port_t lport; union ldpd_addr raddr; in_port_t rport; + enum auth_method auth_method; uint16_t holdtime; time_t uptime; int nbr_state; + struct ldp_stats stats; + int flags; }; struct ctl_rt { @@ -592,7 +625,7 @@ struct ctl_rt { uint32_t remote_label; uint8_t flags; uint8_t in_use; - int first; + int no_downstream; }; struct ctl_pw { |