vty_out(vty, "%-13s", adj_state2string(adj->adj_state));
now = time(NULL);
if (adj->last_upd) {
- if (adj->last_upd + adj->hold_time
- < (unsigned long long)now)
+ if (adj->last_upd + adj->hold_time < now)
vty_out(vty, " Expiring");
else
vty_out(vty, " %-9llu",
vty_out(vty, ", State: %s", adj_state2string(adj->adj_state));
now = time(NULL);
if (adj->last_upd) {
- if (adj->last_upd + adj->hold_time
- < (unsigned long long)now)
+ if (adj->last_upd + adj->hold_time < now)
vty_out(vty, " Expiring");
else
vty_out(vty, ", Expires in %s",
int level; /* level (1 or 2) */
enum isis_system_type sys_type; /* neighbourSystemType */
uint16_t hold_time; /* entryRemainingTime */
- uint32_t last_upd;
- uint32_t last_flap; /* last time the adj flapped */
+ time_t last_upd;
+ time_t last_flap; /* last time the adj flapped */
enum isis_threeway_state threeway_state;
uint32_t ext_circuit_id;
int flaps; /* number of adjacency flaps */
*/
if (adj->last_upd != 0) {
val = time(NULL);
- if (val < ((time_t)adj->last_upd + (time_t)adj->hold_time))
+ if (val < (adj->last_upd + adj->hold_time))
return SNMP_INTEGER(adj->last_upd
+ adj->hold_time - val);
}