41 static const std::string&
57 shared_ptr<EthernetChannel>
58 createChannel(
const shared_ptr<const ndn::net::NetworkInterface>& localEndpoint,
59 time::nanoseconds idleTimeout);
74 const ethernet::Address& group);
86 std::vector<shared_ptr<const Channel>>
87 doGetChannels()
const final;
93 shared_ptr<EthernetChannel>
94 applyUnicastConfigToNetif(
const shared_ptr<const ndn::net::NetworkInterface>& netif);
101 applyMcastConfigToNetif(
const ndn::net::NetworkInterface& netif);
108 std::map<std::string, shared_ptr<EthernetChannel>> m_channels;
112 bool isEnabled =
false;
113 bool wantListen =
false;
114 time::nanoseconds idleTimeout = 10_min;
116 UnicastConfig m_unicastConfig;
118 struct MulticastConfig
120 bool isEnabled =
false;
121 ethernet::Address group = ethernet::getDefaultMulticastAddress();
122 ndn::nfd::LinkType linkType = ndn::nfd::LINK_TYPE_MULTI_ACCESS;
125 MulticastConfig m_mcastConfig;
128 std::map<std::pair<std::string, ethernet::Address>, shared_ptr<Face>> m_mcastFaces;
130 signal::ScopedConnection m_netifAddConn;
Context for processing a config section in ProtocolFactory.