MCPcopy Create free account
hub / github.com/NetSys/bess / Address

Method Address

core/utils/ether.cc:45–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43using Address = Ethernet::Address;
44
45Address::Address(const std::string &str) {
46 if (!FromString(str)) {
47 memset(bytes, 0, sizeof(bytes));
48 };
49}
50
51bool Address::FromString(const std::string &str) {
52 int ret = Parse(str, "%2hhx:%2hhx:%2hhx:%2hhx:%2hhx:%2hhx", &bytes[0],

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected