Skip to content

Commit

Permalink
Typos reported by Patrick Matthäi
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-odintsov committed Dec 23, 2024
1 parent 28cf165 commit 107f718
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bgp_protocol.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ class IPv4UnicastAnnounce {
// Append segment header
as_path_as_binary_array.append_data_as_object_ptr(&bgp_as_path_segment_element);

logger << log4cpp::Priority::DEBUG << "AS_PATH ASN numner: " << this->as_path_asns.size();
logger << log4cpp::Priority::DEBUG << "AS_PATH ASN number: " << this->as_path_asns.size();

for (auto asn : this->as_path_asns) {
// Append all ASNs in big endian encoding
Expand Down
2 changes: 1 addition & 1 deletion src/gobgp_client/gobgp_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ bool GrpcClient::AnnounceUnicastPrefixLowLevelIPv6(const IPv6UnicastAnnounce& un
// Append segment header
as_path_as_binary_array.append_data_as_object_ptr(&bgp_as_path_segment_element);

logger << log4cpp::Priority::DEBUG << "AS_PATH ASN numner: " << unicast_ipv6_announce.as_path_asns.size();
logger << log4cpp::Priority::DEBUG << "AS_PATH ASN number: " << unicast_ipv6_announce.as_path_asns.size();

for (auto asn : unicast_ipv6_announce.as_path_asns) {
// Append all ASNs in big endian encoding
Expand Down
2 changes: 1 addition & 1 deletion src/netflow_plugin/ipfix_collector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1672,7 +1672,7 @@ bool process_ipfix_packet(const uint8_t* packet,
const ipfix_header_t* ipfix_header = (const ipfix_header_t*)packet;

if (udp_packet_length < sizeof(ipfix_header_t)) {
logger << log4cpp::Priority::ERROR << "Packet is too short to accomodate IPFIX header " << udp_packet_length
logger << log4cpp::Priority::ERROR << "Packet is too short to accommodate IPFIX header " << udp_packet_length
<< " bytes which requires at least " << sizeof(ipfix_header_t) << " bytes";
return false;
}
Expand Down

0 comments on commit 107f718

Please sign in to comment.