MCPcopy Create free account
hub / github.com/OpenHD/OpenHD / error_handler

Function error_handler

OpenHD/ohd_interface/src/wifi_command_helper2.cpp:45–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45static int error_handler(struct sockaddr_nl *nla, struct nlmsgerr *err,
46 void *arg) {
47 int *ret = reinterpret_cast<int *>(arg);
48 *ret = err->error;
49 get_logger()->warn("error_handler {}", err->error);
50 return NL_STOP;
51}
52
53bool wifi::commandhelper2::set_wifi_up_down(const std::string &device,
54 bool up) {

Callers

nothing calls this directly

Calls 1

get_loggerFunction · 0.70

Tested by

no test coverage detected