diff options
author | Neale Ranns <neale.ranns@cisco.com> | 2017-11-01 03:29:13 -0700 |
---|---|---|
committer | Neale Ranns <neale.ranns@cisco.com> | 2017-11-01 03:29:13 -0700 |
commit | f29e85f9fa888e5544b19db78a752c03337ca14d (patch) | |
tree | 0b5ecbe9d79a76fd441479862cb585d3a64e3fbe /src/vpp-api/vom/types.cpp | |
parent | 53ae29e0608868be4f6a9cced21c39e72e294d0b (diff) |
VOM fixes for 9090 - ships in the night commits
Change-Id: I4b03a4f86a7e0e47874715398ca9f8ff0f5386ee
Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
Diffstat (limited to 'src/vpp-api/vom/types.cpp')
-rw-r--r-- | src/vpp-api/vom/types.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/vpp-api/vom/types.cpp b/src/vpp-api/vom/types.cpp index c362a608275..128d757e539 100644 --- a/src/vpp-api/vom/types.cpp +++ b/src/vpp-api/vom/types.cpp @@ -101,16 +101,6 @@ operator<<(std::ostream& os, const handle_t& h) return (os); } -mac_address_t::mac_address_t(uint64_t address) -{ - uint8_t mac[6]; - - std::memcpy(mac, &address, 6); - for (int i = 0; i < 6; i++) { - bytes[i] = mac[5 - i]; - } -} - mac_address_t::mac_address_t(uint8_t b[6]) { std::copy(b, b + 6, std::begin(bytes)); @@ -133,23 +123,6 @@ mac_address_t::to_bytes(uint8_t* array, uint8_t len) const } } -uint64_t -mac_address_t::to_u64() const -{ - uint64_t mac6 = 0; - uint8_t* b = reinterpret_cast<uint8_t*>(&mac6); - - // whack hack. the vapi will byte swap. - b[2] = bytes[5]; - b[3] = bytes[4]; - b[4] = bytes[3]; - b[5] = bytes[2]; - b[6] = bytes[1]; - b[7] = bytes[0]; - - return (mac6); -} - std::string mac_address_t::to_string() const { |