diff options
author | Torstein Husebø <torstein@huseboe.net> | 2015-01-05 09:55:11 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-01-05 12:34:11 +0100 |
commit | 6b3fd9a14d378a35d95ec4be65065708d092bee2 (patch) | |
tree | e449b79884698037cac32ac6610c5e2196f24458 /src/libsystemd-network | |
parent | 9bc5cd6d74d6efc7769d6a25b21e451dae39fe76 (diff) |
libsystemd-network: fix typo in lldp
Diffstat (limited to 'src/libsystemd-network')
-rw-r--r-- | src/libsystemd-network/lldp-internal.h | 2 | ||||
-rw-r--r-- | src/libsystemd-network/sd-lldp.c | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/libsystemd-network/lldp-internal.h b/src/libsystemd-network/lldp-internal.h index c7235c11ee..8e09ee8f3a 100644 --- a/src/libsystemd-network/lldp-internal.h +++ b/src/libsystemd-network/lldp-internal.h @@ -31,7 +31,7 @@ typedef struct lldp_neighbour_port lldp_neighbour_port; typedef struct lldp_chassis lldp_chassis; typedef struct lldp_chassis_id lldp_chassis_id; -typedef struct lldp_agent_statitics lldp_agent_statitics; +typedef struct lldp_agent_statistics lldp_agent_statistics; struct lldp_neighbour_port { uint8_t type; diff --git a/src/libsystemd-network/sd-lldp.c b/src/libsystemd-network/sd-lldp.c index 86c734b8c2..19ef2ccdbd 100644 --- a/src/libsystemd-network/sd-lldp.c +++ b/src/libsystemd-network/sd-lldp.c @@ -48,7 +48,7 @@ typedef enum LLDPAgentRXState { } 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; @@ -68,7 +68,7 @@ struct sd_lldp { void *userdata; LLDPAgentRXState rx_state; - lldp_agent_statitics statitics; + lldp_agent_statistics statistics; }; static unsigned long chassis_id_hash_func(const void *p, @@ -134,7 +134,7 @@ static int lldp_receive_frame(sd_lldp *lldp, tlv_packet *tlv) { hashmap_size(lldp->neighbour_mib), prioq_size(lldp->by_expiry)); - lldp->statitics.stats_frames_in_total ++; + lldp->statistics.stats_frames_in_total ++; return 0; @@ -339,8 +339,8 @@ int lldp_handle_packet(tlv_packet *tlv, uint16_t length) { 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); @@ -404,7 +404,7 @@ static void lldp_mib_delete_objects(sd_lldp *lldp) { lldp_neighbour_port_remove_and_free(p); - lldp->statitics.stats_ageouts_total ++; + lldp->statistics.stats_ageouts_total ++; } } |