Skip to content

Commit

Permalink
hotfix: LineInterface will set ethernet_interface.mcast_group as the …
Browse files Browse the repository at this point in the history
…remote Ethernet address, if it exists. Otherwise default to ethernet_interface.address
  • Loading branch information
thanasipantazides committed Dec 3, 2024
1 parent 0adf8f0 commit f488c48
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/LineInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,13 @@ LineInterface::LineInterface(int argc, char* argv[], boost::asio::io_context& co

// all ethernet_interfaces should have an address
this_addr = ethif.at("address").get<std::string>();

// if mcast_group exists, use that as the address instead
try {
this_addr = ethif.at("mcast_group").get<std::string>();
verbose_print("\t" + this_name + " ethernet address replaced by multicast group");
} catch(std::exception& e) { }

if (this_system_object.type == COMMAND_TYPE_OPTIONS::ETHERNET) {
try {
Ethernet* eth = new Ethernet(
Expand Down

0 comments on commit f488c48

Please sign in to comment.