6#include <netlink/cli/utils.h>
8int main(
int argc,
char *argv[])
15 fprintf(stderr,
"Usage: nl-util-addr <address>\n");
19 a = nl_cli_addr_parse(argv[1], AF_UNSPEC);
22 nl_cli_fatal(err,
"Unable to resolve address \"%s\": %s",
23 argv[1], nl_geterror(err));
int nl_addr_resolve(const struct nl_addr *addr, char *host, size_t hostlen)
Resolve abstract address object to a name using getnameinfo().
void nl_cli_fatal(int err, const char *fmt,...)
Print error message and quit application.