aboutsummaryrefslogtreecommitdiffstats
path: root/package/libs/libnl-tiny/src/include/netlink/addr.h
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2019-10-07 15:01:46 +0200
committerPetr Štetiar <ynezz@true.cz>2019-10-09 09:13:44 +0200
commita92f74ba8db81b8f1dac92ed3d0756b4ba486c39 (patch)
tree6d63889f931a524bac2eefc865caa83ec2c555d0 /package/libs/libnl-tiny/src/include/netlink/addr.h
parent700e7a2eb9c515ffe4f3278857e538ea37cc5e56 (diff)
downloadupstream-a92f74ba8db81b8f1dac92ed3d0756b4ba486c39.tar.gz
upstream-a92f74ba8db81b8f1dac92ed3d0756b4ba486c39.tar.bz2
upstream-a92f74ba8db81b8f1dac92ed3d0756b4ba486c39.zip
libnl-tiny: move source code into separate Git repository
In order to make the source code usable and testable separately out of buildroot. Acked-by: Hauke Mehrtens <hauke@hauke-m.de> Acked-by: Jo-Philipp Wich <jo@mein.io> Acked-by: Hans Dedecker <dedeckeh@gmail.com> Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'package/libs/libnl-tiny/src/include/netlink/addr.h')
-rw-r--r--package/libs/libnl-tiny/src/include/netlink/addr.h69
1 files changed, 0 insertions, 69 deletions
diff --git a/package/libs/libnl-tiny/src/include/netlink/addr.h b/package/libs/libnl-tiny/src/include/netlink/addr.h
deleted file mode 100644
index cc3d201f97..0000000000
--- a/package/libs/libnl-tiny/src/include/netlink/addr.h
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * netlink/addr.h Abstract Address
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation version 2.1
- * of the License.
- *
- * Copyright (c) 2003-2008 Thomas Graf <tgraf@suug.ch>
- */
-
-#ifndef NETLINK_ADDR_H_
-#define NETLINK_ADDR_H_
-
-#include <netlink/netlink.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-struct nl_addr;
-
-/* Creation */
-extern struct nl_addr * nl_addr_alloc(size_t);
-extern struct nl_addr * nl_addr_alloc_attr(struct nlattr *, int);
-extern struct nl_addr * nl_addr_build(int, void *, size_t);
-extern int nl_addr_parse(const char *, int, struct nl_addr **);
-extern struct nl_addr * nl_addr_clone(struct nl_addr *);
-
-/* Destroyage */
-extern void nl_addr_destroy(struct nl_addr *);
-
-/* Usage Management */
-extern struct nl_addr * nl_addr_get(struct nl_addr *);
-extern void nl_addr_put(struct nl_addr *);
-extern int nl_addr_shared(struct nl_addr *);
-
-extern int nl_addr_cmp(struct nl_addr *, struct nl_addr *);
-extern int nl_addr_cmp_prefix(struct nl_addr *, struct nl_addr *);
-extern int nl_addr_iszero(struct nl_addr *);
-extern int nl_addr_valid(char *, int);
-extern int nl_addr_guess_family(struct nl_addr *);
-extern int nl_addr_fill_sockaddr(struct nl_addr *,
- struct sockaddr *, socklen_t *);
-extern int nl_addr_info(struct nl_addr *, struct addrinfo **);
-extern int nl_addr_resolve(struct nl_addr *addr, char *host, size_t hostlen);
-
-/* Access Functions */
-extern void nl_addr_set_family(struct nl_addr *, int);
-extern int nl_addr_get_family(struct nl_addr *);
-extern int nl_addr_set_binary_addr(struct nl_addr *, void *,
- size_t);
-extern void * nl_addr_get_binary_addr(struct nl_addr *);
-extern unsigned int nl_addr_get_len(struct nl_addr *);
-extern void nl_addr_set_prefixlen(struct nl_addr *, int);
-extern unsigned int nl_addr_get_prefixlen(struct nl_addr *);
-
-/* Address Family Translations */
-extern char * nl_af2str(int, char *, size_t);
-extern int nl_str2af(const char *);
-
-/* Translations to Strings */
-extern char * nl_addr2str(struct nl_addr *, char *, size_t);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif