MCPcopy Create free account
hub / github.com/apache/mesos / index

Function index

src/linux/routing/link/link.cpp:211–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209
210
211Result<int> index(const string& _link)
212{
213 Result<Netlink<struct rtnl_link>> link = internal::get(_link);
214 if (link.isError()) {
215 return Error(link.error());
216 } else if (link.isNone()) {
217 return None();
218 }
219
220 return rtnl_link_get_ifindex(link->get());
221}
222
223
224Result<string> name(int index)

Callers 2

foreachFunction · 0.85
TEST_FFunction · 0.85

Calls 7

NoneClass · 0.85
getFunction · 0.70
errorMethod · 0.65
ErrorFunction · 0.50
isErrorMethod · 0.45
isNoneMethod · 0.45
getMethod · 0.45

Tested by 2

foreachFunction · 0.68
TEST_FFunction · 0.68