Пример #1
0
 // Initialize
 Arp::Arp(net::Inet<Ethernet,IP4>& inet) noexcept:
 requests_rx_    {Statman::get().create(Stat::UINT32, inet.ifname() + ".arp.requests_rx").get_uint32()},
 requests_tx_    {Statman::get().create(Stat::UINT32, inet.ifname() + ".arp.requests_tx").get_uint32()},
 replies_rx_     {Statman::get().create(Stat::UINT32, inet.ifname() + ".arp.replies_rx").get_uint32()},
 replies_tx_     {Statman::get().create(Stat::UINT32, inet.ifname() + ".arp.replies_tx").get_uint32()},
 inet_           {inet},
 mac_            (inet.link_addr()),
 linklayer_out_  {ignore}
 {}
Пример #2
0
// Initialize
Arp::Arp(net::Inet<Ethernet,IP4>& inet): 
  inet_(inet), mac_(inet.link_addr()), ip_(inet.ip_addr()), 
  linklayer_out_(downstream(ignore))
{}