2 * src/nl-util-addr.c Address Helper
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation version 2.1
9 * Copyright (c) 2003-2006 Thomas Graf <tgraf@suug.ch>
14 int main(int argc, char *argv[])
21 fprintf(stderr, "Usage: nl-util-addr <address>\n");
25 a = nl_addr_parse(argv[1], AF_UNSPEC);
27 fprintf(stderr, "Cannot parse address \"%s\"\n", argv[1]);
31 err = nl_addr_resolve(a, host, sizeof(host));
33 fprintf(stderr, "Cannot resolve address \"%s\": %d\n",