} LLDPAgentRXState;
/* Section 10.5.2.2 Reception counters */
-struct lldp_agent_statitics {
+struct lldp_agent_statistics {
uint64_t stats_ageouts_total;
uint64_t stats_frames_discarded_total;
uint64_t stats_frames_in_errors_total;
void *userdata;
LLDPAgentRXState rx_state;
- lldp_agent_statitics statitics;
+ lldp_agent_statistics statistics;
};
static unsigned long chassis_id_hash_func(const void *p,
hashmap_size(lldp->neighbour_mib),
prioq_size(lldp->by_expiry));
- lldp->statitics.stats_frames_in_total ++;
+ lldp->statistics.stats_frames_in_total ++;
return 0;
lldp_set_state(lldp, LLDP_AGENT_RX_WAIT_FOR_FRAME);
if (malformed) {
- lldp->statitics.stats_frames_discarded_total ++;
- lldp->statitics.stats_frames_in_errors_total ++;
+ lldp->statistics.stats_frames_discarded_total ++;
+ lldp->statistics.stats_frames_in_errors_total ++;
}
tlv_packet_free(tlv);
lldp_neighbour_port_remove_and_free(p);
- lldp->statitics.stats_ageouts_total ++;
+ lldp->statistics.stats_ageouts_total ++;
}
}
if (time - p->until <= 0)
continue;
- sprintf(buf, "'_TTL=%lu' ", p->until);
+ sprintf(buf, "'_TTL="USEC_FMT"' ", p->until);
k = strappend(s, buf);
if (!k)