From: Vincent Bernat Date: Fri, 27 May 2016 12:03:09 +0000 (+0200) Subject: lib: allow retrieval of chassis TTL X-Git-Tag: 0.9.4~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=34ee9ebb4c6ed229407d9ddfd259452686b09354;p=thirdparty%2Flldpd.git lib: allow retrieval of chassis TTL --- diff --git a/src/lib/atoms/chassis.c b/src/lib/atoms/chassis.c index 006996fc..6cbf1a4f 100644 --- a/src/lib/atoms/chassis.c +++ b/src/lib/atoms/chassis.c @@ -186,6 +186,8 @@ _lldpctl_atom_get_int_chassis(lldpctl_atom_t *atom, lldpctl_key_t key) return chassis->c_cap_available; case lldpctl_k_chassis_cap_enabled: return chassis->c_cap_enabled; + case lldpctl_k_chassis_ttl: + return chassis->c_ttl; #ifdef ENABLE_LLDPMED case lldpctl_k_chassis_med_type: return chassis->c_med_type; diff --git a/src/lib/lldpctl.h b/src/lib/lldpctl.h index 684c522c..54c15ad5 100644 --- a/src/lib/lldpctl.h +++ b/src/lib/lldpctl.h @@ -725,6 +725,7 @@ typedef enum { lldpctl_k_chassis_cap_available, /**< `(I)` Available capabalities (see `LLDP_CAP_*`) */ lldpctl_k_chassis_cap_enabled, /**< `(I)` Enabled capabilities (see `LLDP_CAP_*`) */ lldpctl_k_chassis_mgmt, /**< `(AL)` List of management addresses */ + lldpctl_k_chassis_ttl, /**< `(I)` The chassis TTL */ lldpctl_k_chassis_med_type = 1900, /**< `(IS)` Chassis MED type. See `LLDP_MED_CLASS_*` */ lldpctl_k_chassis_med_cap, /**< `(I)` Available MED capabilitied. See `LLDP_MED_CAP_*` */