X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=extras%2Fvom%2Fvom%2Ftap_interface.hpp;h=a29ad358b52e979471f67f8865bea22c99b2fe20;hb=388f418a8e425366190b7fa79dd1d112efdbf149;hp=d9df9a92a8dea1e0c1972a879a8907e8ad101991;hpb=164e5f8c63652028ecb9c3570e1ea8618b163071;p=vpp.git diff --git a/extras/vom/vom/tap_interface.hpp b/extras/vom/vom/tap_interface.hpp index d9df9a92a8d..a29ad358b52 100644 --- a/extras/vom/vom/tap_interface.hpp +++ b/extras/vom/vom/tap_interface.hpp @@ -26,12 +26,12 @@ class tap_interface : public interface { public: tap_interface(const std::string& name, - admin_state_t state, - route::prefix_t prefix); + const admin_state_t& state, + const route::prefix_t& prefix); tap_interface(const std::string& name, - admin_state_t state, - route::prefix_t prefix, + const admin_state_t& state, + const route::prefix_t& prefix, const l2_address_t& l2_address); ~tap_interface(); @@ -75,16 +75,14 @@ private: static event_handler m_evh; /** - * Ip Prefix + * host Ip Prefix */ route::prefix_t m_prefix; - l2_address_t m_l2_address; - /** - * interface is a friend so it can construct with handles + * host mac address */ - friend class interface; + l2_address_t m_l2_address; /** * Return the matching 'instance' of the sub-interface