diff --git a/hardware/wifi/BUILD.gn b/hardware/wifi/BUILD.gn index 733e5124f6a08920e3e40f77380c5bbab44719d9..158682b9831662345d154151abe4b6d0de8b14ee 100644 --- a/hardware/wifi/BUILD.gn +++ b/hardware/wifi/BUILD.gn @@ -14,6 +14,8 @@ import("//build/ohos.gni") AP6XXX_ETC_DIR = "//device/rockchip/hardware/wifi/ap6xxx" +WIFI_BIN_DIR = "//device/rockchip/hardware/wifi/bin" +WIFI_LIB_DIR = "//device/rockchip/hardware/wifi/lib" ohos_prebuilt_etc("clm_bcm43752a2_ag.blob") { source = "$AP6XXX_ETC_DIR/clm_bcm43752a2_ag.blob" @@ -47,11 +49,46 @@ ohos_prebuilt_etc("nvram_ap6275s.txt") { install_enable = true } +ohos_prebuilt_executable("wpa_cli") { + install_enable = true + source = "$WIFI_BIN_DIR/wpa_cli" + module_install_dir = "bin" + install_images = [ "system" ] + part_name = "rockchip_products" +} + +ohos_prebuilt_executable("wpa_supplicant") { + install_enable = true + source = "$WIFI_BIN_DIR/wpa_supplicant" + module_install_dir = "bin" + install_images = [ "system" ] + part_name = "rockchip_products" +} + +ohos_prebuilt_shared_library("libwpa.z.so") { + source = "$WIFI_LIB_DIR/libwpa.z.so" + module_install_dir = "lib" + install_images = [ "system" ] + part_name = "rockchip_products" +} + +ohos_prebuilt_shared_library("libwpa_client.z.so") { + source = "$WIFI_LIB_DIR/libwpa_client.z.so" + module_install_dir = "lib" + install_images = [ "system" ] + part_name = "rockchip_products" +} + group("ap6xxx") { deps = [ ":clm_bcm43752a2_ag.blob", ":fw_bcm43752a2_ag_apsta.bin", ":fw_bcm43752a2_ag.bin", ":nvram_ap6275s.txt", + ":wpa_cli", + ":wpa_supplicant", + ":libwpa_client.z.so", + ":libwpa.z.so", + ] } diff --git a/hardware/wifi/bin/wpa_cli b/hardware/wifi/bin/wpa_cli new file mode 100644 index 0000000000000000000000000000000000000000..0662c380c75752099c11f0e48d3976e7943ded52 Binary files /dev/null and b/hardware/wifi/bin/wpa_cli differ diff --git a/hardware/wifi/bin/wpa_supplicant b/hardware/wifi/bin/wpa_supplicant new file mode 100644 index 0000000000000000000000000000000000000000..bcdf10d51b62ada099691a710b89474d906a4a82 Binary files /dev/null and b/hardware/wifi/bin/wpa_supplicant differ diff --git a/hardware/wifi/lib/libwpa.z.so b/hardware/wifi/lib/libwpa.z.so new file mode 100644 index 0000000000000000000000000000000000000000..7e319208f1641f1805a8d1ee0c4d0f02a6bdd6da Binary files /dev/null and b/hardware/wifi/lib/libwpa.z.so differ diff --git a/hardware/wifi/lib/libwpa_client.z.so b/hardware/wifi/lib/libwpa_client.z.so new file mode 100644 index 0000000000000000000000000000000000000000..a4834bad969155a045e9dea4cab9f443f5473f76 Binary files /dev/null and b/hardware/wifi/lib/libwpa_client.z.so differ diff --git a/hardware/wifi/libnl/include/libnl3/netlink/addr.h b/hardware/wifi/libnl/include/libnl3/netlink/addr.h deleted file mode 100644 index db3e4c200c1415bbc7a98aa9070f19c904743564..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/addr.h +++ /dev/null @@ -1,66 +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-2013 Thomas Graf - */ - -#ifndef NETLINK_ADDR_H_ -#define NETLINK_ADDR_H_ - -#include - -#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 *); - -/* 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 *, char *, size_t); - -/* 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 diff --git a/hardware/wifi/libnl/include/libnl3/netlink/attr.h b/hardware/wifi/libnl/include/libnl3/netlink/attr.h deleted file mode 100644 index 82e4c3835aebaf95ca447d1f4ac589753202b14d..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/attr.h +++ /dev/null @@ -1,285 +0,0 @@ -/* - * netlink/attr.h Netlink Attributes - * - * 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-2013 Thomas Graf - */ - -#ifndef NETLINK_ATTR_H_ -#define NETLINK_ATTR_H_ - -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -struct nl_msg; - -/** - * @name Basic Attribute Data Types - * @{ - */ - -/** - * @ingroup attr - * Basic attribute data types - * - * See section @core_doc{core_attr_parse,Attribute Parsing} for more details. - */ -enum { - NLA_UNSPEC, /**< Unspecified type, binary data chunk */ - NLA_U8, /**< 8 bit integer */ - NLA_U16, /**< 16 bit integer */ - NLA_U32, /**< 32 bit integer */ - NLA_U64, /**< 64 bit integer */ - NLA_STRING, /**< NUL terminated character string */ - NLA_FLAG, /**< Flag */ - NLA_MSECS, /**< Micro seconds (64bit) */ - NLA_NESTED, /**< Nested attributes */ - __NLA_TYPE_MAX, -}; - -#define NLA_TYPE_MAX (__NLA_TYPE_MAX - 1) - -/** @} */ - -/** - * @ingroup attr - * Attribute validation policy. - * - * See section @core_doc{core_attr_parse,Attribute Parsing} for more details. - */ -struct nla_policy { - /** Type of attribute or NLA_UNSPEC */ - uint16_t type; - - /** Minimal length of payload required */ - uint16_t minlen; - - /** Maximal length of payload allowed */ - uint16_t maxlen; -}; - -/* Size calculations */ -extern int nla_attr_size(int payload); -extern int nla_total_size(int payload); -extern int nla_padlen(int payload); - -/* Attribute parsing */ -extern int nla_type(const struct nlattr *); -extern void * nla_data(const struct nlattr *); -extern int nla_len(const struct nlattr *); -extern int nla_ok(const struct nlattr *, int); -extern struct nlattr * nla_next(const struct nlattr *, int *); -extern int nla_parse(struct nlattr **, int, struct nlattr *, - int, struct nla_policy *); -extern int nla_validate(struct nlattr *, int, int, - struct nla_policy *); -extern struct nlattr * nla_find(struct nlattr *, int, int); - -/* Helper Functions */ -extern int nla_memcpy(void *, struct nlattr *, int); -extern size_t nla_strlcpy(char *, const struct nlattr *, size_t); -extern int nla_memcmp(const struct nlattr *, const void *, size_t); -extern int nla_strcmp(const struct nlattr *, const char *); - -/* Unspecific attribute */ -extern struct nlattr * nla_reserve(struct nl_msg *, int, int); -extern int nla_put(struct nl_msg *, int, int, const void *); -extern int nla_put_data(struct nl_msg *, int, struct nl_data *); -extern int nla_put_addr(struct nl_msg *, int, struct nl_addr *); - -/* Integer attribute */ -extern uint8_t nla_get_u8(struct nlattr *); -extern int nla_put_u8(struct nl_msg *, int, uint8_t); -extern uint16_t nla_get_u16(struct nlattr *); -extern int nla_put_u16(struct nl_msg *, int, uint16_t); -extern uint32_t nla_get_u32(struct nlattr *); -extern int nla_put_u32(struct nl_msg *, int, uint32_t); -extern uint64_t nla_get_u64(struct nlattr *); -extern int nla_put_u64(struct nl_msg *, int, uint64_t); - -/* String attribute */ -extern char * nla_get_string(struct nlattr *); -extern char * nla_strdup(struct nlattr *); -extern int nla_put_string(struct nl_msg *, int, const char *); - -/* Flag attribute */ -extern int nla_get_flag(struct nlattr *); -extern int nla_put_flag(struct nl_msg *, int); - -/* Msec attribute */ -extern unsigned long nla_get_msecs(struct nlattr *); -extern int nla_put_msecs(struct nl_msg *, int, unsigned long); - -/* Attribute nesting */ -extern int nla_put_nested(struct nl_msg *, int, struct nl_msg *); -extern struct nlattr * nla_nest_start(struct nl_msg *, int); -extern int nla_nest_end(struct nl_msg *, struct nlattr *); -extern void nla_nest_cancel(struct nl_msg *, struct nlattr *); -extern int nla_parse_nested(struct nlattr **, int, struct nlattr *, - struct nla_policy *); -extern int nla_is_nested(struct nlattr *); - -/** - * @name Attribute Construction (Exception Based) - * @{ - */ - -/** - * @ingroup attr - * Add unspecific attribute to netlink message. - * @arg msg Netlink message. - * @arg attrtype Attribute type. - * @arg attrlen Length of attribute payload. - * @arg data Head of attribute payload. - */ -#define NLA_PUT(msg, attrtype, attrlen, data) \ - do { \ - if (nla_put(msg, attrtype, attrlen, data) < 0) \ - goto nla_put_failure; \ - } while(0) - -/** - * @ingroup attr - * Add atomic type attribute to netlink message. - * @arg msg Netlink message. - * @arg type Atomic type. - * @arg attrtype Attribute type. - * @arg value Head of attribute payload. - */ -#define NLA_PUT_TYPE(msg, type, attrtype, value) \ - do { \ - type __tmp = value; \ - NLA_PUT(msg, attrtype, sizeof(type), &__tmp); \ - } while(0) - -/** - * Add 8 bit integer attribute to netlink message. - * @arg msg Netlink message. - * @arg attrtype Attribute type. - * @arg value Numeric value. - */ -#define NLA_PUT_U8(msg, attrtype, value) \ - NLA_PUT_TYPE(msg, uint8_t, attrtype, value) - -/** - * Add 16 bit integer attribute to netlink message. - * @arg msg Netlink message. - * @arg attrtype Attribute type. - * @arg value Numeric value. - */ -#define NLA_PUT_U16(msg, attrtype, value) \ - NLA_PUT_TYPE(msg, uint16_t, attrtype, value) - -/** - * Add 32 bit integer attribute to netlink message. - * @arg msg Netlink message. - * @arg attrtype Attribute type. - * @arg value Numeric value. - */ -#define NLA_PUT_U32(msg, attrtype, value) \ - NLA_PUT_TYPE(msg, uint32_t, attrtype, value) - -/** - * Add 64 bit integer attribute to netlink message. - * @arg msg Netlink message. - * @arg attrtype Attribute type. - * @arg value Numeric value. - */ -#define NLA_PUT_U64(msg, attrtype, value) \ - NLA_PUT_TYPE(msg, uint64_t, attrtype, value) - -/** - * Add string attribute to netlink message. - * @arg msg Netlink message. - * @arg attrtype Attribute type. - * @arg value NUL terminated character string. - */ -#define NLA_PUT_STRING(msg, attrtype, value) \ - NLA_PUT(msg, attrtype, (int) strlen(value) + 1, value) - -/** - * Add flag attribute to netlink message. - * @arg msg Netlink message. - * @arg attrtype Attribute type. - */ -#define NLA_PUT_FLAG(msg, attrtype) \ - NLA_PUT(msg, attrtype, 0, NULL) - -/** - * Add msecs attribute to netlink message. - * @arg msg Netlink message. - * @arg attrtype Attribute type. - * @arg msecs Numeric value in micro seconds. - */ -#define NLA_PUT_MSECS(msg, attrtype, msecs) \ - NLA_PUT_U64(msg, attrtype, msecs) - -/** - * Add address attribute to netlink message. - * @arg msg Netlink message. - * @arg attrtype Attribute type. - * @arg addr Abstract address object. - */ -#define NLA_PUT_ADDR(msg, attrtype, addr) \ - NLA_PUT(msg, attrtype, nl_addr_get_len(addr), \ - nl_addr_get_binary_addr(addr)) - -/** - * Add abstract data attribute to netlink message. - * @arg msg Netlink message. - * @arg attrtype Attribute type. - * @arg data Abstract data object. - */ -#define NLA_PUT_DATA(msg, attrtype, data) \ - NLA_PUT(msg, attrtype, nl_data_get_size(data), \ - nl_data_get(data)) - -/** @} */ - -/** - * @name Iterators - * @{ - */ - -/** - * @ingroup attr - * Iterate over a stream of attributes - * @arg pos loop counter, set to current attribute - * @arg head head of attribute stream - * @arg len length of attribute stream - * @arg rem initialized to len, holds bytes currently remaining in stream - */ -#define nla_for_each_attr(pos, head, len, rem) \ - for (pos = head, rem = len; \ - nla_ok(pos, rem); \ - pos = nla_next(pos, &(rem))) - -/** - * @ingroup attr - * Iterate over a stream of nested attributes - * @arg pos loop counter, set to current attribute - * @arg nla attribute containing the nested attributes - * @arg rem initialized to len, holds bytes currently remaining in stream - */ -#define nla_for_each_nested(pos, nla, rem) \ - for (pos = nla_data(nla), rem = nla_len(nla); \ - nla_ok(pos, rem); \ - pos = nla_next(pos, &(rem))) - -/** @} */ - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/cache-api.h b/hardware/wifi/libnl/include/libnl3/netlink/cache-api.h deleted file mode 100644 index e43c7ca0177f8094eaac18849d924f74672d64c4..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/cache-api.h +++ /dev/null @@ -1,20 +0,0 @@ -/* - * netlink/cache-api.h Caching API - * - * 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) 2013 Thomas Graf - */ - -#ifndef NETLINK_DUMMY_CACHE_API_H_ -#define NETLINK_DUMMY_CACHE_API_H_ - -#include -#include - -#warning "You are including a deprecated header file, include ." - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/cache.h b/hardware/wifi/libnl/include/libnl3/netlink/cache.h deleted file mode 100644 index e21aa1c6b36cf91ff60526843d38f2802d523a35..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/cache.h +++ /dev/null @@ -1,170 +0,0 @@ -/* - * netlink/cache.h Caching Module - * - * 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-2012 Thomas Graf - */ - -#ifndef NETLINK_CACHE_H_ -#define NETLINK_CACHE_H_ - -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -enum { - NL_ACT_UNSPEC, - NL_ACT_NEW, - NL_ACT_DEL, - NL_ACT_GET, - NL_ACT_SET, - NL_ACT_CHANGE, - __NL_ACT_MAX, -}; - -#define NL_ACT_MAX (__NL_ACT_MAX - 1) - -struct nl_cache; -typedef void (*change_func_t)(struct nl_cache *, struct nl_object *, int, void *); - -/** - * @ingroup cache - * Explicitely iterate over all address families when updating the cache - */ -#define NL_CACHE_AF_ITER 0x0001 - -/* Access Functions */ -extern int nl_cache_nitems(struct nl_cache *); -extern int nl_cache_nitems_filter(struct nl_cache *, - struct nl_object *); -extern struct nl_cache_ops * nl_cache_get_ops(struct nl_cache *); -extern struct nl_object * nl_cache_get_first(struct nl_cache *); -extern struct nl_object * nl_cache_get_last(struct nl_cache *); -extern struct nl_object * nl_cache_get_next(struct nl_object *); -extern struct nl_object * nl_cache_get_prev(struct nl_object *); - -extern struct nl_cache * nl_cache_alloc(struct nl_cache_ops *); -extern int nl_cache_alloc_and_fill(struct nl_cache_ops *, - struct nl_sock *, - struct nl_cache **); -extern int nl_cache_alloc_name(const char *, - struct nl_cache **); -extern struct nl_cache * nl_cache_subset(struct nl_cache *, - struct nl_object *); -extern struct nl_cache * nl_cache_clone(struct nl_cache *); -extern void nl_cache_clear(struct nl_cache *); -extern void nl_cache_get(struct nl_cache *); -extern void nl_cache_free(struct nl_cache *); -extern void nl_cache_put(struct nl_cache *cache); - -/* Cache modification */ -extern int nl_cache_add(struct nl_cache *, - struct nl_object *); -extern int nl_cache_parse_and_add(struct nl_cache *, - struct nl_msg *); -extern int nl_cache_move(struct nl_cache *, - struct nl_object *); -extern void nl_cache_remove(struct nl_object *); -extern int nl_cache_refill(struct nl_sock *, - struct nl_cache *); -extern int nl_cache_pickup(struct nl_sock *, - struct nl_cache *); -extern int nl_cache_resync(struct nl_sock *, - struct nl_cache *, - change_func_t, - void *); -extern int nl_cache_include(struct nl_cache *, - struct nl_object *, - change_func_t, - void *); -extern void nl_cache_set_arg1(struct nl_cache *, int); -extern void nl_cache_set_arg2(struct nl_cache *, int); -extern void nl_cache_set_flags(struct nl_cache *, unsigned int); - -/* General */ -extern int nl_cache_is_empty(struct nl_cache *); -extern struct nl_object * nl_cache_search(struct nl_cache *, - struct nl_object *); -extern struct nl_object *nl_cache_find(struct nl_cache *, - struct nl_object *); -extern void nl_cache_mark_all(struct nl_cache *); - -/* Dumping */ -extern void nl_cache_dump(struct nl_cache *, - struct nl_dump_params *); -extern void nl_cache_dump_filter(struct nl_cache *, - struct nl_dump_params *, - struct nl_object *); - -/* Iterators */ -extern void nl_cache_foreach(struct nl_cache *, - void (*cb)(struct nl_object *, - void *), - void *arg); -extern void nl_cache_foreach_filter(struct nl_cache *, - struct nl_object *, - void (*cb)(struct - nl_object *, - void *), - void *arg); - -/* --- cache management --- */ - -/* Cache type management */ -extern struct nl_cache_ops * nl_cache_ops_lookup(const char *); -extern struct nl_cache_ops * nl_cache_ops_lookup_safe(const char *); -extern struct nl_cache_ops * nl_cache_ops_associate(int, int); -extern struct nl_cache_ops * nl_cache_ops_associate_safe(int, int); -extern struct nl_msgtype * nl_msgtype_lookup(struct nl_cache_ops *, int); -extern void nl_cache_ops_foreach(void (*cb)(struct nl_cache_ops *, void *), void *); -extern int nl_cache_mngt_register(struct nl_cache_ops *); -extern int nl_cache_mngt_unregister(struct nl_cache_ops *); - -/* Global cache provisioning/requiring */ -extern void nl_cache_mngt_provide(struct nl_cache *); -extern void nl_cache_mngt_unprovide(struct nl_cache *); -extern struct nl_cache * nl_cache_mngt_require(const char *); -extern struct nl_cache * nl_cache_mngt_require_safe(const char *); -extern struct nl_cache * __nl_cache_mngt_require(const char *); - -struct nl_cache_mngr; - -#define NL_AUTO_PROVIDE 1 -#define NL_ALLOCATED_SOCK 2 /* For internal use only, do not use */ - -extern int nl_cache_mngr_alloc(struct nl_sock *, - int, int, - struct nl_cache_mngr **); -extern int nl_cache_mngr_add(struct nl_cache_mngr *, - const char *, - change_func_t, - void *, - struct nl_cache **); -extern int nl_cache_mngr_add_cache(struct nl_cache_mngr *mngr, - struct nl_cache *cache, - change_func_t cb, void *data); -extern int nl_cache_mngr_get_fd(struct nl_cache_mngr *); -extern int nl_cache_mngr_poll(struct nl_cache_mngr *, - int); -extern int nl_cache_mngr_data_ready(struct nl_cache_mngr *); -extern void nl_cache_mngr_info(struct nl_cache_mngr *, - struct nl_dump_params *); -extern void nl_cache_mngr_free(struct nl_cache_mngr *); - -extern void nl_cache_ops_get(struct nl_cache_ops *); -extern void nl_cache_ops_put(struct nl_cache_ops *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/cli/addr.h b/hardware/wifi/libnl/include/libnl3/netlink/cli/addr.h deleted file mode 100644 index d0fd0551fb69af05283c968d27fa10d905690731..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/cli/addr.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * netlink/cli/addr.h CLI Address Helpers - * - * 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) 2008-2009 Thomas Graf - */ - -#ifndef __NETLINK_CLI_ADDR_H_ -#define __NETLINK_CLI_ADDR_H_ - -#include - -#define nl_cli_addr_alloc_cache(sk) \ - nl_cli_alloc_cache((sk), "address", rtnl_addr_alloc_cache) - -extern struct rtnl_addr *nl_cli_addr_alloc(void); - -extern void nl_cli_addr_parse_family(struct rtnl_addr *, char *); -extern void nl_cli_addr_parse_local(struct rtnl_addr *, char *); -extern void nl_cli_addr_parse_dev(struct rtnl_addr *, struct nl_cache *,char *); -extern void nl_cli_addr_parse_label(struct rtnl_addr *, char *); -extern void nl_cli_addr_parse_peer(struct rtnl_addr *, char *); -extern void nl_cli_addr_parse_scope(struct rtnl_addr *, char *); -extern void nl_cli_addr_parse_broadcast(struct rtnl_addr *, char *); -extern void nl_cli_addr_parse_preferred(struct rtnl_addr *, char *); -extern void nl_cli_addr_parse_valid(struct rtnl_addr *, char *); - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/cli/class.h b/hardware/wifi/libnl/include/libnl3/netlink/cli/class.h deleted file mode 100644 index 5001e4284686ce84aaa4a9789ded7969b52c7046..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/cli/class.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * netlink/cli/class.h CLI Class Helpers - * - * 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) 2010 Thomas Graf - */ - -#ifndef __NETLINK_CLI_CLASS_H_ -#define __NETLINK_CLI_CLASS_H_ - -#include -#include - -extern struct rtnl_class *nl_cli_class_alloc(void); -extern struct nl_cache *nl_cli_class_alloc_cache(struct nl_sock *, int); - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/cli/cls.h b/hardware/wifi/libnl/include/libnl3/netlink/cli/cls.h deleted file mode 100644 index a2707b8ed86f814247723d059e973c3ca053ddf4..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/cli/cls.h +++ /dev/null @@ -1,24 +0,0 @@ -/* - * netlink/cli/cls.h CLI Classifier Helpers - * - * 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) 2010 Thomas Graf - */ - -#ifndef __NETLINK_CLI_CLS_H_ -#define __NETLINK_CLI_CLS_H_ - -#include -#include - -extern struct rtnl_cls * nl_cli_cls_alloc(void); -extern struct nl_cache * nl_cli_cls_alloc_cache(struct nl_sock *, - int, uint32_t); -extern void nl_cli_cls_parse_proto(struct rtnl_cls *, char *); -extern struct rtnl_ematch_tree *nl_cli_cls_parse_ematch(struct rtnl_cls *, char *); - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/cli/ct.h b/hardware/wifi/libnl/include/libnl3/netlink/cli/ct.h deleted file mode 100644 index ebe7c9dc879c640db55fefae7b0956be5cbd931d..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/cli/ct.h +++ /dev/null @@ -1,35 +0,0 @@ -/* - * netlink/cli/ct.h CLI Conntrack Helper - * - * 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) 2008-2009 Thomas Graf - */ - -#ifndef __NETLINK_CLI_CT_H_ -#define __NETLINK_CLI_CT_H_ - -#include -#include - -extern struct nfnl_ct *nl_cli_ct_alloc(void); -extern struct nl_cache *nl_cli_ct_alloc_cache(struct nl_sock *); - -extern void nl_cli_ct_parse_family(struct nfnl_ct *, char *); -extern void nl_cli_ct_parse_protocol(struct nfnl_ct *, char *); -extern void nl_cli_ct_parse_mark(struct nfnl_ct *, char *); -extern void nl_cli_ct_parse_timeout(struct nfnl_ct *, char *); -extern void nl_cli_ct_parse_id(struct nfnl_ct *, char *); -extern void nl_cli_ct_parse_use(struct nfnl_ct *, char *); -extern void nl_cli_ct_parse_src(struct nfnl_ct *, int, char *); -extern void nl_cli_ct_parse_dst(struct nfnl_ct *, int, char *); -extern void nl_cli_ct_parse_src_port(struct nfnl_ct *, int, char *); -extern void nl_cli_ct_parse_dst_port(struct nfnl_ct *, int, char *); -extern void nl_cli_ct_parse_tcp_state(struct nfnl_ct *, char *); -extern void nl_cli_ct_parse_status(struct nfnl_ct *, char *); -extern void nl_cli_ct_parse_zone(struct nfnl_ct *, char *); - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/cli/exp.h b/hardware/wifi/libnl/include/libnl3/netlink/cli/exp.h deleted file mode 100644 index b2418f8d31a7d94e1a23a45cdcc3638af43c54ce..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/cli/exp.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * netlink/cli/exp.h CLI Expectation Helper - * - * 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) 2012 Rich Fought - * Copyright (c) 2008-2009 Thomas Graf - */ - -#ifndef __NETLINK_CLI_EXP_H_ -#define __NETLINK_CLI_EXP_H_ - -#include -#include - -extern struct nfnl_exp *nl_cli_exp_alloc(void); -extern struct nl_cache *nl_cli_exp_alloc_cache(struct nl_sock *); - -extern void nl_cli_exp_parse_family(struct nfnl_exp *, char *); -extern void nl_cli_exp_parse_timeout(struct nfnl_exp *, char *); -extern void nl_cli_exp_parse_id(struct nfnl_exp *, char *); -extern void nl_cli_exp_parse_helper_name(struct nfnl_exp *, char *); -extern void nl_cli_exp_parse_zone(struct nfnl_exp *, char *); -extern void nl_cli_exp_parse_flags(struct nfnl_exp *, char *); -extern void nl_cli_exp_parse_class(struct nfnl_exp *, char *); -extern void nl_cli_exp_parse_nat_dir(struct nfnl_exp *, char *); -extern void nl_cli_exp_parse_fn(struct nfnl_exp *, char *); - -extern void nl_cli_exp_parse_src(struct nfnl_exp *, int, char *); -extern void nl_cli_exp_parse_dst(struct nfnl_exp *, int, char *); -extern void nl_cli_exp_parse_l4protonum(struct nfnl_exp *, int, char *); -extern void nl_cli_exp_parse_src_port(struct nfnl_exp *, int, char *); -extern void nl_cli_exp_parse_dst_port(struct nfnl_exp *, int, char *); -extern void nl_cli_exp_parse_icmp_id(struct nfnl_exp *, int, char *); -extern void nl_cli_exp_parse_icmp_type(struct nfnl_exp *, int, char *); -extern void nl_cli_exp_parse_icmp_code(struct nfnl_exp *, int, char *); - - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/cli/link.h b/hardware/wifi/libnl/include/libnl3/netlink/cli/link.h deleted file mode 100644 index 3f37948d9713ca9a2339320ba1b9330c3071c549..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/cli/link.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * netlink/cli/link.h CLI Link Helpers - * - * 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) 2008-2010 Thomas Graf - */ - -#ifndef __NETLINK_CLI_LINK_H_ -#define __NETLINK_CLI_LINK_H_ - -#include -#include - -extern struct rtnl_link *nl_cli_link_alloc(void); -extern struct nl_cache *nl_cli_link_alloc_cache_family(struct nl_sock *, int); -extern struct nl_cache *nl_cli_link_alloc_cache(struct nl_sock *); - -extern void nl_cli_link_parse_family(struct rtnl_link *, char *); -extern void nl_cli_link_parse_name(struct rtnl_link *, char *); -extern void nl_cli_link_parse_mtu(struct rtnl_link *, char *); -extern void nl_cli_link_parse_ifindex(struct rtnl_link *, char *); -extern void nl_cli_link_parse_txqlen(struct rtnl_link *, char *); -extern void nl_cli_link_parse_weight(struct rtnl_link *, char *); -extern void nl_cli_link_parse_ifalias(struct rtnl_link *, char *); - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/cli/neigh.h b/hardware/wifi/libnl/include/libnl3/netlink/cli/neigh.h deleted file mode 100644 index 5440012884c8eedba5594e8437d15f31774a145d..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/cli/neigh.h +++ /dev/null @@ -1,27 +0,0 @@ -/* - * netlink/cli/neighbour.h CLI Neighbour Helpers - * - * 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) 2008-2009 Thomas Graf - */ - -#ifndef __NETLINK_CLI_NEIGH_H_ -#define __NETLINK_CLI_NEIGH_H_ - -#include - -#define nl_cli_neigh_alloc_cache(sk) \ - nl_cli_alloc_cache((sk), "neighbour", rtnl_neigh_alloc_cache) - -extern struct rtnl_neigh *nl_cli_neigh_alloc(void); -extern void nl_cli_neigh_parse_dst(struct rtnl_neigh *, char *); -extern void nl_cli_neigh_parse_lladdr(struct rtnl_neigh *, char *); -extern void nl_cli_neigh_parse_dev(struct rtnl_neigh *, struct nl_cache *, char *); -extern void nl_cli_neigh_parse_family(struct rtnl_neigh *, char *); -extern void nl_cli_neigh_parse_state(struct rtnl_neigh *, char *); - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/cli/qdisc.h b/hardware/wifi/libnl/include/libnl3/netlink/cli/qdisc.h deleted file mode 100644 index b102da4f875de12e31ccf0130b1f4d5becdaeaa5..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/cli/qdisc.h +++ /dev/null @@ -1,23 +0,0 @@ -/* - * netlink/cli/qdisc.h CLI QDisc Helpers - * - * 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) 2008-2011 Thomas Graf - */ - -#ifndef __NETLINK_CLI_QDISC_H_ -#define __NETLINK_CLI_QDISC_H_ - -#include - -#define nl_cli_qdisc_alloc_cache(sk) \ - nl_cli_alloc_cache((sk), "queueing disciplines", \ - rtnl_qdisc_alloc_cache) - -extern struct rtnl_qdisc *nl_cli_qdisc_alloc(void); - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/cli/route.h b/hardware/wifi/libnl/include/libnl3/netlink/cli/route.h deleted file mode 100644 index 089c6582fd2481a554a05bd0bc9f21c02086f768..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/cli/route.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - * netlink/cli//route.h CLI Route Helpers - * - * 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) 2008-2009 Thomas Graf - */ - -#ifndef __NETLINK_CLI_ROUTE_H_ -#define __NETLINK_CLI_ROUTE_H_ - -#include - -extern struct rtnl_route *nl_cli_route_alloc(void); - -extern struct nl_cache *nl_cli_route_alloc_cache(struct nl_sock *, int); - -extern void nl_cli_route_parse_family(struct rtnl_route *, char *); -extern void nl_cli_route_parse_dst(struct rtnl_route *, char *); -extern void nl_cli_route_parse_src(struct rtnl_route *, char *); -extern void nl_cli_route_parse_pref_src(struct rtnl_route *, char *); -extern void nl_cli_route_parse_metric(struct rtnl_route *, char *); -extern void nl_cli_route_parse_nexthop(struct rtnl_route *, char *, struct nl_cache *); -extern void nl_cli_route_parse_table(struct rtnl_route *, char *); -extern void nl_cli_route_parse_prio(struct rtnl_route *, char *); -extern void nl_cli_route_parse_scope(struct rtnl_route *, char *); -extern void nl_cli_route_parse_protocol(struct rtnl_route *, char *); -extern void nl_cli_route_parse_type(struct rtnl_route *, char *); -extern void nl_cli_route_parse_iif(struct rtnl_route *, char *, struct nl_cache *); - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/cli/rule.h b/hardware/wifi/libnl/include/libnl3/netlink/cli/rule.h deleted file mode 100644 index 61cd63e3414a5c3fc319236ca905a3f574e1978d..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/cli/rule.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * netlink/cli/rule.h CLI Routing Rule Helpers - * - * 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) 2008-2009 Thomas Graf - */ - -#ifndef __NETLINK_CLI_RULE_H_ -#define __NETLINK_CLI_RULE_H_ - -#include - -extern struct rtnl_rule *nl_cli_rule_alloc(void); -extern struct nl_cache *nl_cli_rule_alloc_cache(struct nl_sock *); -extern void nl_cli_rule_parse_family(struct rtnl_rule *, char *); - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/cli/tc.h b/hardware/wifi/libnl/include/libnl3/netlink/cli/tc.h deleted file mode 100644 index 77042c71d91aa92579f0a66b31e68408f30a4bf3..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/cli/tc.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * netlink/cli/tc.h CLI Traffic Control Helpers - * - * 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) 2010-2011 Thomas Graf - */ - -#ifndef __NETLINK_CLI_TC_H_ -#define __NETLINK_CLI_TC_H_ - -#include - -struct rtnl_tc_ops; - -extern void nl_cli_tc_parse_dev(struct rtnl_tc *, struct nl_cache *, char *); -extern void nl_cli_tc_parse_parent(struct rtnl_tc *, char *); -extern void nl_cli_tc_parse_handle(struct rtnl_tc *, char *, int); -extern void nl_cli_tc_parse_mtu(struct rtnl_tc *, char *); -extern void nl_cli_tc_parse_mpu(struct rtnl_tc *, char *); -extern void nl_cli_tc_parse_overhead(struct rtnl_tc *, char *); -extern void nl_cli_tc_parse_linktype(struct rtnl_tc *, char *); -extern void nl_cli_tc_parse_kind(struct rtnl_tc *, char *); - -struct nl_cli_tc_module -{ - const char * tm_name; - enum rtnl_tc_type tm_type; - struct rtnl_tc_ops * tm_ops; - void (*tm_parse_argv)(struct rtnl_tc *, int, char **); - struct nl_list_head tm_list; -}; - -extern struct nl_cli_tc_module *nl_cli_tc_lookup(struct rtnl_tc_ops *); -extern void nl_cli_tc_register(struct nl_cli_tc_module *); -extern void nl_cli_tc_unregister(struct nl_cli_tc_module *); - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/cli/utils.h b/hardware/wifi/libnl/include/libnl3/netlink/cli/utils.h deleted file mode 100644 index da41c10ef8eab092244bc709c84c28338c7dc229..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/cli/utils.h +++ /dev/null @@ -1,82 +0,0 @@ -/* - * src/utils.h Utilities - * - * 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-2009 Thomas Graf - */ - -#ifndef __NETLINK_CLI_UTILS_H_ -#define __NETLINK_CLI_UTILS_H_ - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -#ifndef __init -#define __init __attribute__((constructor)) -#endif - -#ifndef __exit -#define __exit __attribute__((destructor)) -#endif - -extern uint32_t nl_cli_parse_u32(const char *); -extern void nl_cli_print_version(void); -extern void nl_cli_fatal(int, const char *, ...); -extern struct nl_addr * nl_cli_addr_parse(const char *, int); -extern int nl_cli_connect(struct nl_sock *, int); -extern struct nl_sock * nl_cli_alloc_socket(void); -extern int nl_cli_parse_dumptype(const char *); -extern int nl_cli_confirm(struct nl_object *, - struct nl_dump_params *, int); - -extern struct nl_cache *nl_cli_alloc_cache(struct nl_sock *, const char *, - int (*ac)(struct nl_sock *, struct nl_cache **)); - -extern void nl_cli_load_module(const char *, const char *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/data.h b/hardware/wifi/libnl/include/libnl3/netlink/data.h deleted file mode 100644 index 071159ee5b30fdcbfc9adfaa98745244d4cd87d6..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/data.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * netlink/data.h Abstract Data - * - * 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 - */ - -#ifndef NETLINK_DATA_H_ -#define NETLINK_DATA_H_ - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -struct nl_data; - -/* General */ -extern struct nl_data * nl_data_alloc(void *, size_t); -extern struct nl_data * nl_data_alloc_attr(struct nlattr *); -extern struct nl_data * nl_data_clone(struct nl_data *); -extern int nl_data_append(struct nl_data *, void *, size_t); -extern void nl_data_free(struct nl_data *); - -/* Access Functions */ -extern void * nl_data_get(struct nl_data *); -extern size_t nl_data_get_size(struct nl_data *); - -/* Misc */ -extern int nl_data_cmp(struct nl_data *, struct nl_data *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/errno.h b/hardware/wifi/libnl/include/libnl3/netlink/errno.h deleted file mode 100644 index f8b5130c22e1142b9cceab49440c96db319c01ee..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/errno.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * netlink/errno.h Error Numbers - * - * 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) 2008 Thomas Graf - */ - -#ifndef NETLINK_ERRNO_H_ -#define NETLINK_ERRNO_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -#define NLE_SUCCESS 0 -#define NLE_FAILURE 1 -#define NLE_INTR 2 -#define NLE_BAD_SOCK 3 -#define NLE_AGAIN 4 -#define NLE_NOMEM 5 -#define NLE_EXIST 6 -#define NLE_INVAL 7 -#define NLE_RANGE 8 -#define NLE_MSGSIZE 9 -#define NLE_OPNOTSUPP 10 -#define NLE_AF_NOSUPPORT 11 -#define NLE_OBJ_NOTFOUND 12 -#define NLE_NOATTR 13 -#define NLE_MISSING_ATTR 14 -#define NLE_AF_MISMATCH 15 -#define NLE_SEQ_MISMATCH 16 -#define NLE_MSG_OVERFLOW 17 -#define NLE_MSG_TRUNC 18 -#define NLE_NOADDR 19 -#define NLE_SRCRT_NOSUPPORT 20 -#define NLE_MSG_TOOSHORT 21 -#define NLE_MSGTYPE_NOSUPPORT 22 -#define NLE_OBJ_MISMATCH 23 -#define NLE_NOCACHE 24 -#define NLE_BUSY 25 -#define NLE_PROTO_MISMATCH 26 -#define NLE_NOACCESS 27 -#define NLE_PERM 28 -#define NLE_PKTLOC_FILE 29 -#define NLE_PARSE_ERR 30 -#define NLE_NODEV 31 -#define NLE_IMMUTABLE 32 -#define NLE_DUMP_INTR 33 - -#define NLE_MAX NLE_DUMP_INTR - -extern const char * nl_geterror(int); -extern void nl_perror(int, const char *); -extern int nl_syserr2nlerr(int); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/fib_lookup/lookup.h b/hardware/wifi/libnl/include/libnl3/netlink/fib_lookup/lookup.h deleted file mode 100644 index 8bf27b8d95495784fac2863aa4ccf29d5ef1a611..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/fib_lookup/lookup.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * netlink/fib_lookup/fib_lookup.h FIB Lookup - * - * 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 - */ - -#ifndef NETLINK_FIB_LOOKUP_H_ -#define NETLINK_FIB_LOOKUP_H_ - -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -struct flnl_result; - -extern struct flnl_result * flnl_result_alloc(void); -extern void flnl_result_put(struct flnl_result *); - -extern struct nl_cache * flnl_result_alloc_cache(void); - -extern int flnl_lookup_build_request(struct flnl_request *, - int, - struct nl_msg **); -extern int flnl_lookup(struct nl_sock *, - struct flnl_request *, - struct nl_cache *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/fib_lookup/request.h b/hardware/wifi/libnl/include/libnl3/netlink/fib_lookup/request.h deleted file mode 100644 index 60e8820fae93fe50cd115732c0f0b129ffeaf774..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/fib_lookup/request.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * netlink/fib_lookup/request.h FIB Lookup Request - * - * 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-2006 Thomas Graf - */ - -#ifndef NETLINK_FIB_LOOKUP_REQUEST_H_ -#define NETLINK_FIB_LOOKUP_REQUEST_H_ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -struct flnl_request; - -#define REQUEST_CAST(ptr) ((struct flnl_request *) (ptr)) - -extern struct flnl_request * flnl_request_alloc(void); - -extern void flnl_request_set_fwmark(struct flnl_request *, - uint64_t); -extern uint64_t flnl_request_get_fwmark(struct flnl_request *); -extern void flnl_request_set_tos(struct flnl_request *, - int); -extern int flnl_request_get_tos(struct flnl_request *); -extern void flnl_request_set_scope(struct flnl_request *, - int); -extern int flnl_request_get_scope(struct flnl_request *); -extern void flnl_request_set_table(struct flnl_request *, - int); -extern int flnl_request_get_table(struct flnl_request *); -extern int flnl_request_set_addr(struct flnl_request *, - struct nl_addr *); -extern struct nl_addr * flnl_request_get_addr(struct flnl_request *); - -extern int flnl_request_cmp(struct flnl_request *, - struct flnl_request *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/genl/ctrl.h b/hardware/wifi/libnl/include/libnl3/netlink/genl/ctrl.h deleted file mode 100644 index 017b8fdfc5b0011a60fcb9b891ccd5c7d1ebeb69..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/genl/ctrl.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * netlink/genl/ctrl.h Generic Netlink Controller - * - * 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-2012 Thomas Graf - */ - -#ifndef NETLINK_GENL_CTRL_H_ -#define NETLINK_GENL_CTRL_H_ - -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -struct genl_family; - -extern int genl_ctrl_alloc_cache(struct nl_sock *, - struct nl_cache **); -extern struct genl_family * genl_ctrl_search(struct nl_cache *, int); -extern struct genl_family * genl_ctrl_search_by_name(struct nl_cache *, - const char *); -extern int genl_ctrl_resolve(struct nl_sock *, - const char *); -extern int genl_ctrl_resolve_grp(struct nl_sock *sk, - const char *family, - const char *grp); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/genl/family.h b/hardware/wifi/libnl/include/libnl3/netlink/genl/family.h deleted file mode 100644 index 5432b5945681b449fe096cd7586dcfb7dc0e3d5c..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/genl/family.h +++ /dev/null @@ -1,47 +0,0 @@ -/* - * netlink/genl/family.h Generic Netlink Family - * - * 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-2012 Thomas Graf - */ - -#ifndef NETLINK_GENL_FAMILY_H_ -#define NETLINK_GENL_FAMILY_H_ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -struct genl_family; - -extern struct genl_family * genl_family_alloc(void); -extern void genl_family_put(struct genl_family *); - -extern unsigned int genl_family_get_id(struct genl_family *); -extern void genl_family_set_id(struct genl_family *, unsigned int); -extern char * genl_family_get_name(struct genl_family *); -extern void genl_family_set_name(struct genl_family *, const char *); -extern uint8_t genl_family_get_version(struct genl_family *); -extern void genl_family_set_version(struct genl_family *, uint8_t); -extern uint32_t genl_family_get_hdrsize(struct genl_family *); -extern void genl_family_set_hdrsize(struct genl_family *, uint32_t); -extern uint32_t genl_family_get_maxattr(struct genl_family *); -extern void genl_family_set_maxattr(struct genl_family *, uint32_t); - -extern int genl_family_add_op(struct genl_family *, int, int); -extern int genl_family_add_grp(struct genl_family *, uint32_t , - const char *); - - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/genl/genl.h b/hardware/wifi/libnl/include/libnl3/netlink/genl/genl.h deleted file mode 100644 index e455581b40a71938d8a0a1693dc35c24b8c84af6..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/genl/genl.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * netlink/genl/genl.h Generic Netlink - * - * 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-2012 Thomas Graf - */ - -#ifndef NETLINK_GENL_H_ -#define NETLINK_GENL_H_ - -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -extern int genl_connect(struct nl_sock *); -extern int genl_send_simple(struct nl_sock *, int, int, - int, int); - -extern void * genlmsg_put(struct nl_msg *, uint32_t, uint32_t, - int, int, int, uint8_t, uint8_t); - -extern int genlmsg_valid_hdr(struct nlmsghdr *, int); -extern int genlmsg_validate(struct nlmsghdr *, int, int, - struct nla_policy *); -extern int genlmsg_parse(struct nlmsghdr *, int, struct nlattr **, - int, struct nla_policy *); -extern struct genlmsghdr * - genlmsg_hdr(struct nlmsghdr *); -extern void * genlmsg_data(const struct genlmsghdr *); -extern void * genlmsg_user_hdr(const struct genlmsghdr *); -extern void * genlmsg_user_data(const struct genlmsghdr *, const int); -extern int genlmsg_user_datalen(const struct genlmsghdr *, - const int); -extern int genlmsg_len(const struct genlmsghdr *); -extern struct nlattr * genlmsg_attrdata(const struct genlmsghdr *, int); -extern int genlmsg_attrlen(const struct genlmsghdr *, int); - -extern char * genl_op2name(int, int, char *, size_t); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/genl/mngt.h b/hardware/wifi/libnl/include/libnl3/netlink/genl/mngt.h deleted file mode 100644 index 8a51ccdd0f05d60a38b0c7fc88357602624af042..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/genl/mngt.h +++ /dev/null @@ -1,176 +0,0 @@ -/* - * netlink/genl/mngt.h Generic Netlink Management - * - * 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-2012 Thomas Graf - */ - -#ifndef NETLINK_GENL_MNGT_H_ -#define NETLINK_GENL_MNGT_H_ - -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -struct nl_cache_ops; - -/** - * @ingroup genl_mngt - * @struct genl_info netlink/genl/mngt.h - * - * Informative structure passed on to message parser callbacks - * - * This structure is passed on to all message parser callbacks and contains - * information about the sender of the message as well as pointers to all - * relevant sections of the parsed message. - * - * @see genl_cmd::c_msg_parser - */ -struct genl_info -{ - /** Socket address of sender */ - struct sockaddr_nl * who; - - /** Pointer to Netlink message header */ - struct nlmsghdr * nlh; - - /** Pointer to Generic Netlink message header */ - struct genlmsghdr * genlhdr; - - /** Pointer to user header */ - void * userhdr; - - /** Pointer to array of parsed attributes */ - struct nlattr ** attrs; -}; - -/** - * @ingroup genl_mngt - * @struct genl_cmd netlink/genl/mngt.h - * - * Definition of a Generic Netlink command. - * - * This structure is used to define the list of available commands on the - * receiving side. - * - * @par Example: - * @code - * static struct genl_cmd foo_cmds[] = { - * { - * .c_id = FOO_CMD_NEW, - * .c_name = "NEWFOO" , - * .c_maxattr = FOO_ATTR_MAX, - * .c_attr_policy = foo_policy, - * .c_msg_parser = foo_msg_parser, - * }, - * { - * .c_id = FOO_CMD_DEL, - * .c_name = "DELFOO" , - * }, - * }; - * - * static struct genl_ops my_genl_ops = { - * [...] - * .o_cmds = foo_cmds, - * .o_ncmds = ARRAY_SIZE(foo_cmds), - * }; - * @endcode - */ -struct genl_cmd -{ - /** Numeric command identifier (required) */ - int c_id; - - /** Human readable name (required) */ - char * c_name; - - /** Maximum attribute identifier that the command is prepared to handle. */ - int c_maxattr; - - /** Called whenever a message for this command is received */ - int (*c_msg_parser)(struct nl_cache_ops *, - struct genl_cmd *, - struct genl_info *, void *); - - /** Attribute validation policy, enforced before the callback is called */ - struct nla_policy * c_attr_policy; -}; - -/** - * @ingroup genl_mngt - * @struct genl_ops netlink/genl/mngt.h - * - * Definition of a Generic Netlink family - * - * @par Example: - * @code - * static struct genl_cmd foo_cmds[] = { - * [...] - * }; - * - * static struct genl_ops my_genl_ops = { - * .o_name = "foo", - * .o_hdrsize = sizeof(struct my_hdr), - * .o_cmds = foo_cmds, - * .o_ncmds = ARRAY_SIZE(foo_cmds), - * }; - * - * if ((err = genl_register_family(&my_genl_ops)) < 0) - * // ERROR - * @endcode - * - * @see genl_cmd - */ -struct genl_ops -{ - /** Length of user header */ - unsigned int o_hdrsize; - - /** Numeric identifier, automatically filled in by genl_ops_resolve() */ - int o_id; - - /** Human readable name, used by genl_ops_resolve() to resolve numeric id */ - char * o_name; - - /** - * If registered via genl_register(), will point to the related - * cache operations. - */ - struct nl_cache_ops * o_cache_ops; - - /** Optional array defining the available Generic Netlink commands */ - struct genl_cmd * o_cmds; - - /** Number of elements in \c o_cmds array */ - int o_ncmds; - - /** - * @private - * Used internally to link together all registered operations. - */ - struct nl_list_head o_list; -}; - -extern int genl_register_family(struct genl_ops *); -extern int genl_unregister_family(struct genl_ops *); -extern int genl_handle_msg(struct nl_msg *, void *); - -extern int genl_register(struct nl_cache_ops *); -extern void genl_unregister(struct nl_cache_ops *); - -extern int genl_ops_resolve(struct nl_sock *, struct genl_ops *); -extern int genl_mngt_resolve(struct nl_sock *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/handlers.h b/hardware/wifi/libnl/include/libnl3/netlink/handlers.h deleted file mode 100644 index e94cd348e264c187d0569ad85f92508c3add5bcd..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/handlers.h +++ /dev/null @@ -1,148 +0,0 @@ -/* - * netlink/handlers.c default netlink message handlers - * - * 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-2006 Thomas Graf - */ - -#ifndef NETLINK_HANDLERS_H_ -#define NETLINK_HANDLERS_H_ - -#include -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -struct nl_cb; -struct nl_sock; -struct nl_msg; -struct ucred; - -/** - * @name Callback Typedefs - * @{ - */ - -/** - * nl_recvmsgs() callback for message processing customization - * @ingroup cb - * @arg msg netlink message being processed - * @arg arg argument passwd on through caller - */ -typedef int (*nl_recvmsg_msg_cb_t)(struct nl_msg *msg, void *arg); - -/** - * nl_recvmsgs() callback for error message processing customization - * @ingroup cb - * @arg nla netlink address of the peer - * @arg nlerr netlink error message being processed - * @arg arg argument passed on through caller - */ -typedef int (*nl_recvmsg_err_cb_t)(struct sockaddr_nl *nla, - struct nlmsgerr *nlerr, void *arg); - -/** @} */ - -/** - * Callback actions - * @ingroup cb - */ -enum nl_cb_action { - /** Proceed with wathever would come next */ - NL_OK, - /** Skip this message */ - NL_SKIP, - /** Stop parsing altogether and discard remaining messages */ - NL_STOP, -}; - -/** - * Callback kinds - * @ingroup cb - */ -enum nl_cb_kind { - /** Default handlers (quiet) */ - NL_CB_DEFAULT, - /** Verbose default handlers (error messages printed) */ - NL_CB_VERBOSE, - /** Debug handlers for debugging */ - NL_CB_DEBUG, - /** Customized handler specified by the user */ - NL_CB_CUSTOM, - __NL_CB_KIND_MAX, -}; - -#define NL_CB_KIND_MAX (__NL_CB_KIND_MAX - 1) - -/** - * Callback types - * @ingroup cb - */ -enum nl_cb_type { - /** Message is valid */ - NL_CB_VALID, - /** Last message in a series of multi part messages received */ - NL_CB_FINISH, - /** Report received that data was lost */ - NL_CB_OVERRUN, - /** Message wants to be skipped */ - NL_CB_SKIPPED, - /** Message is an acknowledge */ - NL_CB_ACK, - /** Called for every message received */ - NL_CB_MSG_IN, - /** Called for every message sent out except for nl_sendto() */ - NL_CB_MSG_OUT, - /** Message is malformed and invalid */ - NL_CB_INVALID, - /** Called instead of internal sequence number checking */ - NL_CB_SEQ_CHECK, - /** Sending of an acknowledge message has been requested */ - NL_CB_SEND_ACK, - /** Flag NLM_F_DUMP_INTR is set in message */ - NL_CB_DUMP_INTR, - __NL_CB_TYPE_MAX, -}; - -#define NL_CB_TYPE_MAX (__NL_CB_TYPE_MAX - 1) - -extern struct nl_cb * nl_cb_alloc(enum nl_cb_kind); -extern struct nl_cb * nl_cb_clone(struct nl_cb *); -extern struct nl_cb * nl_cb_get(struct nl_cb *); -extern void nl_cb_put(struct nl_cb *); - -extern int nl_cb_set(struct nl_cb *, enum nl_cb_type, enum nl_cb_kind, - nl_recvmsg_msg_cb_t, void *); -extern int nl_cb_set_all(struct nl_cb *, enum nl_cb_kind, - nl_recvmsg_msg_cb_t, void *); -extern int nl_cb_err(struct nl_cb *, enum nl_cb_kind, nl_recvmsg_err_cb_t, - void *); - -extern void nl_cb_overwrite_recvmsgs(struct nl_cb *, - int (*func)(struct nl_sock *, - struct nl_cb *)); -extern void nl_cb_overwrite_recv(struct nl_cb *, - int (*func)(struct nl_sock *, - struct sockaddr_nl *, - unsigned char **, - struct ucred **)); -extern void nl_cb_overwrite_send(struct nl_cb *, - int (*func)(struct nl_sock *, - struct nl_msg *)); - -extern enum nl_cb_type nl_cb_active_type(struct nl_cb *cb); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/hash.h b/hardware/wifi/libnl/include/libnl3/netlink/hash.h deleted file mode 100644 index 0bda74ea50395f5568af690fe64f40de9289f918..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/hash.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * This file was taken from http://ccodearchive.net/info/hash.html - * Changes to the original file include cleanups and removal of unwanted code - * and also code that depended on build_asert - */ -#ifndef CCAN_HASH_H -#define CCAN_HASH_H -#include -#include -#include - -/* Stolen mostly from: lookup3.c, by Bob Jenkins, May 2006, Public Domain. - * - * http://burtleburtle.net/bob/c/lookup3.c - */ - -#ifdef __LITTLE_ENDIAN -# define HAVE_LITTLE_ENDIAN 1 -#elif __BIG_ENDIAN -# define HAVE_BIG_ENDIAN 1 -#else -#error Unknown endianness. Failure in endian.h -#endif - -/** - * hash - fast hash of an array for internal use - * @p: the array or pointer to first element - * @num: the number of elements to hash - * @base: the base number to roll into the hash (usually 0) - * - * The memory region pointed to by p is combined with the base to form - * a 32-bit hash. - * - * This hash will have different results on different machines, so is - * only useful for internal hashes (ie. not hashes sent across the - * network or saved to disk). - * - * It may also change with future versions: it could even detect at runtime - * what the fastest hash to use is. - * - * See also: hash64, hash_stable. - * - * Example: - * #include - * #include - * #include - * #include - * - * // Simple demonstration: idential strings will have the same hash, but - * // two different strings will probably not. - * int main(int argc, char *argv[]) - * { - * uint32_t hash1, hash2; - * - * if (argc != 3) - * err(1, "Usage: %s ", argv[0]); - * - * hash1 = __nl_hash(argv[1], strlen(argv[1]), 0); - * hash2 = __nl_hash(argv[2], strlen(argv[2]), 0); - * printf("Hash is %s\n", hash1 == hash2 ? "same" : "different"); - * return 0; - * } - */ -#define __nl_hash(p, num, base) nl_hash_any((p), (num)*sizeof(*(p)), (base)) - -/* Our underlying operations. */ -uint32_t nl_hash_any(const void *key, size_t length, uint32_t base); - -#endif /* HASH_H */ diff --git a/hardware/wifi/libnl/include/libnl3/netlink/hashtable.h b/hardware/wifi/libnl/include/libnl3/netlink/hashtable.h deleted file mode 100644 index d9e6ee45d809c5258722bfe1ed539831192c0276..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/hashtable.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * netlink/hashtable.h Netlink hashtable Utilities - * - * 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) 2012 Cumulus Networks, Inc - */ - -#ifndef NETLINK_HASHTABLE_H_ -#define NETLINK_HASHTABLE_H_ - -#ifdef __cplusplus -extern "C" { -#endif - -typedef struct nl_hash_node { - uint32_t key; - uint32_t key_size; - struct nl_object * obj; - struct nl_hash_node * next; -} nl_hash_node_t; - -typedef struct nl_hash_table { - int size; - nl_hash_node_t ** nodes; -} nl_hash_table_t; - -/* Default hash table size */ -#define NL_MAX_HASH_ENTRIES 1024 - -/* Access Functions */ -extern nl_hash_table_t * nl_hash_table_alloc(int size); -extern void nl_hash_table_free(nl_hash_table_t *ht); - -extern int nl_hash_table_add(nl_hash_table_t *ht, - struct nl_object *obj); -extern int nl_hash_table_del(nl_hash_table_t *ht, - struct nl_object *obj); - -extern struct nl_object * nl_hash_table_lookup(nl_hash_table_t *ht, - struct nl_object *obj); -extern uint32_t nl_hash(void *k, size_t length, - uint32_t initval); - -#ifdef __cplusplus -} -#endif - -#endif /* NETLINK_HASHTABLE_H_ */ diff --git a/hardware/wifi/libnl/include/libnl3/netlink/idiag/idiagnl.h b/hardware/wifi/libnl/include/libnl3/netlink/idiag/idiagnl.h deleted file mode 100644 index d7434cd78283e389e256ac5fca3f7ec0638cd33c..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/idiag/idiagnl.h +++ /dev/null @@ -1,126 +0,0 @@ -/* - * netlink/idiag/idiagnl.h Inetdiag Netlink - * - * 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) 2013 Sassano Systems LLC - */ - -#ifndef NETLINK_IDIAGNL_H_ -#define NETLINK_IDIAGNL_H_ - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * Inet Diag message types - */ -#define IDIAG_TCPDIAG_GETSOCK 18 -#define IDIAG_DCCPDIAG_GETSOCK 19 -#define IDIAG_GETSOCK_MAX 24 - -/** - * Socket state identifiers - * @ingroup idiag - */ -enum { - IDIAG_SS_UNKNOWN, - IDIAG_SS_ESTABLISHED, - IDIAG_SS_SYN_SENT, - IDIAG_SS_SYN_RECV, - IDIAG_SS_FIN_WAIT1, - IDIAG_SS_FIN_WAIT2, - IDIAG_SS_TIME_WAIT, - IDIAG_SS_CLOSE, - IDIAG_SS_CLOSE_WAIT, - IDIAG_SS_LAST_ACK, - IDIAG_SS_LISTEN, - IDIAG_SS_CLOSING, - IDIAG_SS_MAX -}; - -/** - * Macro to represent all socket states. - * @ingroup idiag - */ -#define IDIAG_SS_ALL ((1< - */ - -#ifndef NETLINK_IDIAGNL_MEMINFO_H_ -#define NETLINK_IDIAGNL_MEMINFO_H_ - -#include - -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - -extern struct nl_object_ops idiagnl_meminfo_obj_ops; - -extern struct idiagnl_meminfo *idiagnl_meminfo_alloc(void); -extern void idiagnl_meminfo_get(struct idiagnl_meminfo *); -extern void idiagnl_meminfo_put(struct idiagnl_meminfo *); - -extern uint32_t idiagnl_meminfo_get_rmem(const struct idiagnl_meminfo *); -extern uint32_t idiagnl_meminfo_get_wmem(const struct idiagnl_meminfo *); -extern uint32_t idiagnl_meminfo_get_fmem(const struct idiagnl_meminfo *); -extern uint32_t idiagnl_meminfo_get_tmem(const struct idiagnl_meminfo *); - -extern void idiagnl_meminfo_set_rmem(struct idiagnl_meminfo *, uint32_t); -extern void idiagnl_meminfo_set_wmem(struct idiagnl_meminfo *, uint32_t); -extern void idiagnl_meminfo_set_fmem(struct idiagnl_meminfo *, uint32_t); -extern void idiagnl_meminfo_set_tmem(struct idiagnl_meminfo *, uint32_t); - -#ifdef __cplusplus -} -#endif /* __cplusplus */ - -#endif /* NETLINK_IDIAGNL_MEMINFO_H_ */ diff --git a/hardware/wifi/libnl/include/libnl3/netlink/idiag/msg.h b/hardware/wifi/libnl/include/libnl3/netlink/idiag/msg.h deleted file mode 100644 index 4aae606f7d04aec0f9091ecb0d71553e811613f5..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/idiag/msg.h +++ /dev/null @@ -1,83 +0,0 @@ -/* - * netlink/idiag/msg.h Inetdiag Netlink Message - * - * 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) 2013 Sassano Systems LLC - */ - -#ifndef NETLINK_IDIAGNL_MSG_H_ -#define NETLINK_IDIAGNL_MSG_H_ - -#include - -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - -struct idiagnl_msg; -extern struct nl_object_ops idiagnl_msg_obj_ops; - -extern struct idiagnl_msg * idiagnl_msg_alloc(void); -extern int idiagnl_msg_alloc_cache(struct nl_sock *, int, int, - struct nl_cache**); -extern void idiagnl_msg_get(struct idiagnl_msg *); -extern void idiagnl_msg_put(struct idiagnl_msg *); -extern uint8_t idiagnl_msg_get_family(const struct idiagnl_msg *); -extern void idiagnl_msg_set_family(struct idiagnl_msg *, uint8_t); -extern uint8_t idiagnl_msg_get_state(const struct idiagnl_msg *); -extern void idiagnl_msg_set_state(struct idiagnl_msg *, uint8_t); -extern uint8_t idiagnl_msg_get_timer(const struct idiagnl_msg *); -extern void idiagnl_msg_set_timer(struct idiagnl_msg *, uint8_t); -extern uint8_t idiagnl_msg_get_retrans(const struct idiagnl_msg *); -extern void idiagnl_msg_set_retrans(struct idiagnl_msg *, uint8_t); -extern uint16_t idiagnl_msg_get_sport(struct idiagnl_msg *); -extern void idiagnl_msg_set_sport(struct idiagnl_msg *, uint16_t); -extern uint16_t idiagnl_msg_get_dport(struct idiagnl_msg *); -extern void idiagnl_msg_set_dport(struct idiagnl_msg *, uint16_t); -extern struct nl_addr * idiagnl_msg_get_src(const struct idiagnl_msg *); -extern int idiagnl_msg_set_src(struct idiagnl_msg *, - struct nl_addr *); -extern struct nl_addr * idiagnl_msg_get_dst(const struct idiagnl_msg *); -extern int idiagnl_msg_set_dst(struct idiagnl_msg *, - struct nl_addr *); -extern uint32_t idiagnl_msg_get_ifindex(const struct idiagnl_msg *); -extern void idiagnl_msg_set_ifindex(struct idiagnl_msg *, uint32_t); -extern uint32_t idiagnl_msg_get_expires(const struct idiagnl_msg *); -extern void idiagnl_msg_set_expires(struct idiagnl_msg *, uint32_t); -extern uint32_t idiagnl_msg_get_rqueue(const struct idiagnl_msg *); -extern void idiagnl_msg_set_rqueue(struct idiagnl_msg *, uint32_t); -extern uint32_t idiagnl_msg_get_wqueue(const struct idiagnl_msg *); -extern void idiagnl_msg_set_wqueue(struct idiagnl_msg *, uint32_t); -extern uint32_t idiagnl_msg_get_uid(const struct idiagnl_msg *); -extern void idiagnl_msg_set_uid(struct idiagnl_msg *, uint32_t); -extern uint32_t idiagnl_msg_get_inode(const struct idiagnl_msg *); -extern void idiagnl_msg_set_inode(struct idiagnl_msg *, uint32_t); -extern uint8_t idiagnl_msg_get_tos(const struct idiagnl_msg *); -extern void idiagnl_msg_set_tos(struct idiagnl_msg *, uint8_t); -extern uint8_t idiagnl_msg_get_tclass(const struct idiagnl_msg *); -extern void idiagnl_msg_set_tclass(struct idiagnl_msg *, uint8_t); -extern uint8_t idiagnl_msg_get_shutdown(const struct idiagnl_msg *); -extern void idiagnl_msg_set_shutdown(struct idiagnl_msg *, uint8_t); -extern char * idiagnl_msg_get_cong(const struct idiagnl_msg *); -extern void idiagnl_msg_set_cong(struct idiagnl_msg *, char *); -extern struct idiagnl_meminfo *idiagnl_msg_get_meminfo(const struct idiagnl_msg *); -extern void idiagnl_msg_set_meminfo(struct idiagnl_msg *, - struct idiagnl_meminfo *); -extern struct idiagnl_vegasinfo *idiagnl_msg_get_vegasinfo(const struct idiagnl_msg *); -extern void idiagnl_msg_set_vegasinfo(struct idiagnl_msg *, - struct idiagnl_vegasinfo *); -extern struct tcp_info idiagnl_msg_get_tcpinfo(const struct idiagnl_msg *); -extern void idiagnl_msg_set_tcpinfo(struct idiagnl_msg *, - struct tcp_info *); - -extern int idiagnl_msg_parse(struct nlmsghdr *, - struct idiagnl_msg **); -#ifdef __cplusplus -} -#endif /* __cplusplus */ - -#endif /* NETLINK_IDIAGNL_MSG_H_ */ diff --git a/hardware/wifi/libnl/include/libnl3/netlink/idiag/req.h b/hardware/wifi/libnl/include/libnl3/netlink/idiag/req.h deleted file mode 100644 index 3c9f8ace7c9c7383892f32c54174a96a8d3817f3..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/idiag/req.h +++ /dev/null @@ -1,50 +0,0 @@ -/* - * netlink/idiag/req.h Inetdiag Netlink Request - * - * 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) 2013 Sassano Systems LLC - */ - -#ifndef NETLINK_IDIAGNL_REQ_H_ -#define NETLINK_IDIAGNL_REQ_H_ - -#include - -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - -struct idiagnl_req; -extern struct nl_object_ops idiagnl_req_obj_ops; - -extern struct idiagnl_req * idiagnl_req_alloc(void); -extern void idiagnl_req_get(struct idiagnl_req *); -extern void idiagnl_req_put(struct idiagnl_req *); -extern uint8_t idiagnl_req_get_family(const struct idiagnl_req *); -extern void idiagnl_req_set_family(struct idiagnl_req *, - uint8_t); -extern uint8_t idiagnl_req_get_ext(const struct idiagnl_req *); -extern void idiagnl_req_set_ext(struct idiagnl_req *, uint8_t); -extern uint32_t idiagnl_req_get_ifindex(const struct idiagnl_req *); -extern void idiagnl_req_set_ifindex(struct idiagnl_req *, - uint32_t); -extern uint32_t idiagnl_req_get_states(const struct idiagnl_req *); -extern void idiagnl_req_set_states(struct idiagnl_req *, - uint32_t); -extern uint32_t idiagnl_req_get_dbs(const struct idiagnl_req *); -extern void idiagnl_req_set_dbs(struct idiagnl_req *, uint32_t); -extern struct nl_addr * idiagnl_req_get_src(const struct idiagnl_req *); -extern int idiagnl_req_set_src(struct idiagnl_req *, - struct nl_addr *); -extern struct nl_addr * idiagnl_req_get_dst(const struct idiagnl_req *); -extern int idiagnl_req_set_dst(struct idiagnl_req *, - struct nl_addr *); -#ifdef __cplusplus -} -#endif /* __cplusplus */ - -#endif /* NETLINK_IDIAGNL_REQ_H_ */ diff --git a/hardware/wifi/libnl/include/libnl3/netlink/idiag/vegasinfo.h b/hardware/wifi/libnl/include/libnl3/netlink/idiag/vegasinfo.h deleted file mode 100644 index 792b5c16ed66ab4091835381096a8738d2f9a8d5..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/idiag/vegasinfo.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * netlink/idiag/vegasinfo.h Inetdiag Netlink TCP Vegas Info - * - * 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) 2013 Sassano Systems LLC - */ - -#ifndef NETLINK_IDIAGNL_VEGASINFO_H_ -#define NETLINK_IDIAGNL_VEGASINFO_H_ - -#include - -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - -extern struct nl_object_ops idiagnl_vegasinfo_obj_ops; -extern struct idiagnl_vegasinfo * idiagnl_vegasinfo_alloc(void); -extern void idiagnl_vegasinfo_get(struct idiagnl_vegasinfo *); -extern void idiagnl_vegasinfo_put(struct idiagnl_vegasinfo *); - -extern uint32_t idiagnl_vegasinfo_get_enabled(const struct idiagnl_vegasinfo *); -extern uint32_t idiagnl_vegasinfo_get_rttcnt(const struct idiagnl_vegasinfo *); -extern uint32_t idiagnl_vegasinfo_get_rtt(const struct idiagnl_vegasinfo *); -extern uint32_t idiagnl_vegasinfo_get_minrtt(const struct idiagnl_vegasinfo *); - -extern void idiagnl_vegasinfo_set_enabled(struct idiagnl_vegasinfo *, - uint32_t); -extern void idiagnl_vegasinfo_set_rttcnt(struct idiagnl_vegasinfo *, - uint32_t); -extern void idiagnl_vegasinfo_set_rtt(struct idiagnl_vegasinfo *, uint32_t); -extern void idiagnl_vegasinfo_set_minrtt(struct idiagnl_vegasinfo *, - uint32_t); - -#ifdef __cplusplus -} -#endif /* __cplusplus */ - -#endif /* NETLINK_IDIAGNL_VEGASINFO_H_ */ diff --git a/hardware/wifi/libnl/include/libnl3/netlink/list.h b/hardware/wifi/libnl/include/libnl3/netlink/list.h deleted file mode 100644 index 28712edad212962dc55aff4cb7edb05c0be97030..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/list.h +++ /dev/null @@ -1,93 +0,0 @@ -/* - * netlink/list.h Netlink List Utilities - * - * 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-2006 Thomas Graf - */ - -#ifndef NETLINK_LIST_H_ -#define NETLINK_LIST_H_ - -struct nl_list_head -{ - struct nl_list_head * next; - struct nl_list_head * prev; -}; - -static inline void NL_INIT_LIST_HEAD(struct nl_list_head *list) -{ - list->next = list; - list->prev = list; -} - -static inline void __nl_list_add(struct nl_list_head *obj, - struct nl_list_head *prev, - struct nl_list_head *next) -{ - prev->next = obj; - obj->prev = prev; - next->prev = obj; - obj->next = next; -} - -static inline void nl_list_add_tail(struct nl_list_head *obj, - struct nl_list_head *head) -{ - __nl_list_add(obj, head->prev, head); -} - -static inline void nl_list_add_head(struct nl_list_head *obj, - struct nl_list_head *head) -{ - __nl_list_add(obj, head, head->next); -} - -static inline void nl_list_del(struct nl_list_head *obj) -{ - obj->next->prev = obj->prev; - obj->prev->next = obj->next; -} - -static inline int nl_list_empty(struct nl_list_head *head) -{ - return head->next == head; -} - -#define nl_container_of(ptr, type, member) ({ \ - const typeof( ((type *)0)->member ) *__mptr = (ptr); \ - (type *)( (char *)__mptr - ((size_t) &((type *)0)->member));}) - -#define nl_list_entry(ptr, type, member) \ - nl_container_of(ptr, type, member) - -#define nl_list_at_tail(pos, head, member) \ - ((pos)->member.next == (head)) - -#define nl_list_at_head(pos, head, member) \ - ((pos)->member.prev == (head)) - -#define NL_LIST_HEAD(name) \ - struct nl_list_head name = { &(name), &(name) } - -#define nl_list_first_entry(head, type, member) \ - nl_list_entry((head)->next, type, member) - -#define nl_list_for_each_entry(pos, head, member) \ - for (pos = nl_list_entry((head)->next, typeof(*pos), member); \ - &(pos)->member != (head); \ - (pos) = nl_list_entry((pos)->member.next, typeof(*(pos)), member)) - -#define nl_list_for_each_entry_safe(pos, n, head, member) \ - for (pos = nl_list_entry((head)->next, typeof(*pos), member), \ - n = nl_list_entry(pos->member.next, typeof(*pos), member); \ - &(pos)->member != (head); \ - pos = n, n = nl_list_entry(n->member.next, typeof(*n), member)) - -#define nl_init_list_head(head) \ - do { (head)->next = (head); (head)->prev = (head); } while (0) - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/msg.h b/hardware/wifi/libnl/include/libnl3/netlink/msg.h deleted file mode 100644 index f3d50ae238d087f9d9ea3bd78ef1d1c1f6e10e5d..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/msg.h +++ /dev/null @@ -1,147 +0,0 @@ -/* - * netlink/msg.c Netlink Messages Interface - * - * 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-2006 Thomas Graf - */ - -#ifndef NETLINK_MSG_H_ -#define NETLINK_MSG_H_ - -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -#define NL_DONTPAD 0 - -/** - * @ingroup msg - * @brief - * Will cause the netlink port to be set to the port assigned to - * the netlink icoket ust before sending the message off. - * - * @note Requires the use of nl_send_auto()! - */ -#define NL_AUTO_PORT 0 -#define NL_AUTO_PID NL_AUTO_PORT - -/** - * @ingroup msg - * @brief - * May be used to refer to a sequence number which should be - * automatically set just before sending the message off. - * - * @note Requires the use of nl_send_auto()! - */ -#define NL_AUTO_SEQ 0 - -struct nl_msg; -struct nl_tree; -struct ucred; - -extern int nlmsg_size(int); -extern int nlmsg_total_size(int); -extern int nlmsg_padlen(int); - -extern void * nlmsg_data(const struct nlmsghdr *); -extern int nlmsg_datalen(const struct nlmsghdr *); -extern void * nlmsg_tail(const struct nlmsghdr *); - -/* attribute access */ -extern struct nlattr * nlmsg_attrdata(const struct nlmsghdr *, int); -extern int nlmsg_attrlen(const struct nlmsghdr *, int); - -/* message parsing */ -extern int nlmsg_valid_hdr(const struct nlmsghdr *, int); -extern int nlmsg_ok(const struct nlmsghdr *, int); -extern struct nlmsghdr * nlmsg_next(struct nlmsghdr *, int *); -extern int nlmsg_parse(struct nlmsghdr *, int, struct nlattr **, - int, struct nla_policy *); -extern struct nlattr * nlmsg_find_attr(struct nlmsghdr *, int, int); -extern int nlmsg_validate(struct nlmsghdr *, int, int, - struct nla_policy *); - -extern struct nl_msg * nlmsg_alloc(void); -extern struct nl_msg * nlmsg_alloc_size(size_t); -extern struct nl_msg * nlmsg_alloc_simple(int, int); -extern void nlmsg_set_default_size(size_t); -extern struct nl_msg * nlmsg_inherit(struct nlmsghdr *); -extern struct nl_msg * nlmsg_convert(struct nlmsghdr *); -extern void * nlmsg_reserve(struct nl_msg *, size_t, int); -extern int nlmsg_append(struct nl_msg *, void *, size_t, int); -extern int nlmsg_expand(struct nl_msg *, size_t); - -extern struct nlmsghdr * nlmsg_put(struct nl_msg *, uint32_t, uint32_t, - int, int, int); -extern struct nlmsghdr * nlmsg_hdr(struct nl_msg *); -extern void nlmsg_get(struct nl_msg *); -extern void nlmsg_free(struct nl_msg *); - -/* attribute modification */ -extern void nlmsg_set_proto(struct nl_msg *, int); -extern int nlmsg_get_proto(struct nl_msg *); -extern size_t nlmsg_get_max_size(struct nl_msg *); -extern void nlmsg_set_src(struct nl_msg *, struct sockaddr_nl *); -extern struct sockaddr_nl *nlmsg_get_src(struct nl_msg *); -extern void nlmsg_set_dst(struct nl_msg *, struct sockaddr_nl *); -extern struct sockaddr_nl *nlmsg_get_dst(struct nl_msg *); -extern void nlmsg_set_creds(struct nl_msg *, struct ucred *); -extern struct ucred * nlmsg_get_creds(struct nl_msg *); - -extern char * nl_nlmsgtype2str(int, char *, size_t); -extern int nl_str2nlmsgtype(const char *); - -extern char * nl_nlmsg_flags2str(int, char *, size_t); - -extern int nl_msg_parse(struct nl_msg *, - void (*cb)(struct nl_object *, void *), - void *); - -extern void nl_msg_dump(struct nl_msg *, FILE *); - -/** - * @name Iterators - * @{ - */ - -/** - * @ingroup msg - * Iterate over a stream of attributes in a message - * @arg pos loop counter, set to current attribute - * @arg nlh netlink message header - * @arg hdrlen length of family header - * @arg rem initialized to len, holds bytes currently remaining in stream - */ -#define nlmsg_for_each_attr(pos, nlh, hdrlen, rem) \ - nla_for_each_attr(pos, nlmsg_attrdata(nlh, hdrlen), \ - nlmsg_attrlen(nlh, hdrlen), rem) - -/** - * Iterate over a stream of messages - * @arg pos loop counter, set to current message - * @arg head head of message stream - * @arg len length of message stream - */ -#define nlmsg_for_each(pos, head, len) \ - for (int rem = len, pos = head; \ - nlmsg_ok(pos, rem); \ - pos = nlmsg_next(pos, &rem)) - -#define nlmsg_for_each_msg(pos, head, len, rem) \ - nlmsg_for_each(pos, head, len) - -/** @} */ - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/netfilter/ct.h b/hardware/wifi/libnl/include/libnl3/netlink/netfilter/ct.h deleted file mode 100644 index ef5d0355052df8f16d99a7e83e88808f82b12f45..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/netfilter/ct.h +++ /dev/null @@ -1,140 +0,0 @@ -/* - * netlink/netfilter/ct.h Conntrack - * - * 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 - * Copyright (c) 2007 Philip Craig - * Copyright (c) 2007 Secure Computing Corporation - */ - -#ifndef NETLINK_CT_H_ -#define NETLINK_CT_H_ - -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -struct nfnl_ct; - -struct nfnl_ct_timestamp { - uint64_t start; - uint64_t stop; -}; - -extern struct nl_object_ops ct_obj_ops; - -extern struct nfnl_ct * nfnl_ct_alloc(void); -extern int nfnl_ct_alloc_cache(struct nl_sock *, struct nl_cache **); - -extern int nfnlmsg_ct_group(struct nlmsghdr *); -extern int nfnlmsg_ct_parse(struct nlmsghdr *, struct nfnl_ct **); - -extern void nfnl_ct_get(struct nfnl_ct *); -extern void nfnl_ct_put(struct nfnl_ct *); - -extern int nfnl_ct_dump_request(struct nl_sock *); - -extern int nfnl_ct_build_add_request(const struct nfnl_ct *, int, - struct nl_msg **); -extern int nfnl_ct_add(struct nl_sock *, const struct nfnl_ct *, int); - -extern int nfnl_ct_build_delete_request(const struct nfnl_ct *, int, - struct nl_msg **); -extern int nfnl_ct_del(struct nl_sock *, const struct nfnl_ct *, int); - -extern int nfnl_ct_build_query_request(const struct nfnl_ct *, int, - struct nl_msg **); -extern int nfnl_ct_query(struct nl_sock *, const struct nfnl_ct *, int); - -extern void nfnl_ct_set_family(struct nfnl_ct *, uint8_t); -extern uint8_t nfnl_ct_get_family(const struct nfnl_ct *); - -extern void nfnl_ct_set_proto(struct nfnl_ct *, uint8_t); -extern int nfnl_ct_test_proto(const struct nfnl_ct *); -extern uint8_t nfnl_ct_get_proto(const struct nfnl_ct *); - -extern void nfnl_ct_set_tcp_state(struct nfnl_ct *, uint8_t); -extern int nfnl_ct_test_tcp_state(const struct nfnl_ct *); -extern uint8_t nfnl_ct_get_tcp_state(const struct nfnl_ct *); -extern char * nfnl_ct_tcp_state2str(uint8_t, char *, size_t); -extern int nfnl_ct_str2tcp_state(const char *name); - -extern void nfnl_ct_set_status(struct nfnl_ct *, uint32_t); -extern void nfnl_ct_unset_status(struct nfnl_ct *, uint32_t); -extern int nfnl_ct_test_status(const struct nfnl_ct *ct); -extern uint32_t nfnl_ct_get_status(const struct nfnl_ct *); -extern char * nfnl_ct_status2str(int, char *, size_t); -extern int nfnl_ct_str2status(const char *); - -extern void nfnl_ct_set_timeout(struct nfnl_ct *, uint32_t); -extern int nfnl_ct_test_timeout(const struct nfnl_ct *); -extern uint32_t nfnl_ct_get_timeout(const struct nfnl_ct *); - -extern void nfnl_ct_set_mark(struct nfnl_ct *, uint32_t); -extern int nfnl_ct_test_mark(const struct nfnl_ct *); -extern uint32_t nfnl_ct_get_mark(const struct nfnl_ct *); - -extern void nfnl_ct_set_use(struct nfnl_ct *, uint32_t); -extern int nfnl_ct_test_use(const struct nfnl_ct *); -extern uint32_t nfnl_ct_get_use(const struct nfnl_ct *); - -extern void nfnl_ct_set_id(struct nfnl_ct *, uint32_t); -extern int nfnl_ct_test_id(const struct nfnl_ct *); -extern uint32_t nfnl_ct_get_id(const struct nfnl_ct *); - -extern void nfnl_ct_set_zone(struct nfnl_ct *, uint16_t); -extern int nfnl_ct_test_zone(const struct nfnl_ct *); -extern uint16_t nfnl_ct_get_zone(const struct nfnl_ct *); - -extern int nfnl_ct_set_src(struct nfnl_ct *, int, struct nl_addr *); -extern struct nl_addr * nfnl_ct_get_src(const struct nfnl_ct *, int); - -extern int nfnl_ct_set_dst(struct nfnl_ct *, int, struct nl_addr *); -extern struct nl_addr * nfnl_ct_get_dst(const struct nfnl_ct *, int); - -extern void nfnl_ct_set_src_port(struct nfnl_ct *, int, uint16_t); -extern int nfnl_ct_test_src_port(const struct nfnl_ct *, int); -extern uint16_t nfnl_ct_get_src_port(const struct nfnl_ct *, int); - -extern void nfnl_ct_set_dst_port(struct nfnl_ct *, int, uint16_t); -extern int nfnl_ct_test_dst_port(const struct nfnl_ct *, int); -extern uint16_t nfnl_ct_get_dst_port(const struct nfnl_ct *, int); - -extern void nfnl_ct_set_icmp_id(struct nfnl_ct *, int, uint16_t); -extern int nfnl_ct_test_icmp_id(const struct nfnl_ct *, int); -extern uint16_t nfnl_ct_get_icmp_id(const struct nfnl_ct *, int); - -extern void nfnl_ct_set_icmp_type(struct nfnl_ct *, int, uint8_t); -extern int nfnl_ct_test_icmp_type(const struct nfnl_ct *, int); -extern uint8_t nfnl_ct_get_icmp_type(const struct nfnl_ct *, int); - -extern void nfnl_ct_set_icmp_code(struct nfnl_ct *, int, uint8_t); -extern int nfnl_ct_test_icmp_code(const struct nfnl_ct *, int); -extern uint8_t nfnl_ct_get_icmp_code(const struct nfnl_ct *, int); - -extern void nfnl_ct_set_packets(struct nfnl_ct *, int, uint64_t); -extern int nfnl_ct_test_packets(const struct nfnl_ct *, int); -extern uint64_t nfnl_ct_get_packets(const struct nfnl_ct *,int); - -extern void nfnl_ct_set_bytes(struct nfnl_ct *, int, uint64_t); -extern int nfnl_ct_test_bytes(const struct nfnl_ct *, int); -extern uint64_t nfnl_ct_get_bytes(const struct nfnl_ct *, int); - -extern void nfnl_ct_set_timestamp(struct nfnl_ct *, uint64_t, uint64_t); -extern int nfnl_ct_test_timestamp(const struct nfnl_ct *); -extern const struct nfnl_ct_timestamp *nfnl_ct_get_timestamp(const struct nfnl_ct *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/netfilter/exp.h b/hardware/wifi/libnl/include/libnl3/netlink/netfilter/exp.h deleted file mode 100644 index 4e9501474b2df79b33fdec342cf08e2df914fbf8..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/netfilter/exp.h +++ /dev/null @@ -1,129 +0,0 @@ -/* - * netlink/netfilter/exp.h Conntrack Expectation - * - * 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 - * Copyright (c) 2007 Philip Craig - * Copyright (c) 2007 Secure Computing Corporation - * Copyright (c) 2012 Rich Fought - */ - -#ifndef NETLINK_EXP_H_ -#define NETLINK_EXP_H_ - -#include -#include -#include -#include - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -struct nfnl_exp; - -enum nfnl_exp_tuples { - NFNL_EXP_TUPLE_EXPECT, - NFNL_EXP_TUPLE_MASTER, - NFNL_EXP_TUPLE_MASK, - NFNL_EXP_TUPLE_NAT, - NFNL_EXP_TUPLE_MAX -}; - -extern struct nl_object_ops exp_obj_ops; - -extern struct nfnl_exp * nfnl_exp_alloc(void); -extern int nfnl_exp_alloc_cache(struct nl_sock *, struct nl_cache **); - -extern int nfnlmsg_exp_group(struct nlmsghdr *); -extern int nfnlmsg_exp_parse(struct nlmsghdr *, struct nfnl_exp **); - -extern void nfnl_exp_get(struct nfnl_exp *); -extern void nfnl_exp_put(struct nfnl_exp *); - -extern int nfnl_exp_dump_request(struct nl_sock *); - -extern int nfnl_exp_build_add_request(const struct nfnl_exp *, int, - struct nl_msg **); -extern int nfnl_exp_add(struct nl_sock *, const struct nfnl_exp *, int); - -extern int nfnl_exp_build_delete_request(const struct nfnl_exp *, int, - struct nl_msg **); -extern int nfnl_exp_del(struct nl_sock *, const struct nfnl_exp *, int); - -extern int nfnl_exp_build_query_request(const struct nfnl_exp *, int, - struct nl_msg **); -extern int nfnl_exp_query(struct nl_sock *, const struct nfnl_exp *, int); - -extern void nfnl_exp_set_family(struct nfnl_exp *, uint8_t); -extern uint8_t nfnl_exp_get_family(const struct nfnl_exp *); - -extern void nfnl_exp_set_timeout(struct nfnl_exp *, uint32_t); -extern int nfnl_exp_test_timeout(const struct nfnl_exp *); -extern uint32_t nfnl_exp_get_timeout(const struct nfnl_exp *); - -extern void nfnl_exp_set_id(struct nfnl_exp *, uint32_t); -extern int nfnl_exp_test_id(const struct nfnl_exp *); -extern uint32_t nfnl_exp_get_id(const struct nfnl_exp *); - -extern int nfnl_exp_set_helper_name(struct nfnl_exp *, void *); -extern int nfnl_exp_test_helper_name(const struct nfnl_exp *); -extern const char * nfnl_exp_get_helper_name(const struct nfnl_exp *); - -extern void nfnl_exp_set_zone(struct nfnl_exp *, uint16_t); -extern int nfnl_exp_test_zone(const struct nfnl_exp *); -extern uint16_t nfnl_exp_get_zone(const struct nfnl_exp *); - -extern void nfnl_exp_set_flags(struct nfnl_exp *, uint32_t); -extern int nfnl_exp_test_flags(const struct nfnl_exp *); -extern uint32_t nfnl_exp_get_flags(const struct nfnl_exp *); - -extern void nfnl_exp_set_class(struct nfnl_exp *, uint32_t); -extern int nfnl_exp_test_class(const struct nfnl_exp *); -extern uint32_t nfnl_exp_get_class(const struct nfnl_exp *); - -extern int nfnl_exp_set_fn(struct nfnl_exp *, void *); -extern int nfnl_exp_test_fn(const struct nfnl_exp *); -extern const char * nfnl_exp_get_fn(const struct nfnl_exp *); - -extern void nfnl_exp_set_nat_dir(struct nfnl_exp *, uint8_t); -extern int nfnl_exp_test_nat_dir(const struct nfnl_exp *); -extern uint8_t nfnl_exp_get_nat_dir(const struct nfnl_exp *); - -// The int argument specifies which nfnl_exp_dir (expect, master, mask or nat) -// Expectation objects only use orig, not reply - -extern int nfnl_exp_set_src(struct nfnl_exp *, int, struct nl_addr *); -extern int nfnl_exp_test_src(const struct nfnl_exp *, int); -extern struct nl_addr * nfnl_exp_get_src(const struct nfnl_exp *, int); - -extern int nfnl_exp_set_dst(struct nfnl_exp *, int, struct nl_addr *); -extern int nfnl_exp_test_dst(const struct nfnl_exp *, int); -extern struct nl_addr * nfnl_exp_get_dst(const struct nfnl_exp *, int); - -extern void nfnl_exp_set_l4protonum(struct nfnl_exp *, int, uint8_t); -extern int nfnl_exp_test_l4protonum(const struct nfnl_exp *, int); -extern uint8_t nfnl_exp_get_l4protonum(const struct nfnl_exp *, int); - -extern void nfnl_exp_set_ports(struct nfnl_exp *, int, uint16_t, uint16_t); -extern int nfnl_exp_test_ports(const struct nfnl_exp *, int); -extern uint16_t nfnl_exp_get_src_port(const struct nfnl_exp *, int); -extern uint16_t nfnl_exp_get_dst_port(const struct nfnl_exp *, int); - -extern void nfnl_exp_set_icmp(struct nfnl_exp *, int, uint16_t, uint8_t, uint8_t); -extern int nfnl_exp_test_icmp(const struct nfnl_exp *, int); -extern uint16_t nfnl_exp_get_icmp_id(const struct nfnl_exp *, int); -extern uint8_t nfnl_exp_get_icmp_type(const struct nfnl_exp *, int); -extern uint8_t nfnl_exp_get_icmp_code(const struct nfnl_exp *, int); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/netfilter/log.h b/hardware/wifi/libnl/include/libnl3/netlink/netfilter/log.h deleted file mode 100644 index 2002fa8bfd1f19d706115b0e259e5c79a9f33b35..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/netfilter/log.h +++ /dev/null @@ -1,109 +0,0 @@ -/* - * netlink/netfilter/log.h Netfilter Log - * - * 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-2006 Thomas Graf - * Copyright (c) 2007 Philip Craig - * Copyright (c) 2007 Secure Computing Corporation - * Copyright (c) 2008 Patrick McHardy - */ - -#ifndef NETLINK_LOG_H_ -#define NETLINK_LOG_H_ - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -struct nl_sock; -struct nlmsghdr; -struct nfnl_log; - -extern struct nl_object_ops log_obj_ops; - -enum nfnl_log_copy_mode { - NFNL_LOG_COPY_NONE, - NFNL_LOG_COPY_META, - NFNL_LOG_COPY_PACKET, -}; - -enum nfnl_log_flags { - NFNL_LOG_FLAG_SEQ = 0x1, - NFNL_LOG_FLAG_SEQ_GLOBAL = 0x2, -}; - -/* General */ -extern struct nfnl_log * nfnl_log_alloc(void); -extern int nfnlmsg_log_parse(struct nlmsghdr *, - struct nfnl_log **); - -extern void nfnl_log_get(struct nfnl_log *); -extern void nfnl_log_put(struct nfnl_log *); - -/* Attributes */ -extern void nfnl_log_set_group(struct nfnl_log *, uint16_t); -extern int nfnl_log_test_group(const struct nfnl_log *); -extern uint16_t nfnl_log_get_group(const struct nfnl_log *); - -extern void nfnl_log_set_copy_mode(struct nfnl_log *, - enum nfnl_log_copy_mode); -extern int nfnl_log_test_copy_mode(const struct nfnl_log *); -extern enum nfnl_log_copy_mode nfnl_log_get_copy_mode(const struct nfnl_log *); - -extern char * nfnl_log_copy_mode2str(enum nfnl_log_copy_mode, - char *, size_t); -extern enum nfnl_log_copy_mode nfnl_log_str2copy_mode(const char *); - -extern void nfnl_log_set_copy_range(struct nfnl_log *, uint32_t); -extern int nfnl_log_test_copy_range(const struct nfnl_log *); -extern uint32_t nfnl_log_get_copy_range(const struct nfnl_log *); - -extern void nfnl_log_set_flush_timeout(struct nfnl_log *, uint32_t); -extern int nfnl_log_test_flush_timeout(const struct nfnl_log *); -extern uint32_t nfnl_log_get_flush_timeout(const struct nfnl_log *); - -extern void nfnl_log_set_alloc_size(struct nfnl_log *, uint32_t); -extern int nfnl_log_test_alloc_size(const struct nfnl_log *); -extern uint32_t nfnl_log_get_alloc_size(const struct nfnl_log *); - -extern void nfnl_log_set_queue_threshold(struct nfnl_log *, uint32_t); -extern int nfnl_log_test_queue_threshold(const struct nfnl_log *); -extern uint32_t nfnl_log_get_queue_threshold(const struct nfnl_log *); - -extern void nfnl_log_set_flags(struct nfnl_log *, unsigned int); -extern void nfnl_log_unset_flags(struct nfnl_log *, unsigned int); -extern unsigned int nfnl_log_get_flags(const struct nfnl_log *); - -extern char * nfnl_log_flags2str(unsigned int, char *, size_t); -extern unsigned int nfnl_log_str2flags(const char *); - -extern int nfnl_log_build_pf_bind(uint8_t, struct nl_msg **); -extern int nfnl_log_pf_bind(struct nl_sock *, uint8_t); - -extern int nfnl_log_build_pf_unbind(uint8_t, struct nl_msg **); -extern int nfnl_log_pf_unbind(struct nl_sock *, uint8_t); - -extern int nfnl_log_build_create_request(const struct nfnl_log *, - struct nl_msg **); -extern int nfnl_log_create(struct nl_sock *, const struct nfnl_log *); - -extern int nfnl_log_build_change_request(const struct nfnl_log *, - struct nl_msg **); -extern int nfnl_log_change(struct nl_sock *, const struct nfnl_log *); - -extern int nfnl_log_build_delete_request(const struct nfnl_log *, - struct nl_msg **); -extern int nfnl_log_delete(struct nl_sock *, const struct nfnl_log *); - -#ifdef __cplusplus -} -#endif - -#endif - diff --git a/hardware/wifi/libnl/include/libnl3/netlink/netfilter/log_msg.h b/hardware/wifi/libnl/include/libnl3/netlink/netfilter/log_msg.h deleted file mode 100644 index 63b0f6420f48ea78b8b39c59d887699d4e18e4f6..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/netfilter/log_msg.h +++ /dev/null @@ -1,98 +0,0 @@ -/* - * netlink/netfilter/log_msg.h Netfilter Log Message - * - * 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 - * Copyright (c) 2007 Philip Craig - * Copyright (c) 2007 Secure Computing Corporation - * Copyright (c) 2008 Patrick McHardy - */ - -#ifndef NETLINK_LOG_MSG_H_ -#define NETLINK_LOG_MSG_H_ - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -struct nlmsghdr; -struct nfnl_log_msg; - -extern struct nl_object_ops log_msg_obj_ops; - -/* General */ -extern struct nfnl_log_msg *nfnl_log_msg_alloc(void); -extern int nfnlmsg_log_msg_parse(struct nlmsghdr *, - struct nfnl_log_msg **); - -extern void nfnl_log_msg_get(struct nfnl_log_msg *); -extern void nfnl_log_msg_put(struct nfnl_log_msg *); - -extern void nfnl_log_msg_set_family(struct nfnl_log_msg *, uint8_t); -extern uint8_t nfnl_log_msg_get_family(const struct nfnl_log_msg *); - -extern void nfnl_log_msg_set_hwproto(struct nfnl_log_msg *, uint16_t); -extern int nfnl_log_msg_test_hwproto(const struct nfnl_log_msg *); -extern uint16_t nfnl_log_msg_get_hwproto(const struct nfnl_log_msg *); - -extern void nfnl_log_msg_set_hook(struct nfnl_log_msg *, uint8_t); -extern int nfnl_log_msg_test_hook(const struct nfnl_log_msg *); -extern uint8_t nfnl_log_msg_get_hook(const struct nfnl_log_msg *); - -extern void nfnl_log_msg_set_mark(struct nfnl_log_msg *, uint32_t); -extern int nfnl_log_msg_test_mark(const struct nfnl_log_msg *); -extern uint32_t nfnl_log_msg_get_mark(const struct nfnl_log_msg *); - -extern void nfnl_log_msg_set_timestamp(struct nfnl_log_msg *, - struct timeval *); -extern const struct timeval *nfnl_log_msg_get_timestamp(const struct nfnl_log_msg *); - -extern void nfnl_log_msg_set_indev(struct nfnl_log_msg *, uint32_t); -extern uint32_t nfnl_log_msg_get_indev(const struct nfnl_log_msg *); - -extern void nfnl_log_msg_set_outdev(struct nfnl_log_msg *, uint32_t); -extern uint32_t nfnl_log_msg_get_outdev(const struct nfnl_log_msg *); - -extern void nfnl_log_msg_set_physindev(struct nfnl_log_msg *, uint32_t); -extern uint32_t nfnl_log_msg_get_physindev(const struct nfnl_log_msg *); - -extern void nfnl_log_msg_set_physoutdev(struct nfnl_log_msg *, uint32_t); -extern uint32_t nfnl_log_msg_get_physoutdev(const struct nfnl_log_msg *); - -extern void nfnl_log_msg_set_hwaddr(struct nfnl_log_msg *, uint8_t *, int); -extern const uint8_t * nfnl_log_msg_get_hwaddr(const struct nfnl_log_msg *, int *); - -extern int nfnl_log_msg_set_payload(struct nfnl_log_msg *, uint8_t *, int); -extern const void * nfnl_log_msg_get_payload(const struct nfnl_log_msg *, int *); - -extern int nfnl_log_msg_set_prefix(struct nfnl_log_msg *, void *); -extern const char * nfnl_log_msg_get_prefix(const struct nfnl_log_msg *); - -extern void nfnl_log_msg_set_uid(struct nfnl_log_msg *, uint32_t); -extern int nfnl_log_msg_test_uid(const struct nfnl_log_msg *); -extern uint32_t nfnl_log_msg_get_uid(const struct nfnl_log_msg *); - -extern void nfnl_log_msg_set_gid(struct nfnl_log_msg *, uint32_t); -extern int nfnl_log_msg_test_gid(const struct nfnl_log_msg *); -extern uint32_t nfnl_log_msg_get_gid(const struct nfnl_log_msg *); - -extern void nfnl_log_msg_set_seq(struct nfnl_log_msg *, uint32_t); -extern int nfnl_log_msg_test_seq(const struct nfnl_log_msg *); -extern uint32_t nfnl_log_msg_get_seq(const struct nfnl_log_msg *); - -extern void nfnl_log_msg_set_seq_global(struct nfnl_log_msg *, uint32_t); -extern int nfnl_log_msg_test_seq_global(const struct nfnl_log_msg *); -extern uint32_t nfnl_log_msg_get_seq_global(const struct nfnl_log_msg *); - -#ifdef __cplusplus -} -#endif - -#endif - diff --git a/hardware/wifi/libnl/include/libnl3/netlink/netfilter/netfilter.h b/hardware/wifi/libnl/include/libnl3/netlink/netfilter/netfilter.h deleted file mode 100644 index dd3589c0e5e4bc3a62edaf4fcf2c3a65d10c3a2e..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/netfilter/netfilter.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * netlink/netfilter/netfilter.h Netfilter generic functions - * - * 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) 2008 Patrick McHardy - */ - -#ifndef NETLINK_NETFILTER_H_ -#define NETLINK_NETFILTER_H_ - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -extern char * nfnl_verdict2str(unsigned int, char *, size_t); -extern unsigned int nfnl_str2verdict(const char *); - -extern char * nfnl_inet_hook2str(unsigned int, char *, size_t); -extern unsigned int nfnl_str2inet_hook(const char *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/netfilter/nfnl.h b/hardware/wifi/libnl/include/libnl3/netlink/netfilter/nfnl.h deleted file mode 100644 index 8da4ba16fbf90c6d7c806237b654a57c6daf4459..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/netfilter/nfnl.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * netlink/nfnl/nfnl.h Netfilter Netlink - * - * 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 - * Copyright (c) 2007 Philip Craig - * Copyright (c) 2007 Secure Computing Corporation - */ - -#ifndef NETLINK_NFNL_H_ -#define NETLINK_NFNL_H_ - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -#define NFNL_HDRLEN NLMSG_ALIGN(sizeof(struct nfgenmsg)) -#define NFNLMSG_TYPE(subsys, subtype) (((subsys) << 8) | (subtype)) - -extern int nfnl_connect(struct nl_sock *); - -extern uint8_t nfnlmsg_subsys(struct nlmsghdr *); -extern uint8_t nfnlmsg_subtype(struct nlmsghdr *); -extern uint8_t nfnlmsg_family(struct nlmsghdr *); -extern uint16_t nfnlmsg_res_id(struct nlmsghdr *); - -extern int nfnl_send_simple(struct nl_sock *, uint8_t, uint8_t, - int, uint8_t, uint16_t); -extern struct nl_msg * nfnlmsg_alloc_simple(uint8_t, uint8_t, int, - uint8_t, uint16_t); -extern int nfnlmsg_put(struct nl_msg *, uint32_t, uint32_t, - uint8_t, uint8_t, int, uint8_t, uint16_t); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/netfilter/queue.h b/hardware/wifi/libnl/include/libnl3/netlink/netfilter/queue.h deleted file mode 100644 index 664610db8c1d8a98838cc1e4c7818374de8a46dd..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/netfilter/queue.h +++ /dev/null @@ -1,90 +0,0 @@ -/* - * netlink/netfilter/queue.h Netfilter Queue - * - * 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) 2007, 2008 Patrick McHardy - */ - -#ifndef NETLINK_QUEUE_H_ -#define NETLINK_QUEUE_H_ - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -struct nl_sock; -struct nlmsghdr; -struct nfnl_queue; - -extern struct nl_object_ops queue_obj_ops; - -enum nfnl_queue_copy_mode { - NFNL_QUEUE_COPY_NONE, - NFNL_QUEUE_COPY_META, - NFNL_QUEUE_COPY_PACKET, -}; - -/* General */ -extern struct nl_sock * nfnl_queue_socket_alloc(void); - -extern struct nfnl_queue * nfnl_queue_alloc(void); - -extern void nfnl_queue_get(struct nfnl_queue *); -extern void nfnl_queue_put(struct nfnl_queue *); - -/* Attributes */ -extern void nfnl_queue_set_group(struct nfnl_queue *, uint16_t); -extern int nfnl_queue_test_group(const struct nfnl_queue *); -extern uint16_t nfnl_queue_get_group(const struct nfnl_queue *); - -extern void nfnl_queue_set_maxlen(struct nfnl_queue *, uint32_t); -extern int nfnl_queue_test_maxlen(const struct nfnl_queue *); -extern uint32_t nfnl_queue_get_maxlen(const struct nfnl_queue *); - -extern void nfnl_queue_set_copy_mode(struct nfnl_queue *, - enum nfnl_queue_copy_mode); -extern int nfnl_queue_test_copy_mode(const struct nfnl_queue *); -extern enum nfnl_queue_copy_mode nfnl_queue_get_copy_mode(const struct nfnl_queue *); - -extern char * nfnl_queue_copy_mode2str(enum nfnl_queue_copy_mode, - char *, size_t); -extern enum nfnl_queue_copy_mode nfnl_queue_str2copy_mode(const char *); - -extern void nfnl_queue_set_copy_range(struct nfnl_queue *, - uint32_t); -extern int nfnl_queue_test_copy_range(const struct nfnl_queue *); -extern uint32_t nfnl_queue_get_copy_range(const struct nfnl_queue *); - -extern int nfnl_queue_build_pf_bind(uint8_t, struct nl_msg **); -extern int nfnl_queue_pf_bind(struct nl_sock *, uint8_t); - -extern int nfnl_queue_build_pf_unbind(uint8_t, struct nl_msg **); -extern int nfnl_queue_pf_unbind(struct nl_sock *, uint8_t); - -extern int nfnl_queue_build_create_request(const struct nfnl_queue *, - struct nl_msg **); -extern int nfnl_queue_create(struct nl_sock *, - const struct nfnl_queue *); - -extern int nfnl_queue_build_change_request(const struct nfnl_queue *, - struct nl_msg **); -extern int nfnl_queue_change(struct nl_sock *, - const struct nfnl_queue *); - -extern int nfnl_queue_build_delete_request(const struct nfnl_queue *, - struct nl_msg **); -extern int nfnl_queue_delete(struct nl_sock *, - const struct nfnl_queue *); - -#ifdef __cplusplus -} -#endif - -#endif - diff --git a/hardware/wifi/libnl/include/libnl3/netlink/netfilter/queue_msg.h b/hardware/wifi/libnl/include/libnl3/netlink/netfilter/queue_msg.h deleted file mode 100644 index 9befee7c7db90152c2b6929c41c8d06a961977df..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/netfilter/queue_msg.h +++ /dev/null @@ -1,106 +0,0 @@ -/* - * netlink/netfilter/queue_msg.h Netfilter Queue Messages - * - * 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) 2007, 2008 Patrick McHardy - */ - -#ifndef NETLINK_QUEUE_MSG_H_ -#define NETLINK_QUEUE_MSG_H_ - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -struct nl_sock; -struct nlmsghdr; -struct nfnl_queue_msg; - -extern struct nl_object_ops queue_msg_obj_ops; - -/* General */ -extern struct nfnl_queue_msg * nfnl_queue_msg_alloc(void); -extern int nfnlmsg_queue_msg_parse(struct nlmsghdr *, - struct nfnl_queue_msg **); - -extern void nfnl_queue_msg_get(struct nfnl_queue_msg *); -extern void nfnl_queue_msg_put(struct nfnl_queue_msg *); - -extern void nfnl_queue_msg_set_group(struct nfnl_queue_msg *, uint16_t); -extern int nfnl_queue_msg_test_group(const struct nfnl_queue_msg *); -extern uint16_t nfnl_queue_msg_get_group(const struct nfnl_queue_msg *); - -extern void nfnl_queue_msg_set_family(struct nfnl_queue_msg *, uint8_t); -extern int nfnl_queue_msg_test_family(const struct nfnl_queue_msg *); -extern uint8_t nfnl_queue_msg_get_family(const struct nfnl_queue_msg *); - -extern void nfnl_queue_msg_set_packetid(struct nfnl_queue_msg *, uint32_t); -extern int nfnl_queue_msg_test_packetid(const struct nfnl_queue_msg *); -extern uint32_t nfnl_queue_msg_get_packetid(const struct nfnl_queue_msg *); - -extern void nfnl_queue_msg_set_hwproto(struct nfnl_queue_msg *, uint16_t); -extern int nfnl_queue_msg_test_hwproto(const struct nfnl_queue_msg *); -extern uint16_t nfnl_queue_msg_get_hwproto(const struct nfnl_queue_msg *); - -extern void nfnl_queue_msg_set_hook(struct nfnl_queue_msg *, uint8_t); -extern int nfnl_queue_msg_test_hook(const struct nfnl_queue_msg *); -extern uint8_t nfnl_queue_msg_get_hook(const struct nfnl_queue_msg *); - -extern void nfnl_queue_msg_set_mark(struct nfnl_queue_msg *, uint32_t); -extern int nfnl_queue_msg_test_mark(const struct nfnl_queue_msg *); -extern uint32_t nfnl_queue_msg_get_mark(const struct nfnl_queue_msg *); - -extern void nfnl_queue_msg_set_timestamp(struct nfnl_queue_msg *, - struct timeval *); -extern int nfnl_queue_msg_test_timestamp(const struct nfnl_queue_msg *); -extern const struct timeval * nfnl_queue_msg_get_timestamp(const struct nfnl_queue_msg *); - -extern void nfnl_queue_msg_set_indev(struct nfnl_queue_msg *, uint32_t); -extern int nfnl_queue_msg_test_indev(const struct nfnl_queue_msg *); -extern uint32_t nfnl_queue_msg_get_indev(const struct nfnl_queue_msg *); - -extern void nfnl_queue_msg_set_outdev(struct nfnl_queue_msg *, uint32_t); -extern int nfnl_queue_msg_test_outdev(const struct nfnl_queue_msg *); -extern uint32_t nfnl_queue_msg_get_outdev(const struct nfnl_queue_msg *); - -extern void nfnl_queue_msg_set_physindev(struct nfnl_queue_msg *, uint32_t); -extern int nfnl_queue_msg_test_physindev(const struct nfnl_queue_msg *); -extern uint32_t nfnl_queue_msg_get_physindev(const struct nfnl_queue_msg *); - -extern void nfnl_queue_msg_set_physoutdev(struct nfnl_queue_msg *, uint32_t); -extern int nfnl_queue_msg_test_physoutdev(const struct nfnl_queue_msg *); -extern uint32_t nfnl_queue_msg_get_physoutdev(const struct nfnl_queue_msg *); - -extern void nfnl_queue_msg_set_hwaddr(struct nfnl_queue_msg *, uint8_t *, int); -extern int nfnl_queue_msg_test_hwaddr(const struct nfnl_queue_msg *); -extern const uint8_t * nfnl_queue_msg_get_hwaddr(const struct nfnl_queue_msg *, int *); - -extern int nfnl_queue_msg_set_payload(struct nfnl_queue_msg *, uint8_t *, int); -extern int nfnl_queue_msg_test_payload(const struct nfnl_queue_msg *); -extern const void * nfnl_queue_msg_get_payload(const struct nfnl_queue_msg *, int *); - -extern void nfnl_queue_msg_set_verdict(struct nfnl_queue_msg *, - unsigned int); -extern int nfnl_queue_msg_test_verdict(const struct nfnl_queue_msg *); -extern unsigned int nfnl_queue_msg_get_verdict(const struct nfnl_queue_msg *); - -extern struct nl_msg * nfnl_queue_msg_build_verdict(const struct nfnl_queue_msg *); -extern int nfnl_queue_msg_send_verdict(struct nl_sock *, - const struct nfnl_queue_msg *); -extern int nfnl_queue_msg_send_verdict_batch(struct nl_sock *, - const struct nfnl_queue_msg *); -extern int nfnl_queue_msg_send_verdict_payload(struct nl_sock *, - const struct nfnl_queue_msg *, - const void *, unsigned ); -#ifdef __cplusplus -} -#endif - -#endif - diff --git a/hardware/wifi/libnl/include/libnl3/netlink/netlink-compat.h b/hardware/wifi/libnl/include/libnl3/netlink/netlink-compat.h deleted file mode 100644 index 17ec9fc8d1dfa8cd3b6dced43edaa9b44d83acda..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/netlink-compat.h +++ /dev/null @@ -1,50 +0,0 @@ -/* - * netlink/netlink-compat.h Netlink Compatability - * - * 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-2006 Thomas Graf - */ - -#ifndef NETLINK_COMPAT_H_ -#define NETLINK_COMPAT_H_ - -#if !defined _LINUX_SOCKET_H && !defined _BITS_SOCKADDR_H -typedef unsigned short sa_family_t; -#endif - -#ifndef IFNAMSIZ -/** Maximum length of a interface name */ -#define IFNAMSIZ 16 -#endif - -/* patch 2.4.x if_arp */ -#ifndef ARPHRD_INFINIBAND -#define ARPHRD_INFINIBAND 32 -#endif - -/* patch 2.4.x eth header file */ -#ifndef ETH_P_MPLS_UC -#define ETH_P_MPLS_UC 0x8847 -#endif - -#ifndef ETH_P_MPLS_MC -#define ETH_P_MPLS_MC 0x8848 -#endif - -#ifndef ETH_P_EDP2 -#define ETH_P_EDP2 0x88A2 -#endif - -#ifndef ETH_P_HDLC -#define ETH_P_HDLC 0x0019 -#endif - -#ifndef AF_LLC -#define AF_LLC 26 -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/netlink-kernel.h b/hardware/wifi/libnl/include/libnl3/netlink/netlink-kernel.h deleted file mode 100644 index f09051daf6a4c715d5a7bd5a69d01d91a5786e8c..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/netlink-kernel.h +++ /dev/null @@ -1,293 +0,0 @@ -#ifndef __NETLINK_KERNEL_H_ -#define __NETLINK_KERNEL_H_ - -#if 0 - -/* - * FIXME: Goal is to preseve the documentation but make it simple - * to keep linux/netlink.h in sync. Maybe use named documentation - * sections. - */ - -/** - * Netlink socket address - * @ingroup nl - */ -struct sockaddr_nl -{ - /** socket family (AF_NETLINK) */ - sa_family_t nl_family; - - /** Padding (unused) */ - unsigned short nl_pad; - - /** Unique process ID */ - uint32_t nl_pid; - - /** Multicast group subscriptions */ - uint32_t nl_groups; -}; - -/** - * @addtogroup msg - * @{ - */ - - -/** - * Netlink message header - */ -struct nlmsghdr -{ - /** Length of message including header and padding. */ - uint32_t nlmsg_len; - - /** Message type (content type) */ - uint16_t nlmsg_type; - - /** Message flags */ - uint16_t nlmsg_flags; - - /** Sequence number of message \see core_sk_seq_num. */ - uint32_t nlmsg_seq; - - /** Netlink port */ - uint32_t nlmsg_pid; -}; - -/** - * @name Standard message flags - * @{ - */ - -/** - * Must be set on all request messages (typically from user space to - * kernel space). - */ -#define NLM_F_REQUEST 1 - -/** - * Indicates the message is part of a multipart message terminated - * by NLMSG_DONE. - */ -#define NLM_F_MULTI 2 - -/** - * Request for an acknowledgment on success. - */ -#define NLM_F_ACK 4 - -/** - * Echo this request - */ -#define NLM_F_ECHO 8 - -/** @} */ - -/** - * @name Additional message flags for GET requests - * @{ - */ - -/** - * Return the complete table instead of a single entry. - */ -#define NLM_F_ROOT 0x100 - -/** - * Return all entries matching criteria passed in message content. - */ -#define NLM_F_MATCH 0x200 - -/** - * Return an atomic snapshot of the table being referenced. This - * may require special privileges because it has the potential to - * interrupt service in the FE for a longer time. - */ -#define NLM_F_ATOMIC 0x400 - -/** - * Dump all entries - */ -#define NLM_F_DUMP (NLM_F_ROOT|NLM_F_MATCH) - -/** @} */ - -/** - * @name Additional messsage flags for NEW requests - * @{ - */ - -/** - * Replace existing matching config object with this request. - */ -#define NLM_F_REPLACE 0x100 - -/** - * Don't replace the config object if it already exists. - */ -#define NLM_F_EXCL 0x200 - -/** - * Create config object if it doesn't already exist. - */ -#define NLM_F_CREATE 0x400 - -/** - * Add to the end of the object list. - */ -#define NLM_F_APPEND 0x800 - -/** @} */ - -/** - * @name Standard Message types - * @{ - */ - -/** - * No operation, message must be ignored - */ -#define NLMSG_NOOP 0x1 - -/** - * The message signals an error and the payload contains a nlmsgerr - * structure. This can be looked at as a NACK and typically it is - * from FEC to CPC. - */ -#define NLMSG_ERROR 0x2 - -/** - * Message terminates a multipart message. - */ -#define NLMSG_DONE 0x3 - -/** - * The message signals that data got lost - */ -#define NLMSG_OVERRUN 0x4 - -/** - * Lower limit of reserved message types - */ -#define NLMSG_MIN_TYPE 0x10 - -/** @} */ - -/** - * Netlink error message header - */ -struct nlmsgerr -{ - /** Error code (errno number) */ - int error; - - /** Original netlink message causing the error */ - struct nlmsghdr msg; -}; - -struct nl_pktinfo -{ - __u32 group; -}; - -/** - * Netlink alignment constant, all boundries within messages must be align to this. - * - * See \ref core_msg_fmt_align for more information on message alignment. - */ -#define NLMSG_ALIGNTO 4 - -/** - * Returns \p len properly aligned to NLMSG_ALIGNTO. - * - * See \ref core_msg_fmt_align for more information on message alignment. - */ -#define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) - -/** - * Length of a netlink message header including padding. - * - * See \ref core_msg_fmt_align for more information on message alignment. - */ -#define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr))) - -/** @} */ - -/** - * @addtogroup attr - * @{ - */ - -/* - */ - -/** - * Netlink attribute structure - * - * @code - * <------- NLA_HDRLEN ------> <-- NLA_ALIGN(payload)--> - * +---------------------+- - -+- - - - - - - - - -+- - -+ - * | Header | Pad | Payload | Pad | - * | (struct nlattr) | ing | | ing | - * +---------------------+- - -+- - - - - - - - - -+- - -+ - * <-------------- nlattr->nla_len --------------> - * @endcode - */ -struct nlattr { - /** - * Attribute length in bytes including header - */ - __u16 nla_len; - - /** - * Netlink attribute type - */ - __u16 nla_type; -}; - -/** - * @name Attribute Type Flags - * - * @code - * nla_type (16 bits) - * +---+---+-------------------------------+ - * | N | O | Attribute Type | - * +---+---+-------------------------------+ - * N := Carries nested attributes - * O := Payload stored in network byte order - * @endcode - * - * @note The N and O flag are mutually exclusive. - * - * @{ - */ - -/* - */ -#define NLA_F_NESTED (1 << 15) -#define NLA_F_NET_BYTEORDER (1 << 14) -#define NLA_TYPE_MASK ~(NLA_F_NESTED | NLA_F_NET_BYTEORDER) - -/** @} */ - -#define NLA_ALIGNTO 4 - -/** - * Returns \p len properly aligned to NLA_ALIGNTO. - * - * See \ref core_msg_fmt_align for more information on message alignment. - */ -#define NLA_ALIGN(len) (((len) + NLA_ALIGNTO - 1) & ~(NLA_ALIGNTO - 1)) - -/** - * Length of a netlink attribute header including padding. - * - * See \ref core_msg_fmt_align for more information on message alignment. - */ -#define NLA_HDRLEN ((int) NLA_ALIGN(sizeof(struct nlattr))) - -/** @} */ - -#endif -#endif /* __LINUX_NETLINK_H */ diff --git a/hardware/wifi/libnl/include/libnl3/netlink/netlink.h b/hardware/wifi/libnl/include/libnl3/netlink/netlink.h deleted file mode 100644 index 28dba06edd56cfcc18811c43680ebb13ce038807..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/netlink.h +++ /dev/null @@ -1,98 +0,0 @@ -/* - * netlink/netlink.h Netlink Interface - * - * 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-2013 Thomas Graf - */ - -#ifndef NETLINK_NETLINK_H_ -#define NETLINK_NETLINK_H_ - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -struct ucred; -struct nl_cache_ops; -struct nl_parser_param; -struct nl_object; -struct nl_sock; - -extern int nl_debug; -extern struct nl_dump_params nl_debug_dp; - -/* Connection Management */ -extern int nl_connect(struct nl_sock *, int); -extern void nl_close(struct nl_sock *); - -/* Send */ -extern int nl_sendto(struct nl_sock *, void *, size_t); -extern int nl_sendmsg(struct nl_sock *, struct nl_msg *, - struct msghdr *); -extern int nl_send(struct nl_sock *, struct nl_msg *); -extern int nl_send_iovec(struct nl_sock *, struct nl_msg *, - struct iovec *, unsigned); -extern void nl_complete_msg(struct nl_sock *, - struct nl_msg *); -extern void nl_auto_complete(struct nl_sock *, - struct nl_msg *); -extern int nl_send_auto(struct nl_sock *, struct nl_msg *); -extern int nl_send_auto_complete(struct nl_sock *, - struct nl_msg *); -extern int nl_send_sync(struct nl_sock *, struct nl_msg *); -extern int nl_send_simple(struct nl_sock *, int, int, - void *, size_t); - -/* Receive */ -extern int nl_recv(struct nl_sock *, - struct sockaddr_nl *, unsigned char **, - struct ucred **); - -extern int nl_recvmsgs(struct nl_sock *, struct nl_cb *); -extern int nl_recvmsgs_report(struct nl_sock *, struct nl_cb *); - -extern int nl_recvmsgs_default(struct nl_sock *); - -extern int nl_wait_for_ack(struct nl_sock *); - -extern int nl_pickup(struct nl_sock *, - int (*parser)(struct nl_cache_ops *, - struct sockaddr_nl *, - struct nlmsghdr *, - struct nl_parser_param *), - struct nl_object **); -/* Netlink Family Translations */ -extern char * nl_nlfamily2str(int, char *, size_t); -extern int nl_str2nlfamily(const char *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/object-api.h b/hardware/wifi/libnl/include/libnl3/netlink/object-api.h deleted file mode 100644 index 75f29cb59c30b1dfae820deed4fa9f0c437efd33..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/object-api.h +++ /dev/null @@ -1,19 +0,0 @@ -/* - * netlink/object-api.h Object API - * - * 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) 2013 Thomas Graf - */ - -#ifndef NETLINK_DUMMY_OBJECT_API_H_ -#define NETLINK_DUMMY_OBJECT_API_H_ - -#include -#include -#include - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/object.h b/hardware/wifi/libnl/include/libnl3/netlink/object.h deleted file mode 100644 index a95feda7b4db2ed8f82ee47acdb5b2ce33736b3c..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/object.h +++ /dev/null @@ -1,80 +0,0 @@ -/* - * netlink/object.c Generic Cacheable Object - * - * 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-2012 Thomas Graf - */ - -#ifndef NETLINK_OBJECT_H_ -#define NETLINK_OBJECT_H_ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -struct nl_cache; -struct nl_object; -struct nl_object_ops; - -#define OBJ_CAST(ptr) ((struct nl_object *) (ptr)) - -/* General */ -extern struct nl_object * nl_object_alloc(struct nl_object_ops *); -extern int nl_object_alloc_name(const char *, - struct nl_object **); -extern void nl_object_free(struct nl_object *); -extern struct nl_object * nl_object_clone(struct nl_object *obj); -extern int nl_object_update(struct nl_object *dst, - struct nl_object *src); -extern void nl_object_get(struct nl_object *); -extern void nl_object_put(struct nl_object *); -extern int nl_object_shared(struct nl_object *); -extern void nl_object_dump(struct nl_object *, - struct nl_dump_params *); -extern void nl_object_dump_buf(struct nl_object *, char *, size_t); -extern int nl_object_identical(struct nl_object *, - struct nl_object *); -extern uint32_t nl_object_diff(struct nl_object *, - struct nl_object *); -extern int nl_object_match_filter(struct nl_object *, - struct nl_object *); -extern char * nl_object_attrs2str(struct nl_object *, - uint32_t attrs, char *buf, - size_t); -extern char * nl_object_attr_list(struct nl_object *, - char *, size_t); -extern void nl_object_keygen(struct nl_object *, - uint32_t *, uint32_t); - -/* Marks */ -extern void nl_object_mark(struct nl_object *); -extern void nl_object_unmark(struct nl_object *); -extern int nl_object_is_marked(struct nl_object *); - -/* Access Functions */ -extern int nl_object_get_refcnt(struct nl_object *); -extern struct nl_cache * nl_object_get_cache(struct nl_object *); -extern const char * nl_object_get_type(const struct nl_object *); -extern int nl_object_get_msgtype(const struct nl_object *); -struct nl_object_ops * nl_object_get_ops(const struct nl_object *); -uint32_t nl_object_get_id_attrs(struct nl_object *obj); - - -static inline void * nl_object_priv(struct nl_object *obj) -{ - return obj; -} - - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/act/mirred.h b/hardware/wifi/libnl/include/libnl3/netlink/route/act/mirred.h deleted file mode 100644 index d65ed3788be615ed44fb24d203ef2a03c44d0385..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/act/mirred.h +++ /dev/null @@ -1,35 +0,0 @@ -/* - * netlink/route/cls/mirred.h mirred action - * - * 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) 2013 Cong Wang - */ - -#ifndef NETLINK_MIRRED_H_ -#define NETLINK_MIRRED_H_ - -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -extern int rtnl_mirred_set_action(struct rtnl_act *, int); -extern int rtnl_mirred_get_action(struct rtnl_act *); -extern int rtnl_mirred_set_ifindex(struct rtnl_act *, uint32_t); -extern uint32_t rtnl_mirred_get_ifindex(struct rtnl_act *); -extern int rtnl_mirred_set_policy(struct rtnl_act *, int); -extern int rtnl_mirred_get_policy(struct rtnl_act *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/action.h b/hardware/wifi/libnl/include/libnl3/netlink/route/action.h deleted file mode 100644 index 054bdd87b3d814ef20ee94ffee61da3824390b90..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/action.h +++ /dev/null @@ -1,46 +0,0 @@ -/* - * netlink/route/action.h Actions - * - * 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) 2013 Cong Wang - */ - -#ifndef NETLINK_ACTION_H_ -#define NETLINK_ACTION_H_ - -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -extern struct rtnl_act *rtnl_act_alloc(void); -extern void rtnl_act_get(struct rtnl_act *); -extern void rtnl_act_put(struct rtnl_act *); -extern int rtnl_act_build_add_request(struct rtnl_act *, int, - struct nl_msg **); -extern int rtnl_act_add(struct nl_sock *, struct rtnl_act *, int); - -extern int rtnl_act_build_change_request(struct rtnl_act *, int, - struct nl_msg **); -extern int rtnl_act_build_delete_request(struct rtnl_act *, int, - struct nl_msg **); -extern int rtnl_act_delete(struct nl_sock *, struct rtnl_act *, - int); -extern int rtnl_act_append(struct rtnl_act **, struct rtnl_act *); -extern int rtnl_act_remove(struct rtnl_act **, struct rtnl_act *); -extern int rtnl_act_fill(struct nl_msg *, int, struct rtnl_act *); -extern void rtnl_act_put_all(struct rtnl_act **); -extern int rtnl_act_parse(struct rtnl_act **, struct nlattr *); -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/addr.h b/hardware/wifi/libnl/include/libnl3/netlink/route/addr.h deleted file mode 100644 index 56c12e780d90968b80e0612e9395f624b1724943..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/addr.h +++ /dev/null @@ -1,98 +0,0 @@ -/* - * netlink/route/addr.c rtnetlink addr layer - * - * 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-2011 Thomas Graf - * Copyright (c) 2003-2006 Baruch Even , - * Mediatrix Telecom, inc. - */ - -#ifndef NETADDR_ADDR_H_ -#define NETADDR_ADDR_H_ - -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -struct rtnl_addr; - -/* General */ -extern struct rtnl_addr *rtnl_addr_alloc(void); -extern void rtnl_addr_put(struct rtnl_addr *); - -extern int rtnl_addr_alloc_cache(struct nl_sock *, struct nl_cache **); -extern struct rtnl_addr * - rtnl_addr_get(struct nl_cache *, int, struct nl_addr *); - -extern int rtnl_addr_build_add_request(struct rtnl_addr *, int, - struct nl_msg **); -extern int rtnl_addr_add(struct nl_sock *, struct rtnl_addr *, int); - -extern int rtnl_addr_build_delete_request(struct rtnl_addr *, int, - struct nl_msg **); -extern int rtnl_addr_delete(struct nl_sock *, - struct rtnl_addr *, int); - -extern char * rtnl_addr_flags2str(int, char *, size_t); -extern int rtnl_addr_str2flags(const char *); - -extern int rtnl_addr_set_label(struct rtnl_addr *, const char *); -extern char * rtnl_addr_get_label(struct rtnl_addr *); - -extern void rtnl_addr_set_ifindex(struct rtnl_addr *, int); -extern int rtnl_addr_get_ifindex(struct rtnl_addr *); - -extern void rtnl_addr_set_link(struct rtnl_addr *, struct rtnl_link *); -extern struct rtnl_link * - rtnl_addr_get_link(struct rtnl_addr *); - -extern void rtnl_addr_set_family(struct rtnl_addr *, int); -extern int rtnl_addr_get_family(struct rtnl_addr *); - -extern void rtnl_addr_set_prefixlen(struct rtnl_addr *, int); -extern int rtnl_addr_get_prefixlen(struct rtnl_addr *); - -extern void rtnl_addr_set_scope(struct rtnl_addr *, int); -extern int rtnl_addr_get_scope(struct rtnl_addr *); - -extern void rtnl_addr_set_flags(struct rtnl_addr *, unsigned int); -extern void rtnl_addr_unset_flags(struct rtnl_addr *, unsigned int); -extern unsigned int rtnl_addr_get_flags(struct rtnl_addr *); - -extern int rtnl_addr_set_local(struct rtnl_addr *, - struct nl_addr *); -extern struct nl_addr *rtnl_addr_get_local(struct rtnl_addr *); - -extern int rtnl_addr_set_peer(struct rtnl_addr *, struct nl_addr *); -extern struct nl_addr *rtnl_addr_get_peer(struct rtnl_addr *); - -extern int rtnl_addr_set_broadcast(struct rtnl_addr *, struct nl_addr *); -extern struct nl_addr *rtnl_addr_get_broadcast(struct rtnl_addr *); - -extern int rtnl_addr_set_multicast(struct rtnl_addr *, struct nl_addr *); -extern struct nl_addr *rtnl_addr_get_multicast(struct rtnl_addr *); - -extern int rtnl_addr_set_anycast(struct rtnl_addr *, struct nl_addr *); -extern struct nl_addr *rtnl_addr_get_anycast(struct rtnl_addr *); - -extern uint32_t rtnl_addr_get_valid_lifetime(struct rtnl_addr *); -extern void rtnl_addr_set_valid_lifetime(struct rtnl_addr *, uint32_t); -extern uint32_t rtnl_addr_get_preferred_lifetime(struct rtnl_addr *); -extern void rtnl_addr_set_preferred_lifetime(struct rtnl_addr *, uint32_t); -extern uint32_t rtnl_addr_get_create_time(struct rtnl_addr *); -extern uint32_t rtnl_addr_get_last_update_time(struct rtnl_addr *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/class.h b/hardware/wifi/libnl/include/libnl3/netlink/route/class.h deleted file mode 100644 index e73b60a7b709603efea2163387bc9f4c73918138..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/class.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * netlink/route/class.h Traffic Classes - * - * 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-2011 Thomas Graf - */ - -#ifndef NETLINK_CLASS_H_ -#define NETLINK_CLASS_H_ - -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -struct rtnl_class; - -extern struct rtnl_class * - rtnl_class_alloc(void); -extern void rtnl_class_put(struct rtnl_class *); - -extern int rtnl_class_alloc_cache(struct nl_sock *, int, - struct nl_cache **); -extern struct rtnl_class * - rtnl_class_get(struct nl_cache *, int, uint32_t); - -extern struct rtnl_qdisc * - rtnl_class_leaf_qdisc(struct rtnl_class *, - struct nl_cache *); - -extern int rtnl_class_build_add_request(struct rtnl_class *, int, - struct nl_msg **); -extern int rtnl_class_add(struct nl_sock *, struct rtnl_class *, - int); - -extern int rtnl_class_build_delete_request(struct rtnl_class *, - struct nl_msg **); -extern int rtnl_class_delete(struct nl_sock *, - struct rtnl_class *); - -/* deprecated functions */ -extern void rtnl_class_foreach_child(struct rtnl_class *, - struct nl_cache *, - void (*cb)(struct nl_object *, - void *), - void *) - __attribute__((deprecated)); -extern void rtnl_class_foreach_cls(struct rtnl_class *, - struct nl_cache *, - void (*cb)(struct nl_object *, - void *), - void *) - __attribute__((deprecated)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/classifier.h b/hardware/wifi/libnl/include/libnl3/netlink/route/classifier.h deleted file mode 100644 index a8c11798cadd3999c1eb2bc33e41beb56603f06a..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/classifier.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * netlink/route/classifier.h Classifiers - * - * 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-2011 Thomas Graf - */ - -#ifndef NETLINK_CLASSIFIER_H_ -#define NETLINK_CLASSIFIER_H_ - -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -extern struct rtnl_cls *rtnl_cls_alloc(void); -extern void rtnl_cls_put(struct rtnl_cls *); - -extern int rtnl_cls_alloc_cache(struct nl_sock *, int, uint32_t, - struct nl_cache **); - -extern int rtnl_cls_build_add_request(struct rtnl_cls *, int, - struct nl_msg **); -extern int rtnl_cls_add(struct nl_sock *, struct rtnl_cls *, int); -extern int rtnl_cls_change(struct nl_sock *, struct rtnl_cls *, int); - -extern int rtnl_cls_build_change_request(struct rtnl_cls *, int, - struct nl_msg **); -extern int rtnl_cls_build_delete_request(struct rtnl_cls *, int, - struct nl_msg **); -extern int rtnl_cls_delete(struct nl_sock *, struct rtnl_cls *, - int); - -extern void rtnl_cls_set_prio(struct rtnl_cls *, uint16_t); -extern uint16_t rtnl_cls_get_prio(struct rtnl_cls *); - -extern void rtnl_cls_set_protocol(struct rtnl_cls *, uint16_t); -extern uint16_t rtnl_cls_get_protocol(struct rtnl_cls *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/cls/basic.h b/hardware/wifi/libnl/include/libnl3/netlink/route/cls/basic.h deleted file mode 100644 index f00793ca6189bef254699bcbb979d848ef403682..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/cls/basic.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - * netlink/route/cls/basic.h Basic Classifier - * - * 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) 2008-2010 Thomas Graf - */ - -#ifndef NETLINK_BASIC_H_ -#define NETLINK_BASIC_H_ - -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -extern void rtnl_basic_set_target(struct rtnl_cls *, uint32_t); -extern uint32_t rtnl_basic_get_target(struct rtnl_cls *); -extern void rtnl_basic_set_ematch(struct rtnl_cls *, - struct rtnl_ematch_tree *); -extern struct rtnl_ematch_tree *rtnl_basic_get_ematch(struct rtnl_cls *); -extern int rtnl_basic_add_action(struct rtnl_cls *, struct rtnl_act *); -extern int rtnl_basic_del_action(struct rtnl_cls *, struct rtnl_act *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/cls/cgroup.h b/hardware/wifi/libnl/include/libnl3/netlink/route/cls/cgroup.h deleted file mode 100644 index 9cd484540b7bba338c5f51843fb281a1c3f540dc..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/cls/cgroup.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * netlink/route/cls/cgroup.h Control Groups Classifier - * - * 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) 2009-2010 Thomas Graf - */ - -#ifndef NETLINK_CLS_CGROUP_H_ -#define NETLINK_CLS_CGROUP_H_ - -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -extern void rtnl_cgroup_set_ematch(struct rtnl_cls *, - struct rtnl_ematch_tree *); -struct rtnl_ematch_tree * rtnl_cgroup_get_ematch(struct rtnl_cls *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/cls/ematch.h b/hardware/wifi/libnl/include/libnl3/netlink/route/cls/ematch.h deleted file mode 100644 index 13f9c323dfc71c80a5029f77850fabe2850b2629..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/cls/ematch.h +++ /dev/null @@ -1,95 +0,0 @@ -/* - * netlink/route/cls/ematch.h Extended Matches - * - * 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) 2008-2010 Thomas Graf - */ - -#ifndef NETLINK_CLS_EMATCH_H_ -#define NETLINK_CLS_EMATCH_H_ - -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/* FIXME: Should be moved to the kernel header at some point */ -#define RTNL_EMATCH_PROGID 2 - -struct rtnl_ematch; -struct rtnl_ematch_tree; - -/** - * Extended Match Operations - */ -struct rtnl_ematch_ops -{ - int eo_kind; - const char * eo_name; - size_t eo_minlen; - size_t eo_datalen; - - int (*eo_parse)(struct rtnl_ematch *, void *, size_t); - void (*eo_dump)(struct rtnl_ematch *, - struct nl_dump_params *); - int (*eo_fill)(struct rtnl_ematch *, struct nl_msg *); - void (*eo_free)(struct rtnl_ematch *); - struct nl_list_head eo_list; -}; - -extern int rtnl_ematch_register(struct rtnl_ematch_ops *); -extern struct rtnl_ematch_ops * rtnl_ematch_lookup_ops(int); -extern struct rtnl_ematch_ops * rtnl_ematch_lookup_ops_by_name(const char *); - -extern struct rtnl_ematch * rtnl_ematch_alloc(void); -extern int rtnl_ematch_add_child(struct rtnl_ematch *, - struct rtnl_ematch *); -extern void rtnl_ematch_unlink(struct rtnl_ematch *); -extern void rtnl_ematch_free(struct rtnl_ematch *); - -extern void * rtnl_ematch_data(struct rtnl_ematch *); -extern void rtnl_ematch_set_flags(struct rtnl_ematch *, - uint16_t); -extern void rtnl_ematch_unset_flags(struct rtnl_ematch *, - uint16_t); -extern uint16_t rtnl_ematch_get_flags(struct rtnl_ematch *); -extern int rtnl_ematch_set_ops(struct rtnl_ematch *, - struct rtnl_ematch_ops *); -extern int rtnl_ematch_set_kind(struct rtnl_ematch *, - uint16_t); -extern int rtnl_ematch_set_name(struct rtnl_ematch *, - const char *); - -extern struct rtnl_ematch_tree *rtnl_ematch_tree_alloc(uint16_t); -extern void rtnl_ematch_tree_free(struct rtnl_ematch_tree *); -extern void rtnl_ematch_tree_add(struct rtnl_ematch_tree *, - struct rtnl_ematch *); - -extern int rtnl_ematch_parse_attr(struct nlattr *, - struct rtnl_ematch_tree **); -extern int rtnl_ematch_fill_attr(struct nl_msg *, int, - struct rtnl_ematch_tree *); -extern void rtnl_ematch_tree_dump(struct rtnl_ematch_tree *, - struct nl_dump_params *); - - -extern int rtnl_ematch_parse_expr(const char *, char **, - struct rtnl_ematch_tree **); - -extern char * rtnl_ematch_offset2txt(uint8_t, uint16_t, - char *, size_t); -extern char * rtnl_ematch_opnd2txt(uint8_t, char *, size_t); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/cls/ematch/cmp.h b/hardware/wifi/libnl/include/libnl3/netlink/route/cls/ematch/cmp.h deleted file mode 100644 index 308113e08ebc39e48961606fcf289bc67e107755..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/cls/ematch/cmp.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * netlink/route/cls/ematch/cmp.h Simple Comparison - * - * 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) 2008-2010 Thomas Graf - */ - -#ifndef NETLINK_CLS_EMATCH_CMP_H_ -#define NETLINK_CLS_EMATCH_CMP_H_ - -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -extern void rtnl_ematch_cmp_set(struct rtnl_ematch *, - struct tcf_em_cmp *); -extern struct tcf_em_cmp * - rtnl_ematch_cmp_get(struct rtnl_ematch *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/cls/ematch/meta.h b/hardware/wifi/libnl/include/libnl3/netlink/route/cls/ematch/meta.h deleted file mode 100644 index 2fe58990431f48145139bd85bd360847410223b6..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/cls/ematch/meta.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * netlink/route/cls/ematch/meta.h Metadata Match - * - * 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) 2010 Thomas Graf - */ - -#ifndef NETLINK_CLS_EMATCH_META_H_ -#define NETLINK_CLS_EMATCH_META_H_ - -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -struct rtnl_meta_value; - -extern struct rtnl_meta_value * rtnl_meta_value_alloc_int(uint64_t); -extern struct rtnl_meta_value * rtnl_meta_value_alloc_var(void *, size_t); -extern struct rtnl_meta_value * rtnl_meta_value_alloc_id(uint8_t, uint16_t, - uint8_t, uint64_t); -extern void rtnl_meta_value_put(struct rtnl_meta_value *); - -extern void rtnl_ematch_meta_set_lvalue(struct rtnl_ematch *, - struct rtnl_meta_value *); -void rtnl_ematch_meta_set_rvalue(struct rtnl_ematch *, - struct rtnl_meta_value *); -extern void rtnl_ematch_meta_set_operand(struct rtnl_ematch *, uint8_t); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/cls/ematch/nbyte.h b/hardware/wifi/libnl/include/libnl3/netlink/route/cls/ematch/nbyte.h deleted file mode 100644 index 014c719b1ccc9ce894392a329617b941f1c70322..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/cls/ematch/nbyte.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - * netlink/route/cls/ematch/nbyte.h N-Byte Comparison - * - * 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) 2010 Thomas Graf - */ - -#ifndef NETLINK_CLS_EMATCH_NBYTE_H_ -#define NETLINK_CLS_EMATCH_NBYTE_H_ - -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -extern void rtnl_ematch_nbyte_set_offset(struct rtnl_ematch *, - uint8_t, uint16_t); -extern uint16_t rtnl_ematch_nbyte_get_offset(struct rtnl_ematch *); -extern uint8_t rtnl_ematch_nbyte_get_layer(struct rtnl_ematch *); -extern void rtnl_ematch_nbyte_set_pattern(struct rtnl_ematch *, - uint8_t *, size_t); -extern uint8_t * rtnl_ematch_nbyte_get_pattern(struct rtnl_ematch *); -extern size_t rtnl_ematch_nbyte_get_len(struct rtnl_ematch *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/cls/ematch/text.h b/hardware/wifi/libnl/include/libnl3/netlink/route/cls/ematch/text.h deleted file mode 100644 index e599abf05dff191af4a098bba5c44d716850fc59..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/cls/ematch/text.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * netlink/route/cls/ematch/text.h Text Search - * - * 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) 2010 Thomas Graf - */ - -#ifndef NETLINK_CLS_EMATCH_TEXT_H_ -#define NETLINK_CLS_EMATCH_TEXT_H_ - -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -extern void rtnl_ematch_text_set_from(struct rtnl_ematch *, - uint8_t, uint16_t); -extern uint16_t rtnl_ematch_text_get_from_offset(struct rtnl_ematch *); -extern uint8_t rtnl_ematch_text_get_from_layer(struct rtnl_ematch *); -extern void rtnl_ematch_text_set_to(struct rtnl_ematch *, - uint8_t, uint16_t); -extern uint16_t rtnl_ematch_text_get_to_offset(struct rtnl_ematch *); -extern uint8_t rtnl_ematch_text_get_to_layer(struct rtnl_ematch *); -extern void rtnl_ematch_text_set_pattern(struct rtnl_ematch *, - char *, size_t); -extern char * rtnl_ematch_text_get_pattern(struct rtnl_ematch *); -extern size_t rtnl_ematch_text_get_len(struct rtnl_ematch *); -extern void rtnl_ematch_text_set_algo(struct rtnl_ematch *, const char *); -extern char * rtnl_ematch_text_get_algo(struct rtnl_ematch *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/cls/fw.h b/hardware/wifi/libnl/include/libnl3/netlink/route/cls/fw.h deleted file mode 100644 index 2e1bade067cae823169aa0c0d7ce1ad3c4053502..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/cls/fw.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * netlink/route/cls/fw.h fw classifier - * - * 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-2006 Thomas Graf - * Copyright (c) 2006 Petr Gotthard - * Copyright (c) 2006 Siemens AG Oesterreich - */ - -#ifndef NETLINK_FW_H_ -#define NETLINK_FW_H_ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -extern int rtnl_fw_set_classid(struct rtnl_cls *, uint32_t); -extern int rtnl_fw_set_mask(struct rtnl_cls *, uint32_t); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/cls/police.h b/hardware/wifi/libnl/include/libnl3/netlink/route/cls/police.h deleted file mode 100644 index cd1efb079cd20783f73534e2a08df05cd6d216be..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/cls/police.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * netlink/route/cls/police.h Policer - * - * 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-2006 Thomas Graf - */ - -#ifndef NETLINK_CLS_POLICE_H_ -#define NETLINK_CLS_POLICE_H_ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -extern char * nl_police2str(int, char *, size_t); -extern int nl_str2police(const char *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/cls/u32.h b/hardware/wifi/libnl/include/libnl3/netlink/route/cls/u32.h deleted file mode 100644 index f35d37a4fc53074662d7a9a2ef033679b4e2e5c8..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/cls/u32.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * netlink/route/cls/u32.h u32 classifier - * - * 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-2006 Thomas Graf - */ - -#ifndef NETLINK_U32_H_ -#define NETLINK_U32_H_ - -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -extern void rtnl_u32_set_handle(struct rtnl_cls *, int, int, int); -extern int rtnl_u32_set_classid(struct rtnl_cls *, uint32_t); -extern int rtnl_u32_set_divisor(struct rtnl_cls *, uint32_t); -extern int rtnl_u32_set_link(struct rtnl_cls *, uint32_t); -extern int rtnl_u32_set_hashtable(struct rtnl_cls *, uint32_t); -extern int rtnl_u32_set_hashmask(struct rtnl_cls *, uint32_t, uint32_t); -extern int rtnl_u32_set_cls_terminal(struct rtnl_cls *); - -extern int rtnl_u32_set_flags(struct rtnl_cls *, int); -extern int rtnl_u32_add_key(struct rtnl_cls *, uint32_t, uint32_t, - int, int); -extern int rtnl_u32_get_key(struct rtnl_cls *, uint8_t, uint32_t *, uint32_t *, - int *, int *); -extern int rtnl_u32_add_key_uint8(struct rtnl_cls *, uint8_t, uint8_t, - int, int); -extern int rtnl_u32_add_key_uint16(struct rtnl_cls *, uint16_t, uint16_t, - int, int); -extern int rtnl_u32_add_key_uint32(struct rtnl_cls *, uint32_t, uint32_t, - int, int); -extern int rtnl_u32_add_key_in_addr(struct rtnl_cls *, const struct in_addr *, - uint8_t, int, int); -extern int rtnl_u32_add_key_in6_addr(struct rtnl_cls *, const struct in6_addr *, - uint8_t, int, int); -extern int rtnl_u32_add_action(struct rtnl_cls *, struct rtnl_act *); -extern int rtnl_u32_del_action(struct rtnl_cls *, struct rtnl_act *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/link.h b/hardware/wifi/libnl/include/libnl3/netlink/route/link.h deleted file mode 100644 index a7aa88b75584daa07afb7bc78de984c5177c816e..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/link.h +++ /dev/null @@ -1,254 +0,0 @@ -/* - * netlink/route/link.h Links (Interfaces) - * - * 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-2012 Thomas Graf - */ - -#ifndef NETLINK_LINK_H_ -#define NETLINK_LINK_H_ - -#include -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @struct rtnl_link link.h "netlink/route/link.h" - * @brief Link object - * @implements nl_object - * @ingroup link - * - * @copydoc private_struct - */ -struct rtnl_link; - -/** - * @ingroup link - */ -typedef enum { - RTNL_LINK_RX_PACKETS, /*!< Packets received */ - RTNL_LINK_TX_PACKETS, /*!< Packets sent */ - RTNL_LINK_RX_BYTES, /*!< Bytes received */ - RTNL_LINK_TX_BYTES, /*!< Bytes sent */ - RTNL_LINK_RX_ERRORS, /*!< Receive errors */ - RTNL_LINK_TX_ERRORS, /*!< Send errors */ - RTNL_LINK_RX_DROPPED, /*!< Received packets dropped */ - RTNL_LINK_TX_DROPPED, /*!< Packets dropped during transmit */ - RTNL_LINK_RX_COMPRESSED, /*!< Compressed packets received */ - RTNL_LINK_TX_COMPRESSED, /*!< Compressed packets sent */ - RTNL_LINK_RX_FIFO_ERR, /*!< Receive FIFO errors */ - RTNL_LINK_TX_FIFO_ERR, /*!< Send FIFO errors */ - RTNL_LINK_RX_LEN_ERR, /*!< Length errors */ - RTNL_LINK_RX_OVER_ERR, /*!< Over errors */ - RTNL_LINK_RX_CRC_ERR, /*!< CRC errors */ - RTNL_LINK_RX_FRAME_ERR, /*!< Frame errors */ - RTNL_LINK_RX_MISSED_ERR, /*!< Missed errors */ - RTNL_LINK_TX_ABORT_ERR, /*!< Aborted errors */ - RTNL_LINK_TX_CARRIER_ERR, /*!< Carrier errors */ - RTNL_LINK_TX_HBEAT_ERR, /*!< Heartbeat errors */ - RTNL_LINK_TX_WIN_ERR, /*!< Window errors */ - RTNL_LINK_COLLISIONS, /*!< Send collisions */ - RTNL_LINK_MULTICAST, /*!< Multicast */ - RTNL_LINK_IP6_INPKTS, /*!< IPv6 SNMP InReceives */ - RTNL_LINK_IP6_INHDRERRORS, /*!< IPv6 SNMP InHdrErrors */ - RTNL_LINK_IP6_INTOOBIGERRORS, /*!< IPv6 SNMP InTooBigErrors */ - RTNL_LINK_IP6_INNOROUTES, /*!< IPv6 SNMP InNoRoutes */ - RTNL_LINK_IP6_INADDRERRORS, /*!< IPv6 SNMP InAddrErrors */ - RTNL_LINK_IP6_INUNKNOWNPROTOS, /*!< IPv6 SNMP InUnknownProtos */ - RTNL_LINK_IP6_INTRUNCATEDPKTS, /*!< IPv6 SNMP InTruncatedPkts */ - RTNL_LINK_IP6_INDISCARDS, /*!< IPv6 SNMP InDiscards */ - RTNL_LINK_IP6_INDELIVERS, /*!< IPv6 SNMP InDelivers */ - RTNL_LINK_IP6_OUTFORWDATAGRAMS, /*!< IPv6 SNMP OutForwDatagrams */ - RTNL_LINK_IP6_OUTPKTS, /*!< IPv6 SNMP OutRequests */ - RTNL_LINK_IP6_OUTDISCARDS, /*!< IPv6 SNMP OutDiscards */ - RTNL_LINK_IP6_OUTNOROUTES, /*!< IPv6 SNMP OutNoRoutes */ - RTNL_LINK_IP6_REASMTIMEOUT, /*!< IPv6 SNMP ReasmTimeout */ - RTNL_LINK_IP6_REASMREQDS, /*!< IPv6 SNMP ReasmReqds */ - RTNL_LINK_IP6_REASMOKS, /*!< IPv6 SNMP ReasmOKs */ - RTNL_LINK_IP6_REASMFAILS, /*!< IPv6 SNMP ReasmFails */ - RTNL_LINK_IP6_FRAGOKS, /*!< IPv6 SNMP FragOKs */ - RTNL_LINK_IP6_FRAGFAILS, /*!< IPv6 SNMP FragFails */ - RTNL_LINK_IP6_FRAGCREATES, /*!< IPv6 SNMP FragCreates */ - RTNL_LINK_IP6_INMCASTPKTS, /*!< IPv6 SNMP InMcastPkts */ - RTNL_LINK_IP6_OUTMCASTPKTS, /*!< IPv6 SNMP OutMcastPkts */ - RTNL_LINK_IP6_INBCASTPKTS, /*!< IPv6 SNMP InBcastPkts */ - RTNL_LINK_IP6_OUTBCASTPKTS, /*!< IPv6 SNMP OutBcastPkts */ - RTNL_LINK_IP6_INOCTETS, /*!< IPv6 SNMP InOctets */ - RTNL_LINK_IP6_OUTOCTETS, /*!< IPv6 SNMP OutOctets */ - RTNL_LINK_IP6_INMCASTOCTETS, /*!< IPv6 SNMP InMcastOctets */ - RTNL_LINK_IP6_OUTMCASTOCTETS, /*!< IPv6 SNMP OutMcastOctets */ - RTNL_LINK_IP6_INBCASTOCTETS, /*!< IPv6 SNMP InBcastOctets */ - RTNL_LINK_IP6_OUTBCASTOCTETS, /*!< IPv6 SNMP OutBcastOctets */ - RTNL_LINK_ICMP6_INMSGS, /*!< ICMPv6 SNMP InMsgs */ - RTNL_LINK_ICMP6_INERRORS, /*!< ICMPv6 SNMP InErrors */ - RTNL_LINK_ICMP6_OUTMSGS, /*!< ICMPv6 SNMP OutMsgs */ - RTNL_LINK_ICMP6_OUTERRORS, /*!< ICMPv6 SNMP OutErrors */ - RTNL_LINK_ICMP6_CSUMERRORS, /*!< ICMPv6 SNMP InCsumErrors */ - RTNL_LINK_IP6_CSUMERRORS, /*!< IPv6 SNMP InCsumErrors */ - RTNL_LINK_IP6_NOECTPKTS, /*!< IPv6 SNMP InNoECTPkts */ - RTNL_LINK_IP6_ECT1PKTS, /*!< IPv6 SNMP InECT1Pkts */ - RTNL_LINK_IP6_ECT0PKTS, /*!< IPv6 SNMP InECT0Pkts */ - RTNL_LINK_IP6_CEPKTS, /*!< IPv6 SNMP InCEPkts */ - __RTNL_LINK_STATS_MAX, -} rtnl_link_stat_id_t; - -#define RTNL_LINK_STATS_MAX (__RTNL_LINK_STATS_MAX - 1) - -extern struct nla_policy rtln_link_policy[]; - -extern struct rtnl_link *rtnl_link_alloc(void); -extern void rtnl_link_put(struct rtnl_link *); - -extern int rtnl_link_alloc_cache(struct nl_sock *, int, struct nl_cache **); -extern struct rtnl_link *rtnl_link_get(struct nl_cache *, int); -extern struct rtnl_link *rtnl_link_get_by_name(struct nl_cache *, const char *); - - -extern int rtnl_link_build_add_request(struct rtnl_link *, int, - struct nl_msg **); -extern int rtnl_link_add(struct nl_sock *, struct rtnl_link *, int); -extern int rtnl_link_build_change_request(struct rtnl_link *, - struct rtnl_link *, int, - struct nl_msg **); -extern int rtnl_link_change(struct nl_sock *, struct rtnl_link *, - struct rtnl_link *, int); - -extern int rtnl_link_build_delete_request(const struct rtnl_link *, - struct nl_msg **); -extern int rtnl_link_delete(struct nl_sock *, const struct rtnl_link *); -extern int rtnl_link_build_get_request(int, const char *, - struct nl_msg **); -extern int rtnl_link_get_kernel(struct nl_sock *, int, const char *, - struct rtnl_link **); - -/* Name <-> Index Translations */ -extern char * rtnl_link_i2name(struct nl_cache *, int, char *, size_t); -extern int rtnl_link_name2i(struct nl_cache *, const char *); - -/* Name <-> Statistic Translations */ -extern char * rtnl_link_stat2str(int, char *, size_t); -extern int rtnl_link_str2stat(const char *); - -/* Link Flags Translations */ -extern char * rtnl_link_flags2str(int, char *, size_t); -extern int rtnl_link_str2flags(const char *); - -extern char * rtnl_link_operstate2str(uint8_t, char *, size_t); -extern int rtnl_link_str2operstate(const char *); - -extern char * rtnl_link_mode2str(uint8_t, char *, size_t); -extern int rtnl_link_str2mode(const char *); - -/* Carrier State Translations */ -extern char * rtnl_link_carrier2str(uint8_t, char *, size_t); -extern int rtnl_link_str2carrier(const char *); - -/* Access Functions */ -extern void rtnl_link_set_qdisc(struct rtnl_link *, const char *); -extern char * rtnl_link_get_qdisc(struct rtnl_link *); - -extern void rtnl_link_set_name(struct rtnl_link *, const char *); -extern char * rtnl_link_get_name(struct rtnl_link *); - -extern void rtnl_link_set_group(struct rtnl_link *, uint32_t); -extern uint32_t rtnl_link_get_group(struct rtnl_link *); - -extern void rtnl_link_set_flags(struct rtnl_link *, unsigned int); -extern void rtnl_link_unset_flags(struct rtnl_link *, unsigned int); -extern unsigned int rtnl_link_get_flags(struct rtnl_link *); - -extern void rtnl_link_set_mtu(struct rtnl_link *, unsigned int); -extern unsigned int rtnl_link_get_mtu(struct rtnl_link *); - -extern void rtnl_link_set_txqlen(struct rtnl_link *, unsigned int); -extern unsigned int rtnl_link_get_txqlen(struct rtnl_link *); - -extern void rtnl_link_set_ifindex(struct rtnl_link *, int); -extern int rtnl_link_get_ifindex(struct rtnl_link *); - -extern void rtnl_link_set_family(struct rtnl_link *, int); -extern int rtnl_link_get_family(struct rtnl_link *); - -extern void rtnl_link_set_arptype(struct rtnl_link *, unsigned int); -extern unsigned int rtnl_link_get_arptype(struct rtnl_link *); - -extern void rtnl_link_set_addr(struct rtnl_link *, struct nl_addr *); -extern struct nl_addr *rtnl_link_get_addr(struct rtnl_link *); - -extern void rtnl_link_set_broadcast(struct rtnl_link *, struct nl_addr *); -extern struct nl_addr *rtnl_link_get_broadcast(struct rtnl_link *); - -extern void rtnl_link_set_link(struct rtnl_link *, int); -extern int rtnl_link_get_link(struct rtnl_link *); - -extern void rtnl_link_set_master(struct rtnl_link *, int); -extern int rtnl_link_get_master(struct rtnl_link *); - -extern void rtnl_link_set_carrier(struct rtnl_link *, uint8_t); -extern uint8_t rtnl_link_get_carrier(struct rtnl_link *); - -extern void rtnl_link_set_operstate(struct rtnl_link *, uint8_t); -extern uint8_t rtnl_link_get_operstate(struct rtnl_link *); - -extern void rtnl_link_set_linkmode(struct rtnl_link *, uint8_t); -extern uint8_t rtnl_link_get_linkmode(struct rtnl_link *); - -extern const char * rtnl_link_get_ifalias(struct rtnl_link *); -extern void rtnl_link_set_ifalias(struct rtnl_link *, const char *); - -extern int rtnl_link_get_num_vf(struct rtnl_link *, uint32_t *); - -extern uint64_t rtnl_link_get_stat(struct rtnl_link *, rtnl_link_stat_id_t); -extern int rtnl_link_set_stat(struct rtnl_link *, rtnl_link_stat_id_t, - const uint64_t); - -extern int rtnl_link_set_type(struct rtnl_link *, const char *); -extern char * rtnl_link_get_type(struct rtnl_link *); - -extern void rtnl_link_set_promiscuity(struct rtnl_link *, uint32_t); -extern uint32_t rtnl_link_get_promiscuity(struct rtnl_link *); - -extern void rtnl_link_set_num_tx_queues(struct rtnl_link *, uint32_t); -extern uint32_t rtnl_link_get_num_tx_queues(struct rtnl_link *); - -extern void rtnl_link_set_num_rx_queues(struct rtnl_link *, uint32_t); -extern uint32_t rtnl_link_get_num_rx_queues(struct rtnl_link *); - -extern struct nl_data * rtnl_link_get_phys_port_id(struct rtnl_link *); - -extern void rtnl_link_set_ns_fd(struct rtnl_link *, int); -extern int rtnl_link_get_ns_fd(struct rtnl_link *); -extern void rtnl_link_set_ns_pid(struct rtnl_link *, pid_t); -extern pid_t rtnl_link_get_ns_pid(struct rtnl_link *); - -extern int rtnl_link_enslave_ifindex(struct nl_sock *, int, int); -extern int rtnl_link_enslave(struct nl_sock *, struct rtnl_link *, - struct rtnl_link *); -extern int rtnl_link_release_ifindex(struct nl_sock *, int); -extern int rtnl_link_release(struct nl_sock *, struct rtnl_link *); -extern int rtnl_link_fill_info(struct nl_msg *, struct rtnl_link *); -extern int rtnl_link_info_parse(struct rtnl_link *, struct nlattr **); - - -/* deprecated */ -extern int rtnl_link_set_info_type(struct rtnl_link *, const char *) __attribute__((deprecated)); -extern char * rtnl_link_get_info_type(struct rtnl_link *) __attribute__((deprecated)); -extern void rtnl_link_set_weight(struct rtnl_link *, unsigned int) __attribute__((deprecated)); -extern unsigned int rtnl_link_get_weight(struct rtnl_link *) __attribute__((deprecated)); - - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/link/api.h b/hardware/wifi/libnl/include/libnl3/netlink/route/link/api.h deleted file mode 100644 index 03b1e5e5da53e8b22663cf868ded9f2e14705d19..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/link/api.h +++ /dev/null @@ -1,20 +0,0 @@ -/* - * netlink/route/link/api.h Link Modules API - * - * 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) 2013 Thomas Graf - */ - -#ifndef NETLINK_DUMMY_LINK_API_H_ -#define NETLINK_DUMMY_LINK_API_H_ - -#include -#include - -#warning "You are including a deprecated header file, include ." - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/link/bonding.h b/hardware/wifi/libnl/include/libnl3/netlink/route/link/bonding.h deleted file mode 100644 index 5c34662df7b3c0e8cae5ab90a495674941542723..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/link/bonding.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * netlink/route/link/bonding.h Bonding Interface - * - * 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) 2011-2013 Thomas Graf - */ - -#ifndef NETLINK_LINK_BONDING_H_ -#define NETLINK_LINK_BONDING_H_ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -extern struct rtnl_link *rtnl_link_bond_alloc(void); - -extern int rtnl_link_bond_add(struct nl_sock *, const char *, - struct rtnl_link *); - -extern int rtnl_link_bond_enslave_ifindex(struct nl_sock *, int, int); -extern int rtnl_link_bond_enslave(struct nl_sock *, struct rtnl_link *, - struct rtnl_link *); - -extern int rtnl_link_bond_release_ifindex(struct nl_sock *, int); -extern int rtnl_link_bond_release(struct nl_sock *, struct rtnl_link *); - -#ifdef __cplusplus -} -#endif - -#endif - diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/link/bridge.h b/hardware/wifi/libnl/include/libnl3/netlink/route/link/bridge.h deleted file mode 100644 index 16a4505f8b74cb0450e438a2e64ef15676aa3cd8..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/link/bridge.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * netlink/route/link/bridge.h Bridge - * - * 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) 2013 Thomas Graf - */ - -#ifndef NETLINK_LINK_BRIDGE_H_ -#define NETLINK_LINK_BRIDGE_H_ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * Bridge flags - * @ingroup bridge - */ -enum rtnl_link_bridge_flags { - RTNL_BRIDGE_HAIRPIN_MODE = 0x0001, - RTNL_BRIDGE_BPDU_GUARD = 0x0002, - RTNL_BRIDGE_ROOT_BLOCK = 0x0004, - RTNL_BRIDGE_FAST_LEAVE = 0x0008, -}; - -extern struct rtnl_link *rtnl_link_bridge_alloc(void); - -extern int rtnl_link_is_bridge(struct rtnl_link *); -extern int rtnl_link_bridge_has_ext_info(struct rtnl_link *); - -extern int rtnl_link_bridge_set_port_state(struct rtnl_link *, uint8_t ); -extern int rtnl_link_bridge_get_port_state(struct rtnl_link *); - -extern int rtnl_link_bridge_set_priority(struct rtnl_link *, uint16_t); -extern int rtnl_link_bridge_get_priority(struct rtnl_link *); - -extern int rtnl_link_bridge_set_cost(struct rtnl_link *, uint32_t); -extern int rtnl_link_bridge_get_cost(struct rtnl_link *, uint32_t *); - -extern int rtnl_link_bridge_unset_flags(struct rtnl_link *, unsigned int); -extern int rtnl_link_bridge_set_flags(struct rtnl_link *, unsigned int); -extern int rtnl_link_bridge_get_flags(struct rtnl_link *); - -extern char * rtnl_link_bridge_flags2str(int, char *, size_t); -extern int rtnl_link_bridge_str2flags(const char *); - -extern int rtnl_link_bridge_add(struct nl_sock *sk, const char *name); -#ifdef __cplusplus -} -#endif - -#endif - diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/link/can.h b/hardware/wifi/libnl/include/libnl3/netlink/route/link/can.h deleted file mode 100644 index 61c9f47e8a29549a751ae411bbc5f0879af2041f..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/link/can.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * netlink/route/link/can.h CAN interface - * - * 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) 2012 Benedikt Spranger - */ - -#ifndef NETLINK_LINK_CAN_H_ -#define NETLINK_LINK_CAN_H_ - -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -extern int rtnl_link_is_can(struct rtnl_link *link); - -extern char *rtnl_link_can_ctrlmode2str(int, char *, size_t); -extern int rtnl_link_can_str2ctrlmode(const char *); - -extern int rtnl_link_can_restart(struct rtnl_link *); -extern int rtnl_link_can_freq(struct rtnl_link *, uint32_t *); -extern int rtnl_link_can_state(struct rtnl_link *, uint32_t *); - -extern int rtnl_link_can_berr_rx(struct rtnl_link *); -extern int rtnl_link_can_berr_tx(struct rtnl_link *); -extern int rtnl_link_can_berr(struct rtnl_link *, struct can_berr_counter *); - -extern int rtnl_link_can_get_bt_const(struct rtnl_link *, - struct can_bittiming_const *); -extern int rtnl_link_can_get_bittiming(struct rtnl_link *, - struct can_bittiming *); -extern int rtnl_link_can_set_bittiming(struct rtnl_link *, - struct can_bittiming *); - -extern int rtnl_link_can_get_bitrate(struct rtnl_link *, uint32_t *); -extern int rtnl_link_can_set_bitrate(struct rtnl_link *, uint32_t); - -extern int rtnl_link_can_get_sample_point(struct rtnl_link *, uint32_t *); -extern int rtnl_link_can_set_sample_point(struct rtnl_link *, uint32_t); - -extern int rtnl_link_can_get_restart_ms(struct rtnl_link *, uint32_t *); -extern int rtnl_link_can_set_restart_ms(struct rtnl_link *, uint32_t); - -extern int rtnl_link_can_get_ctrlmode(struct rtnl_link *, uint32_t *); -extern int rtnl_link_can_set_ctrlmode(struct rtnl_link *, uint32_t); -extern int rtnl_link_can_unset_ctrlmode(struct rtnl_link *, uint32_t); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/link/inet.h b/hardware/wifi/libnl/include/libnl3/netlink/route/link/inet.h deleted file mode 100644 index 506542f6c74870ee681d0e122b49ad6129ce4ba0..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/link/inet.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - * netlink/route/link/inet.h INET Link Module - * - * 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) 2010 Thomas Graf - */ - -#ifndef NETLINK_LINK_INET_H_ -#define NETLINK_LINK_INET_H_ - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -extern const char * rtnl_link_inet_devconf2str(int, char *, size_t); -extern int rtnl_link_inet_str2devconf(const char *); - -extern int rtnl_link_inet_get_conf(struct rtnl_link *, - const unsigned int, uint32_t *); -extern int rtnl_link_inet_set_conf(struct rtnl_link *, - const unsigned int, uint32_t); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/link/info-api.h b/hardware/wifi/libnl/include/libnl3/netlink/route/link/info-api.h deleted file mode 100644 index 1087ad48d1a47c97284872d7fc235c4d93960cbb..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/link/info-api.h +++ /dev/null @@ -1,20 +0,0 @@ -/* - * netlink/route/link/info-api.h Link Modules API - * - * 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) 2013 Thomas Graf - */ - -#ifndef NETLINK_DUMMY_LINK_INFO_API_H_ -#define NETLINK_DUMMY_LINK_INFO_API_H_ - -#include -#include - -#warning "You are including a deprecated header file, include ." - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/link/ip6tnl.h b/hardware/wifi/libnl/include/libnl3/netlink/route/link/ip6tnl.h deleted file mode 100644 index 7e0c295859adb1668f7d8c06aed7f5d4eaeb4b0a..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/link/ip6tnl.h +++ /dev/null @@ -1,56 +0,0 @@ -/* - * netlink/route/link/ip6tnl.h IP6TNL interface - * - * 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) 2014 Susant Sahani - */ - -#ifndef NETLINK_LINK_IP6TNL_H_ -#define NETLINK_LINK_IP6TNL_H_ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - extern struct rtnl_link *rtnl_link_ip6_tnl_alloc(void); - extern int rtnl_link_ip6_tnl_add(struct nl_sock *sk, const char *name); - - extern int rtnl_link_ip6_tnl_set_link(struct rtnl_link *link, uint32_t index); - extern uint32_t rtnl_link_ip6_tnl_get_link(struct rtnl_link *link); - - extern int rtnl_link_ip6_tnl_set_local(struct rtnl_link *link, struct in6_addr *); - extern int rtnl_link_ip6_tnl_get_local(struct rtnl_link *link, struct in6_addr *addr); - - extern int rtnl_link_ip6_tnl_set_remote(struct rtnl_link *link, struct in6_addr *); - extern int rtnl_link_ip6_tnl_get_remote(struct rtnl_link *link, struct in6_addr *); - - extern int rtnl_link_ip6_tnl_set_ttl(struct rtnl_link *link, uint8_t ttl); - extern uint8_t rtnl_link_ip6_tnl_get_ttl(struct rtnl_link *link); - - extern int rtnl_link_ip6_tnl_set_tos(struct rtnl_link *link, uint8_t tos); - extern uint8_t rtnl_link_ip6_tnl_get_tos(struct rtnl_link *link); - - extern int rtnl_link_ip6_tnl_set_encaplimit(struct rtnl_link *link, uint8_t encap_limit); - extern uint8_t rtnl_link_ip6_tnl_get_encaplimit(struct rtnl_link *link); - - extern int rtnl_link_ip6_tnl_set_flags(struct rtnl_link *link, uint32_t flags); - extern uint32_t rtnl_link_ip6_tnl_get_flags(struct rtnl_link *link); - - extern uint32_t rtnl_link_ip6_tnl_get_flowinfo(struct rtnl_link *link); - extern int rtnl_link_ip6_tnl_set_flowinfo(struct rtnl_link *link, uint32_t flowinfo); - - extern int rtnl_link_ip6_tnl_set_proto(struct rtnl_link *link, uint8_t proto); - extern uint8_t rtnl_link_ip6_tnl_get_proto(struct rtnl_link *link); - -#ifdef _cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/link/ipgre.h b/hardware/wifi/libnl/include/libnl3/netlink/route/link/ipgre.h deleted file mode 100644 index 5a0a295abc83e1904cb327c77faac3ac62c3cb73..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/link/ipgre.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * netlink/route/link/ip_gre.h IPGRE interface - * - * 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) 2014 Susant Sahani - */ - -#ifndef NETLINK_LINK_IPGRE_H_ -#define NETLINK_LINK_IPGRE_H_ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - extern struct rtnl_link *rtnl_link_ipgre_alloc(void); - extern int rtnl_link_ipgre_add(struct nl_sock *sk, const char *name); - - extern int rtnl_link_ipgre_set_link(struct rtnl_link *link, uint32_t index); - extern uint32_t rtnl_link_ipgre_get_link(struct rtnl_link *link); - - extern int rtnl_link_ipgre_set_iflags(struct rtnl_link *link, uint16_t iflags); - extern uint16_t rtnl_link_ipgre_get_iflags(struct rtnl_link *link); - - extern int rtnl_link_ipgre_set_oflags(struct rtnl_link *link, uint16_t oflags); - extern uint16_t rtnl_link_ipgre_get_oflags(struct rtnl_link *link); - - extern int rtnl_link_ipgre_set_ikey(struct rtnl_link *link, uint32_t ikey); - extern uint32_t rtnl_link_ipgre_get_ikey(struct rtnl_link *link); - - extern int rtnl_link_ipgre_set_okey(struct rtnl_link *link, uint32_t okey); - extern uint32_t rtnl_link_ipgre_get_okey(struct rtnl_link *link); - - extern int rtnl_link_ipgre_set_local(struct rtnl_link *link, uint32_t addr); - extern uint32_t rtnl_link_ipgre_get_local(struct rtnl_link *link); - - extern int rtnl_link_ipgre_set_remote(struct rtnl_link *link, uint32_t addr); - extern uint32_t rtnl_link_ipgre_get_remote(struct rtnl_link *link); - - extern int rtnl_link_ipgre_set_ttl(struct rtnl_link *link, uint8_t ttl); - extern uint8_t rtnl_link_ipgre_get_ttl(struct rtnl_link *link); - - extern int rtnl_link_ipgre_set_tos(struct rtnl_link *link, uint8_t tos); - extern uint8_t rtnl_link_ipgre_get_tos(struct rtnl_link *link); - - extern int rtnl_link_ipgre_set_pmtudisc(struct rtnl_link *link, uint8_t pmtudisc); - extern uint8_t rtnl_link_ipgre_get_pmtudisc(struct rtnl_link *link); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/link/ipip.h b/hardware/wifi/libnl/include/libnl3/netlink/route/link/ipip.h deleted file mode 100644 index ccadb8740395388a10f4b5e3eeded70adcbc1610..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/link/ipip.h +++ /dev/null @@ -1,47 +0,0 @@ -/* - * netlink/route/link/ipip.h IPIP interface - * - * 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) 2014 Susant Sahani - */ - -#ifndef NETLINK_LINK_IPIP_H_ -#define NETLINK_LINK_IPIP_H_ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - extern struct rtnl_link *rtnl_link_ipip_alloc(void); - extern int rtnl_link_ipip_add(struct nl_sock *sk, const char *name); - - extern uint32_t rtnl_link_ipip_get_link(struct rtnl_link *link); - extern int rtnl_link_ipip_set_link(struct rtnl_link *link, uint32_t index); - - extern int rtnl_link_ipip_set_local(struct rtnl_link *link, uint32_t addr); - extern uint32_t rtnl_link_ipip_get_local(struct rtnl_link *link); - - extern int rtnl_link_ipip_set_remote(struct rtnl_link *link, uint32_t addr); - extern uint32_t rtnl_link_ipip_get_remote(struct rtnl_link *link); - - extern int rtnl_link_ipip_set_ttl(struct rtnl_link *link, uint8_t ttl); - extern uint8_t rtnl_link_ipip_get_ttl(struct rtnl_link *link); - - extern int rtnl_link_ipip_set_tos(struct rtnl_link *link, uint8_t tos); - extern uint8_t rtnl_link_ipip_get_tos(struct rtnl_link *link); - - extern int rtnl_link_ipip_set_pmtudisc(struct rtnl_link *link, uint8_t pmtudisc); - extern uint8_t rtnl_link_ipip_get_pmtudisc(struct rtnl_link *link); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/link/ipvti.h b/hardware/wifi/libnl/include/libnl3/netlink/route/link/ipvti.h deleted file mode 100644 index a3e7bbad3bd4ac03957b8084fe6ea0f0155f4cef..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/link/ipvti.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * netlink/route/link/ipvti.h IPVTI interface - * - * 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) 2014 Susant Sahani - */ - -#ifndef NETLINK_LINK_IPVTI_H_ -#define NETLINK_LINK_IPVTI_H_ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - extern struct rtnl_link *rtnl_link_ipvti_alloc(void); - extern int rtnl_link_ipvti_add(struct nl_sock *sk, const char *name); - - extern int rtnl_link_ipvti_set_link(struct rtnl_link *link, uint32_t index); - extern uint32_t rtnl_link_ipvti_get_link(struct rtnl_link *link); - - extern int rtnl_link_ipvti_set_ikey(struct rtnl_link *link, uint32_t ikey); - extern uint32_t rtnl_link_get_ikey(struct rtnl_link *link); - - extern int rtnl_link_ipvti_set_okey(struct rtnl_link *link, uint32_t okey); - extern uint32_t rtnl_link_get_okey(struct rtnl_link *link); - - extern int rtnl_link_ipvti_set_local(struct rtnl_link *link, uint32_t addr); - extern uint32_t rtnl_link_get_local(struct rtnl_link *link); - - extern int rtnl_link_ipvti_set_remote(struct rtnl_link *link, uint32_t addr); - extern uint32_t rtnl_link_get_remote(struct rtnl_link *link); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/link/macvlan.h b/hardware/wifi/libnl/include/libnl3/netlink/route/link/macvlan.h deleted file mode 100644 index 2207c5343e52c8363f13c1fb5f7faaab858c2b42..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/link/macvlan.h +++ /dev/null @@ -1,46 +0,0 @@ -/* - * netlink/route/link/macvlan.h MACVLAN interface - * - * 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) 2013 Michael Braun - */ - -#ifndef NETLINK_LINK_MACVLAN_H_ -#define NETLINK_LINK_MACVLAN_H_ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -extern struct rtnl_link *rtnl_link_macvlan_alloc(void); - -extern int rtnl_link_is_macvlan(struct rtnl_link *); - -extern char * rtnl_link_macvlan_mode2str(int, char *, size_t); -extern int rtnl_link_macvlan_str2mode(const char *); - -extern char * rtnl_link_macvlan_flags2str(int, char *, size_t); -extern int rtnl_link_macvlan_str2flags(const char *); - -extern int rtnl_link_macvlan_set_mode(struct rtnl_link *, - uint32_t); -extern uint32_t rtnl_link_macvlan_get_mode(struct rtnl_link *); - -extern int rtnl_link_macvlan_set_flags(struct rtnl_link *, - uint16_t); -extern int rtnl_link_macvlan_unset_flags(struct rtnl_link *, - uint16_t); -extern uint16_t rtnl_link_macvlan_get_flags(struct rtnl_link *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/link/sit.h b/hardware/wifi/libnl/include/libnl3/netlink/route/link/sit.h deleted file mode 100644 index 84dc44aaa84656f816190f64cae877c90d405879..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/link/sit.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * netlink/route/link/sit.h SIT interface - * - * 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) 2014 Susant Sahani - */ - -#ifndef NETLINK_LINK_SIT_H_ -#define NETLINK_LINK_SIT_H_ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - - extern struct rtnl_link *rtnl_link_sit_alloc(void); - extern int rtnl_link_sit_add(struct nl_sock *sk, const char *name); - - extern int rtnl_link_sit_set_link(struct rtnl_link *link, uint32_t index); - extern uint32_t rtnl_link_sit_get_link(struct rtnl_link *link); - - extern int rtnl_link_sit_set_local(struct rtnl_link *link, uint32_t addr); - extern uint32_t rtnl_link_get_sit_local(struct rtnl_link *link); - - extern int rtnl_link_sit_set_remote(struct rtnl_link *link, uint32_t addr); - extern uint32_t rtnl_link_sit_get_remote(struct rtnl_link *link); - - extern int rtnl_link_sit_set_ttl(struct rtnl_link *link, uint8_t ttl); - extern uint8_t rtnl_link_sit_get_ttl(struct rtnl_link *link); - - extern int rtnl_link_sit_set_tos(struct rtnl_link *link, uint8_t tos); - extern uint8_t rtnl_link_sit_get_tos(struct rtnl_link *link); - - extern int rtnl_link_sit_set_pmtudisc(struct rtnl_link *link, uint8_t pmtudisc); - extern uint8_t rtnl_link_sit_get_pmtudisc(struct rtnl_link *link); - - extern int rtnl_link_sit_set_flags(struct rtnl_link *link, uint16_t flags); - extern uint16_t rtnl_link_sit_get_flags(struct rtnl_link *link); - - int rtnl_link_sit_set_proto(struct rtnl_link *link, uint8_t proto); - uint8_t rtnl_link_get_proto(struct rtnl_link *link); - -#ifdef _cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/link/veth.h b/hardware/wifi/libnl/include/libnl3/netlink/route/link/veth.h deleted file mode 100644 index 35c2345c5c4cf528fb4caadc9f470f41cd5369ce..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/link/veth.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - * netlink/route/link/veth.h VETH interface - * - * 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) 2013 Cong Wang - */ - -#ifndef NETLINK_LINK_VETH_H_ -#define NETLINK_LINK_VETH_H_ - -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -extern struct rtnl_link *rtnl_link_veth_alloc(void); -extern void rtnl_link_veth_release(struct rtnl_link *); - -extern int rtnl_link_is_veth(struct rtnl_link *); - -extern struct rtnl_link *rtnl_link_veth_get_peer(struct rtnl_link *); -extern int rtnl_link_veth_add(struct nl_sock *sock, const char *name, - const char *peer, pid_t pid); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/link/vlan.h b/hardware/wifi/libnl/include/libnl3/netlink/route/link/vlan.h deleted file mode 100644 index 4ec751e5eaeb44a67d95b2156c505889961bc35e..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/link/vlan.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * netlink/route/link/vlan.h VLAN interface - * - * 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-2013 Thomas Graf - */ - -#ifndef NETLINK_LINK_VLAN_H_ -#define NETLINK_LINK_VLAN_H_ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -struct vlan_map -{ - uint32_t vm_from; - uint32_t vm_to; -}; - -#define VLAN_PRIO_MAX 7 - -extern struct rtnl_link *rtnl_link_vlan_alloc(void); - -extern int rtnl_link_is_vlan(struct rtnl_link *); - -extern char * rtnl_link_vlan_flags2str(int, char *, size_t); -extern int rtnl_link_vlan_str2flags(const char *); - -extern int rtnl_link_vlan_set_protocol(struct rtnl_link *link, uint16_t); -extern int rtnl_link_vlan_get_protocol(struct rtnl_link *link); - -extern int rtnl_link_vlan_set_id(struct rtnl_link *, uint16_t); -extern int rtnl_link_vlan_get_id(struct rtnl_link *); - -extern int rtnl_link_vlan_set_flags(struct rtnl_link *, - unsigned int); -extern int rtnl_link_vlan_unset_flags(struct rtnl_link *, - unsigned int); -extern int rtnl_link_vlan_get_flags(struct rtnl_link *); - -extern int rtnl_link_vlan_set_ingress_map(struct rtnl_link *, - int, uint32_t); -extern uint32_t * rtnl_link_vlan_get_ingress_map(struct rtnl_link *); - -extern int rtnl_link_vlan_set_egress_map(struct rtnl_link *, - uint32_t, int); -extern struct vlan_map *rtnl_link_vlan_get_egress_map(struct rtnl_link *, - int *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/link/vxlan.h b/hardware/wifi/libnl/include/libnl3/netlink/route/link/vxlan.h deleted file mode 100644 index f7f7b609e9d0a36e0e9621e836bfc87a4d242d60..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/link/vxlan.h +++ /dev/null @@ -1,86 +0,0 @@ -/* - * netlink/route/link/vxlan.h VXLAN interface - * - * 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) 2013 Yasunobu Chiba - */ - -#ifndef NETLINK_LINK_VXLAN_H_ -#define NETLINK_LINK_VXLAN_H_ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -#define VXLAN_ID_MAX 16777215 - -extern struct rtnl_link *rtnl_link_vxlan_alloc(void); - -extern int rtnl_link_is_vxlan(struct rtnl_link *); - -extern int rtnl_link_vxlan_set_id(struct rtnl_link *, uint32_t); -extern int rtnl_link_vxlan_get_id(struct rtnl_link *, uint32_t *); - -extern int rtnl_link_vxlan_set_group(struct rtnl_link *, struct nl_addr *); -extern int rtnl_link_vxlan_get_group(struct rtnl_link *, struct nl_addr **); - -extern int rtnl_link_vxlan_set_link(struct rtnl_link *, uint32_t); -extern int rtnl_link_vxlan_get_link(struct rtnl_link *, uint32_t *); - -extern int rtnl_link_vxlan_set_local(struct rtnl_link *, struct nl_addr *); -extern int rtnl_link_vxlan_get_local(struct rtnl_link *, struct nl_addr **); - -extern int rtnl_link_vxlan_set_ttl(struct rtnl_link *, uint8_t); -extern int rtnl_link_vxlan_get_ttl(struct rtnl_link *); - -extern int rtnl_link_vxlan_set_tos(struct rtnl_link *, uint8_t); -extern int rtnl_link_vxlan_get_tos(struct rtnl_link *); - -extern int rtnl_link_vxlan_set_learning(struct rtnl_link *, uint8_t); -extern int rtnl_link_vxlan_get_learning(struct rtnl_link *); -extern int rtnl_link_vxlan_enable_learning(struct rtnl_link *); -extern int rtnl_link_vxlan_disable_learning(struct rtnl_link *); - -extern int rtnl_link_vxlan_set_ageing(struct rtnl_link *, uint32_t); -extern int rtnl_link_vxlan_get_ageing(struct rtnl_link *, uint32_t *); - -extern int rtnl_link_vxlan_set_limit(struct rtnl_link *, uint32_t); -extern int rtnl_link_vxlan_get_limit(struct rtnl_link *, uint32_t *); - -extern int rtnl_link_vxlan_set_port_range(struct rtnl_link *, - struct ifla_vxlan_port_range *); -extern int rtnl_link_vxlan_get_port_range(struct rtnl_link *, - struct ifla_vxlan_port_range *); - -extern int rtnl_link_vxlan_set_proxy(struct rtnl_link *, uint8_t); -extern int rtnl_link_vxlan_get_proxy(struct rtnl_link *); -extern int rtnl_link_vxlan_enable_proxy(struct rtnl_link *); -extern int rtnl_link_vxlan_disable_proxy(struct rtnl_link *); - -extern int rtnl_link_vxlan_set_rsc(struct rtnl_link *, uint8_t); -extern int rtnl_link_vxlan_get_rsc(struct rtnl_link *); -extern int rtnl_link_vxlan_enable_rsc(struct rtnl_link *); -extern int rtnl_link_vxlan_disable_rsc(struct rtnl_link *); - -extern int rtnl_link_vxlan_set_l2miss(struct rtnl_link *, uint8_t); -extern int rtnl_link_vxlan_get_l2miss(struct rtnl_link *); -extern int rtnl_link_vxlan_enable_l2miss(struct rtnl_link *); -extern int rtnl_link_vxlan_disable_l2miss(struct rtnl_link *); - -extern int rtnl_link_vxlan_set_l3miss(struct rtnl_link *, uint8_t); -extern int rtnl_link_vxlan_get_l3miss(struct rtnl_link *); -extern int rtnl_link_vxlan_enable_l3miss(struct rtnl_link *); -extern int rtnl_link_vxlan_disable_l3miss(struct rtnl_link *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/neighbour.h b/hardware/wifi/libnl/include/libnl3/netlink/route/neighbour.h deleted file mode 100644 index 1d1179b392d5e86fefe63f1a3fe71d1816c870dc..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/neighbour.h +++ /dev/null @@ -1,81 +0,0 @@ -/* - * netlink/route/neighbour.h Neighbours - * - * 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 - */ - -#ifndef NETLINK_NEIGHBOUR_H_ -#define NETLINK_NEIGHBOUR_H_ - -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -struct rtnl_neigh; - -extern struct rtnl_neigh *rtnl_neigh_alloc(void); -extern void rtnl_neigh_put(struct rtnl_neigh *); - -extern int rtnl_neigh_alloc_cache(struct nl_sock *, struct nl_cache **); -extern struct rtnl_neigh *rtnl_neigh_get(struct nl_cache *, int, - struct nl_addr *); - -extern int rtnl_neigh_parse(struct nlmsghdr *, struct rtnl_neigh **); - -extern char * rtnl_neigh_state2str(int, char *, size_t); -extern int rtnl_neigh_str2state(const char *); - -extern char * rtnl_neigh_flags2str(int, char *, size_t); -extern int rtnl_neigh_str2flag(const char *); - -extern int rtnl_neigh_add(struct nl_sock *, struct rtnl_neigh *, int); -extern int rtnl_neigh_build_add_request(struct rtnl_neigh *, int, - struct nl_msg **); - -extern int rtnl_neigh_delete(struct nl_sock *, struct rtnl_neigh *, int); -extern int rtnl_neigh_build_delete_request(struct rtnl_neigh *, int, - struct nl_msg **); - -extern void rtnl_neigh_set_state(struct rtnl_neigh *, int); -extern int rtnl_neigh_get_state(struct rtnl_neigh *); -extern void rtnl_neigh_unset_state(struct rtnl_neigh *, - int); - -extern void rtnl_neigh_set_flags(struct rtnl_neigh *, - unsigned int); -extern void rtnl_neigh_unset_flags(struct rtnl_neigh *, - unsigned int); -extern unsigned int rtnl_neigh_get_flags(struct rtnl_neigh *); - -extern void rtnl_neigh_set_ifindex(struct rtnl_neigh *, - int); -extern int rtnl_neigh_get_ifindex(struct rtnl_neigh *); - -extern void rtnl_neigh_set_lladdr(struct rtnl_neigh *, - struct nl_addr *); -extern struct nl_addr * rtnl_neigh_get_lladdr(struct rtnl_neigh *); - -extern int rtnl_neigh_set_dst(struct rtnl_neigh *, - struct nl_addr *); -extern struct nl_addr * rtnl_neigh_get_dst(struct rtnl_neigh *); - -extern void rtnl_neigh_set_type(struct rtnl_neigh *, int); -extern int rtnl_neigh_get_type(struct rtnl_neigh *); - -extern void rtnl_neigh_set_family(struct rtnl_neigh *, int); -extern int rtnl_neigh_get_family(struct rtnl_neigh *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/neightbl.h b/hardware/wifi/libnl/include/libnl3/netlink/route/neightbl.h deleted file mode 100644 index 412c3e942e918897630d0313abc08b006743838d..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/neightbl.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * netlink/route/neightbl.h Neighbour Tables - * - * 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 - */ - -#ifndef NETLINK_NEIGHTBL_H_ -#define NETLINK_NEIGHTBL_H_ - -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -struct rtnl_neightbl; - -extern struct rtnl_neightbl *rtnl_neightbl_alloc(void); -extern void rtnl_neightbl_put(struct rtnl_neightbl *); -extern void rtnl_neightbl_free(struct rtnl_neightbl *); -extern int rtnl_neightbl_alloc_cache(struct nl_sock *, struct nl_cache **); -extern struct rtnl_neightbl *rtnl_neightbl_get(struct nl_cache *, - const char *, int); -extern void rtnl_neightbl_dump(struct rtnl_neightbl *, FILE *, - struct nl_dump_params *); - -extern int rtnl_neightbl_build_change_request(struct rtnl_neightbl *, - struct rtnl_neightbl *, - struct nl_msg **); -extern int rtnl_neightbl_change(struct nl_sock *, struct rtnl_neightbl *, - struct rtnl_neightbl *); - -extern void rtnl_neightbl_set_family(struct rtnl_neightbl *, int); -extern void rtnl_neightbl_set_gc_tresh1(struct rtnl_neightbl *, int); -extern void rtnl_neightbl_set_gc_tresh2(struct rtnl_neightbl *, int); -extern void rtnl_neightbl_set_gc_tresh3(struct rtnl_neightbl *, int); -extern void rtnl_neightbl_set_name(struct rtnl_neightbl *, const char *); -extern void rtnl_neightbl_set_dev(struct rtnl_neightbl *, int); -extern void rtnl_neightbl_set_queue_len(struct rtnl_neightbl *, int); -extern void rtnl_neightbl_set_proxy_queue_len(struct rtnl_neightbl *, int); -extern void rtnl_neightbl_set_app_probes(struct rtnl_neightbl *, int); -extern void rtnl_neightbl_set_ucast_probes(struct rtnl_neightbl *, int); -extern void rtnl_neightbl_set_mcast_probes(struct rtnl_neightbl *, int); -extern void rtnl_neightbl_set_base_reachable_time(struct rtnl_neightbl *, - uint64_t); -extern void rtnl_neightbl_set_retrans_time(struct rtnl_neightbl *, uint64_t); -extern void rtnl_neightbl_set_gc_stale_time(struct rtnl_neightbl *, uint64_t); -extern void rtnl_neightbl_set_delay_probe_time(struct rtnl_neightbl *, - uint64_t); -extern void rtnl_neightbl_set_anycast_delay(struct rtnl_neightbl *, uint64_t); -extern void rtnl_neightbl_set_proxy_delay(struct rtnl_neightbl *, uint64_t); -extern void rtnl_neightbl_set_locktime(struct rtnl_neightbl *, uint64_t); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/nexthop.h b/hardware/wifi/libnl/include/libnl3/netlink/route/nexthop.h deleted file mode 100644 index 2aa44dce6fb0001ef44a2a562827b06c223a6a33..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/nexthop.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * netlink/route/nexthop.h Routing Nexthop - * - * 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 - */ - -#ifndef NETLINK_ROUTE_NEXTHOP_H_ -#define NETLINK_ROUTE_NEXTHOP_H_ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -struct rtnl_nexthop; - -enum { - NH_DUMP_FROM_ONELINE = -2, - NH_DUMP_FROM_DETAILS = -1, - NH_DUMP_FROM_ENV = 0, - /* > 0 reserved for nexthop index */ -}; - -extern struct rtnl_nexthop * rtnl_route_nh_alloc(void); -extern struct rtnl_nexthop * rtnl_route_nh_clone(struct rtnl_nexthop *); -extern void rtnl_route_nh_free(struct rtnl_nexthop *); - -extern int rtnl_route_nh_compare(struct rtnl_nexthop *, - struct rtnl_nexthop *, - uint32_t, int); - -extern void rtnl_route_nh_dump(struct rtnl_nexthop *, - struct nl_dump_params *); - -extern void rtnl_route_nh_set_weight(struct rtnl_nexthop *, uint8_t); -extern uint8_t rtnl_route_nh_get_weight(struct rtnl_nexthop *); -extern void rtnl_route_nh_set_ifindex(struct rtnl_nexthop *, int); -extern int rtnl_route_nh_get_ifindex(struct rtnl_nexthop *); -extern void rtnl_route_nh_set_gateway(struct rtnl_nexthop *, - struct nl_addr *); -extern struct nl_addr * rtnl_route_nh_get_gateway(struct rtnl_nexthop *); -extern void rtnl_route_nh_set_flags(struct rtnl_nexthop *, - unsigned int); -extern void rtnl_route_nh_unset_flags(struct rtnl_nexthop *, - unsigned int); -extern unsigned int rtnl_route_nh_get_flags(struct rtnl_nexthop *); -extern void rtnl_route_nh_set_realms(struct rtnl_nexthop *, - uint32_t); -extern uint32_t rtnl_route_nh_get_realms(struct rtnl_nexthop *); - -extern char * rtnl_route_nh_flags2str(int, char *, size_t); -extern int rtnl_route_nh_str2flags(const char *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/pktloc.h b/hardware/wifi/libnl/include/libnl3/netlink/route/pktloc.h deleted file mode 100644 index c3768ce96ddddf1e48f3b0ba202cf94a1c11b5db..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/pktloc.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * netlink/route/pktloc.h Packet Location Aliasing - * - * 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) 2010 Thomas Graf - */ - -#ifndef NETLINK_PKTLOC_H_ -#define NETLINK_PKTLOC_H_ - -#include -#include -#include - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -struct rtnl_pktloc -{ - char * name; - uint8_t layer; - uint8_t shift; - uint16_t offset; - uint16_t align; - uint32_t mask; - uint32_t refcnt; - - struct nl_list_head list; -}; - -extern int rtnl_pktloc_lookup(const char *, struct rtnl_pktloc **); -extern struct rtnl_pktloc *rtnl_pktloc_alloc(void); -extern void rtnl_pktloc_put(struct rtnl_pktloc *); -extern int rtnl_pktloc_add(struct rtnl_pktloc *); -extern void rtnl_pktloc_foreach(void (*cb)(struct rtnl_pktloc *, void *), - void *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc.h b/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc.h deleted file mode 100644 index 10b85c5d60022fc0ea6d0e51fb138b70167cd83f..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc.h +++ /dev/null @@ -1,73 +0,0 @@ -/* - * netlink/route/qdisc.h Queueing Disciplines - * - * 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-2011 Thomas Graf - */ - -#ifndef NETLINK_QDISC_H_ -#define NETLINK_QDISC_H_ - -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -struct rtnl_qdisc; - -extern struct rtnl_qdisc * - rtnl_qdisc_alloc(void); -extern void rtnl_qdisc_put(struct rtnl_qdisc *); - -extern int rtnl_qdisc_alloc_cache(struct nl_sock *, struct nl_cache **); - -extern struct rtnl_qdisc * - rtnl_qdisc_get(struct nl_cache *, int, uint32_t); - -extern struct rtnl_qdisc * - rtnl_qdisc_get_by_parent(struct nl_cache *, int, uint32_t); - -extern int rtnl_qdisc_build_add_request(struct rtnl_qdisc *, int, - struct nl_msg **); -extern int rtnl_qdisc_add(struct nl_sock *, struct rtnl_qdisc *, int); - -extern int rtnl_qdisc_build_update_request(struct rtnl_qdisc *, - struct rtnl_qdisc *, - int, struct nl_msg **); - -extern int rtnl_qdisc_update(struct nl_sock *, struct rtnl_qdisc *, - struct rtnl_qdisc *, int); - -extern int rtnl_qdisc_build_delete_request(struct rtnl_qdisc *, - struct nl_msg **); -extern int rtnl_qdisc_delete(struct nl_sock *, struct rtnl_qdisc *); - -/* Deprecated functions */ -extern void rtnl_qdisc_foreach_child(struct rtnl_qdisc *, struct nl_cache *, - void (*cb)(struct nl_object *, void *), - void *) __attribute__ ((deprecated)); - -extern void rtnl_qdisc_foreach_cls(struct rtnl_qdisc *, struct nl_cache *, - void (*cb)(struct nl_object *, void *), - void *) __attribute__ ((deprecated)); - -extern int rtnl_qdisc_build_change_request(struct rtnl_qdisc *, - struct rtnl_qdisc *, - struct nl_msg **) - __attribute__ ((deprecated)); - -extern int rtnl_qdisc_change(struct nl_sock *, struct rtnl_qdisc *, - struct rtnl_qdisc *) __attribute__ ((deprecated)); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc/cbq.h b/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc/cbq.h deleted file mode 100644 index 3dbdd2dc60b3456a65fe4b5886f5e6718e012fef..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc/cbq.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * netlink/route/sch/cbq.h Class Based Queueing - * - * 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-2006 Thomas Graf - */ - -#ifndef NETLINK_CBQ_H_ -#define NETLINK_CBQ_H_ - -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -extern char * nl_ovl_strategy2str(int, char *, size_t); -extern int nl_str2ovl_strategy(const char *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc/dsmark.h b/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc/dsmark.h deleted file mode 100644 index 06bd9d386846ebfd9fe986e3cfc6e72a13d12fe4..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc/dsmark.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * netlink/route/sch/dsmark.h DSMARK - * - * 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-2011 Thomas Graf - */ - -#ifndef NETLINK_DSMARK_H_ -#define NETLINK_DSMARK_H_ - -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -extern int rtnl_class_dsmark_set_bitmask(struct rtnl_class *, uint8_t); -extern int rtnl_class_dsmark_get_bitmask(struct rtnl_class *); - -extern int rtnl_class_dsmark_set_value(struct rtnl_class *, uint8_t); -extern int rtnl_class_dsmark_get_value(struct rtnl_class *); - -extern int rtnl_qdisc_dsmark_set_indices(struct rtnl_qdisc *, uint16_t); -extern int rtnl_qdisc_dsmark_get_indices(struct rtnl_qdisc *); - -extern int rtnl_qdisc_dsmark_set_default_index(struct rtnl_qdisc *, - uint16_t); -extern int rtnl_qdisc_dsmark_get_default_index(struct rtnl_qdisc *); - -extern int rtnl_qdisc_dsmark_set_set_tc_index(struct rtnl_qdisc *, int); -extern int rtnl_qdisc_dsmark_get_set_tc_index(struct rtnl_qdisc *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc/fifo.h b/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc/fifo.h deleted file mode 100644 index c0334273915d6b501d7b4138ac2416d6adb5efeb..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc/fifo.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * netlink/route/sch/fifo.c FIFO Qdisc - * - * 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-2006 Thomas Graf - */ - -#ifndef NETLINK_FIFO_H_ -#define NETLINK_FIFO_H_ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -extern int rtnl_qdisc_fifo_set_limit(struct rtnl_qdisc *, int); -extern int rtnl_qdisc_fifo_get_limit(struct rtnl_qdisc *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc/fq_codel.h b/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc/fq_codel.h deleted file mode 100644 index d2c3d25eab5dfb9f4b7a29430dc0d2d2cab60c25..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc/fq_codel.h +++ /dev/null @@ -1,44 +0,0 @@ -/* - * netlink/route/sch/fq_codel.h fq_codel - * - * 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) 2013 Cong Wang - */ - -#ifndef NETLINK_FQ_CODEL_H_ -#define NETLINK_FQ_CODEL_H_ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -extern int rtnl_qdisc_fq_codel_set_limit(struct rtnl_qdisc *, int); -extern int rtnl_qdisc_fq_codel_get_limit(struct rtnl_qdisc *); - -extern int rtnl_qdisc_fq_codel_set_target(struct rtnl_qdisc *, uint32_t); -extern uint32_t rtnl_qdisc_fq_codel_get_target(struct rtnl_qdisc *); - -extern int rtnl_qdisc_fq_codel_set_interval(struct rtnl_qdisc *, uint32_t); -extern uint32_t rtnl_qdisc_fq_codel_get_interval(struct rtnl_qdisc *); - -extern int rtnl_qdisc_fq_codel_set_quantum(struct rtnl_qdisc *, uint32_t); -extern uint32_t rtnl_qdisc_fq_codel_get_quantum(struct rtnl_qdisc *); - -extern int rtnl_qdisc_fq_codel_set_flows(struct rtnl_qdisc *, int); -extern int rtnl_qdisc_fq_codel_get_flows(struct rtnl_qdisc *); - -extern int rtnl_qdisc_fq_codel_set_ecn(struct rtnl_qdisc *, int); -extern int rtnl_qdisc_fq_codel_get_ecn(struct rtnl_qdisc *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc/htb.h b/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc/htb.h deleted file mode 100644 index c909f843d2563add540d0429878e8faac47230ab..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc/htb.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * netlink/route/sch/htb.h HTB Qdisc - * - * 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-2011 Thomas Graf - * Copyright (c) 2005 Petr Gotthard - * Copyright (c) 2005 Siemens AG Oesterreich - */ - -#ifndef NETLINK_HTB_H_ -#define NETLINK_HTB_H_ - -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -extern uint32_t rtnl_htb_get_rate2quantum(struct rtnl_qdisc *); -extern int rtnl_htb_set_rate2quantum(struct rtnl_qdisc *, uint32_t); -extern uint32_t rtnl_htb_get_defcls(struct rtnl_qdisc *); -extern int rtnl_htb_set_defcls(struct rtnl_qdisc *, uint32_t); - -extern uint32_t rtnl_htb_get_prio(struct rtnl_class *); -extern int rtnl_htb_set_prio(struct rtnl_class *, uint32_t); -extern uint32_t rtnl_htb_get_rate(struct rtnl_class *); -extern int rtnl_htb_set_rate(struct rtnl_class *, uint32_t); -extern uint32_t rtnl_htb_get_ceil(struct rtnl_class *); -extern int rtnl_htb_set_ceil(struct rtnl_class *, uint32_t); -extern uint32_t rtnl_htb_get_rbuffer(struct rtnl_class *); -extern int rtnl_htb_set_rbuffer(struct rtnl_class *, uint32_t); -extern uint32_t rtnl_htb_get_cbuffer(struct rtnl_class *); -extern int rtnl_htb_set_cbuffer(struct rtnl_class *, uint32_t); -extern uint32_t rtnl_htb_get_quantum(struct rtnl_class *); -extern int rtnl_htb_set_quantum(struct rtnl_class *, uint32_t); -extern int rtnl_htb_get_level(struct rtnl_class *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc/netem.h b/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc/netem.h deleted file mode 100644 index 4b071bf158f79d1eeae604e471a2f05a19ca146e..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc/netem.h +++ /dev/null @@ -1,76 +0,0 @@ -/* - * netlink/route/sch/netem.h Network Emulator Qdisc - * - * 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-2006 Thomas Graf - */ - -#ifndef NETLINK_NETEM_H_ -#define NETLINK_NETEM_H_ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -extern void rtnl_netem_set_limit(struct rtnl_qdisc *, int); -extern int rtnl_netem_get_limit(struct rtnl_qdisc *); - -/* Packet Re-ordering */ -extern void rtnl_netem_set_gap(struct rtnl_qdisc *, int); -extern int rtnl_netem_get_gap(struct rtnl_qdisc *); - -extern void rtnl_netem_set_reorder_probability(struct rtnl_qdisc *, int); -extern int rtnl_netem_get_reorder_probability(struct rtnl_qdisc *); - -extern void rtnl_netem_set_reorder_correlation(struct rtnl_qdisc *, int); -extern int rtnl_netem_get_reorder_correlation(struct rtnl_qdisc *); - -/* Corruption */ -extern void rtnl_netem_set_corruption_probability(struct rtnl_qdisc *, int); -extern int rtnl_netem_get_corruption_probability(struct rtnl_qdisc *); - -extern void rtnl_netem_set_corruption_correlation(struct rtnl_qdisc *, int); -extern int rtnl_netem_get_corruption_correlation(struct rtnl_qdisc *); - -/* Packet Loss */ -extern void rtnl_netem_set_loss(struct rtnl_qdisc *, int); -extern int rtnl_netem_get_loss(struct rtnl_qdisc *); - -extern void rtnl_netem_set_loss_correlation(struct rtnl_qdisc *, int); -extern int rtnl_netem_get_loss_correlation(struct rtnl_qdisc *); - -/* Packet Duplication */ -extern void rtnl_netem_set_duplicate(struct rtnl_qdisc *, int); -extern int rtnl_netem_get_duplicate(struct rtnl_qdisc *); - -extern void rtnl_netem_set_duplicate_correlation(struct rtnl_qdisc *, int); -extern int rtnl_netem_get_duplicate_correlation(struct rtnl_qdisc *); - -/* Packet Delay */ -extern void rtnl_netem_set_delay(struct rtnl_qdisc *, int); -extern int rtnl_netem_get_delay(struct rtnl_qdisc *); - -extern void rtnl_netem_set_jitter(struct rtnl_qdisc *, int); -extern int rtnl_netem_get_jitter(struct rtnl_qdisc *); - -extern void rtnl_netem_set_delay_correlation(struct rtnl_qdisc *, int); -extern int rtnl_netem_get_delay_correlation(struct rtnl_qdisc *); - -/* Delay Distribution */ -#define MAXDIST 65536 -extern int rtnl_netem_set_delay_distribution(struct rtnl_qdisc *, const char *); -extern int rtnl_netem_get_delay_distribution_size(struct rtnl_qdisc *); -extern int rtnl_netem_get_delay_distribution(struct rtnl_qdisc *, int16_t **); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc/plug.h b/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc/plug.h deleted file mode 100644 index 40f7e53b1e605bef40e1bc6f4f8f5334dbf53f67..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc/plug.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * netlink/route/qdisc/plug.c PLUG Qdisc - * - * 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) 2012 Shriram Rajagopalan - */ - -#ifndef NETLINK_PLUG_H_ -#define NETLINK_PLUG_H_ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -extern int rtnl_qdisc_plug_set_limit(struct rtnl_qdisc *, int); -extern int rtnl_qdisc_plug_buffer(struct rtnl_qdisc *); -extern int rtnl_qdisc_plug_release_one(struct rtnl_qdisc *); -extern int rtnl_qdisc_plug_release_indefinite(struct rtnl_qdisc *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc/prio.h b/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc/prio.h deleted file mode 100644 index 636a8f923f0ab88ed63241b4f934c8b4ddcbfbf1..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc/prio.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * netlink/route/sch/prio.c PRIO Qdisc - * - * 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-2011 Thomas Graf - */ - -#ifndef NETLINK_PRIO_H_ -#define NETLINK_PRIO_H_ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @name Default Values - * @{ - */ - -/** - * Default number of bands. - * @ingroup prio - */ -#define QDISC_PRIO_DEFAULT_BANDS 3 - -/** - * Default priority mapping. - * @ingroup prio - */ -#define QDISC_PRIO_DEFAULT_PRIOMAP \ - { 1, 2, 2, 2, 1, 2, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 } - -/** @} */ - -extern void rtnl_qdisc_prio_set_bands(struct rtnl_qdisc *, int); -extern int rtnl_qdisc_prio_get_bands(struct rtnl_qdisc *); -extern int rtnl_qdisc_prio_set_priomap(struct rtnl_qdisc *, uint8_t[], int); -extern uint8_t *rtnl_qdisc_prio_get_priomap(struct rtnl_qdisc *); - -extern char * rtnl_prio2str(int, char *, size_t); -extern int rtnl_str2prio(const char *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc/red.h b/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc/red.h deleted file mode 100644 index a4e8642fd8e046d1c16ed2759760d06e44c299b2..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc/red.h +++ /dev/null @@ -1,17 +0,0 @@ -/* - * netlink/route/sch/red.h RED Qdisc - * - * 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-2006 Thomas Graf - */ - -#ifndef NETLINK_RED_H_ -#define NETLINK_RED_H_ - -#include - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc/sfq.h b/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc/sfq.h deleted file mode 100644 index 77d2e293ba7b4866808508962afb1a2048a2c50b..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc/sfq.h +++ /dev/null @@ -1,37 +0,0 @@ -/* - * netlink/route/sch/sfq.c SFQ Qdisc - * - * 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-2011 Thomas Graf - */ - -#ifndef NETLINK_SFQ_H_ -#define NETLINK_SFQ_H_ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -extern void rtnl_sfq_set_quantum(struct rtnl_qdisc *, int); -extern int rtnl_sfq_get_quantum(struct rtnl_qdisc *); - -extern void rtnl_sfq_set_limit(struct rtnl_qdisc *, int); -extern int rtnl_sfq_get_limit(struct rtnl_qdisc *); - -extern void rtnl_sfq_set_perturb(struct rtnl_qdisc *, int); -extern int rtnl_sfq_get_perturb(struct rtnl_qdisc *); - -extern int rtnl_sfq_get_divisor(struct rtnl_qdisc *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc/tbf.h b/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc/tbf.h deleted file mode 100644 index ce31c548a22e86d9e4fa176b7648cea3f77853a0..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/qdisc/tbf.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - * netlink/route/sch/tbf.h TBF Qdisc - * - * 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-2011 Thomas Graf - */ - -#ifndef NETLINK_TBF_H_ -#define NETLINK_TBF_H_ - -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -extern void rtnl_qdisc_tbf_set_limit(struct rtnl_qdisc *, int); -extern int rtnl_qdisc_tbf_set_limit_by_latency(struct rtnl_qdisc *, int); -extern int rtnl_qdisc_tbf_get_limit(struct rtnl_qdisc *); - -extern void rtnl_qdisc_tbf_set_rate(struct rtnl_qdisc *, int, int, int); -extern int rtnl_qdisc_tbf_get_rate(struct rtnl_qdisc *); -extern int rtnl_qdisc_tbf_get_rate_bucket(struct rtnl_qdisc *); -extern int rtnl_qdisc_tbf_get_rate_cell(struct rtnl_qdisc *); - -extern int rtnl_qdisc_tbf_set_peakrate(struct rtnl_qdisc *, int, int, int); -extern int rtnl_qdisc_tbf_get_peakrate(struct rtnl_qdisc *); -extern int rtnl_qdisc_tbf_get_peakrate_bucket(struct rtnl_qdisc *); -extern int rtnl_qdisc_tbf_get_peakrate_cell(struct rtnl_qdisc *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/route.h b/hardware/wifi/libnl/include/libnl3/netlink/route/route.h deleted file mode 100644 index 477250dd8258ec90a102b5e076bd1afeb41326e3..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/route.h +++ /dev/null @@ -1,128 +0,0 @@ -/* - * netlink/route/route.h Routes - * - * 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-2012 Thomas Graf - */ - -#ifndef NETLINK_ROUTE_H_ -#define NETLINK_ROUTE_H_ - -#include -#include -#include -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @ingroup route - * When passed to rtnl_route_alloc_cache() the cache will - * correspond to the contents of the routing cache instead - * of the actual routes. - */ -#define ROUTE_CACHE_CONTENT 1 - -struct rtnl_route; - -struct rtnl_rtcacheinfo -{ - uint32_t rtci_clntref; - uint32_t rtci_last_use; - uint32_t rtci_expires; - int32_t rtci_error; - uint32_t rtci_used; - uint32_t rtci_id; - uint32_t rtci_ts; - uint32_t rtci_tsage; -}; - -extern struct nl_object_ops route_obj_ops; - -extern struct rtnl_route * rtnl_route_alloc(void); -extern void rtnl_route_put(struct rtnl_route *); -extern int rtnl_route_alloc_cache(struct nl_sock *, int, int, - struct nl_cache **); - -extern void rtnl_route_get(struct rtnl_route *); - -extern int rtnl_route_parse(struct nlmsghdr *, struct rtnl_route **); -extern int rtnl_route_build_msg(struct nl_msg *, struct rtnl_route *); - -extern int rtnl_route_build_add_request(struct rtnl_route *, int, - struct nl_msg **); -extern int rtnl_route_add(struct nl_sock *, struct rtnl_route *, int); -extern int rtnl_route_build_del_request(struct rtnl_route *, int, - struct nl_msg **); -extern int rtnl_route_delete(struct nl_sock *, struct rtnl_route *, int); - -extern void rtnl_route_set_table(struct rtnl_route *, uint32_t); -extern uint32_t rtnl_route_get_table(struct rtnl_route *); -extern void rtnl_route_set_scope(struct rtnl_route *, uint8_t); -extern uint8_t rtnl_route_get_scope(struct rtnl_route *); -extern void rtnl_route_set_tos(struct rtnl_route *, uint8_t); -extern uint8_t rtnl_route_get_tos(struct rtnl_route *); -extern void rtnl_route_set_protocol(struct rtnl_route *, uint8_t); -extern uint8_t rtnl_route_get_protocol(struct rtnl_route *); -extern void rtnl_route_set_priority(struct rtnl_route *, uint32_t); -extern uint32_t rtnl_route_get_priority(struct rtnl_route *); -extern int rtnl_route_set_family(struct rtnl_route *, uint8_t); -extern uint8_t rtnl_route_get_family(struct rtnl_route *); -extern int rtnl_route_set_type(struct rtnl_route *, uint8_t); -extern uint8_t rtnl_route_get_type(struct rtnl_route *); -extern void rtnl_route_set_flags(struct rtnl_route *, uint32_t); -extern void rtnl_route_unset_flags(struct rtnl_route *, uint32_t); -extern uint32_t rtnl_route_get_flags(struct rtnl_route *); -extern int rtnl_route_set_metric(struct rtnl_route *, int, unsigned int); -extern int rtnl_route_unset_metric(struct rtnl_route *, int); -extern int rtnl_route_get_metric(struct rtnl_route *, int, uint32_t *); -extern int rtnl_route_set_dst(struct rtnl_route *, struct nl_addr *); -extern struct nl_addr *rtnl_route_get_dst(struct rtnl_route *); -extern int rtnl_route_set_src(struct rtnl_route *, struct nl_addr *); -extern struct nl_addr *rtnl_route_get_src(struct rtnl_route *); -extern int rtnl_route_set_pref_src(struct rtnl_route *, struct nl_addr *); -extern struct nl_addr *rtnl_route_get_pref_src(struct rtnl_route *); -extern void rtnl_route_set_iif(struct rtnl_route *, int); -extern int rtnl_route_get_iif(struct rtnl_route *); -extern int rtnl_route_get_src_len(struct rtnl_route *); - -extern void rtnl_route_add_nexthop(struct rtnl_route *, - struct rtnl_nexthop *); -extern void rtnl_route_remove_nexthop(struct rtnl_route *, - struct rtnl_nexthop *); -extern struct nl_list_head *rtnl_route_get_nexthops(struct rtnl_route *); -extern int rtnl_route_get_nnexthops(struct rtnl_route *); - -extern void rtnl_route_foreach_nexthop(struct rtnl_route *r, - void (*cb)(struct rtnl_nexthop *, void *), - void *arg); - -extern struct rtnl_nexthop * rtnl_route_nexthop_n(struct rtnl_route *r, int n); - -extern int rtnl_route_guess_scope(struct rtnl_route *); - -extern char * rtnl_route_table2str(int, char *, size_t); -extern int rtnl_route_str2table(const char *); -extern int rtnl_route_read_table_names(const char *); - -extern char * rtnl_route_proto2str(int, char *, size_t); -extern int rtnl_route_str2proto(const char *); -extern int rtnl_route_read_protocol_names(const char *); - -extern char * rtnl_route_metric2str(int, char *, size_t); -extern int rtnl_route_str2metric(const char *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/rtnl.h b/hardware/wifi/libnl/include/libnl3/netlink/route/rtnl.h deleted file mode 100644 index f551a5d382cdabdffeeeab4da2e376f0af37e631..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/rtnl.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * netlink/route/rtnl.h Routing Netlink - * - * 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 - */ - -#ifndef NETLINK_RTNL_H_ -#define NETLINK_RTNL_H_ - -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @name Realms - * @{ - */ - -/** - * Mask specying the size of each realm part - * @ingroup rtnl - */ -#define RTNL_REALM_MASK (0xFFFF) - -/** - * Extract FROM realm from a realms field - */ -#define RTNL_REALM_FROM(realm) ((realm) >> 16) - -/** - * Extract TO realm from a realms field - */ -#define RTNL_REALM_TO(realm) ((realm) & RTNL_REALM_MASK) - -/** - * Build a realms field - */ -#define RTNL_MAKE_REALM(from, to) \ - ((RTNL_REALM_TO(from) << 16) & RTNL_REALM_TO(to)) - -/** @} */ - - -/* General */ -extern int nl_rtgen_request(struct nl_sock *, int, int, int); - -/* Routing Type Translations */ -extern char * nl_rtntype2str(int, char *, size_t); -extern int nl_str2rtntype(const char *); - -/* Scope Translations */ -extern char * rtnl_scope2str(int, char *, size_t); -extern int rtnl_str2scope(const char *); - -/* Realms Translations */ -extern char * rtnl_realms2str(uint32_t, char *, size_t); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/rule.h b/hardware/wifi/libnl/include/libnl3/netlink/route/rule.h deleted file mode 100644 index 760b782ad09efd110b631acae35c5318da68367f..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/rule.h +++ /dev/null @@ -1,75 +0,0 @@ -/* - * netlink/route/rule.h Rules - * - * 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-2010 Thomas Graf - */ - -#ifndef NETLINK_RULE_H_ -#define NETLINK_RULE_H_ - -#include -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -struct rtnl_rule; - -/* General */ -extern struct rtnl_rule * rtnl_rule_alloc(void); -extern void rtnl_rule_put(struct rtnl_rule *); - -extern int rtnl_rule_alloc_cache(struct nl_sock *, int, - struct nl_cache **); -extern void rtnl_rule_dump(struct rtnl_rule *, FILE *, struct nl_dump_params *); - -extern int rtnl_rule_build_add_request(struct rtnl_rule *, int, - struct nl_msg **); -extern int rtnl_rule_add(struct nl_sock *, struct rtnl_rule *, int); -extern int rtnl_rule_build_delete_request(struct rtnl_rule *, int, - struct nl_msg **); -extern int rtnl_rule_delete(struct nl_sock *, struct rtnl_rule *, int); - - -/* attribute modification */ -extern void rtnl_rule_set_family(struct rtnl_rule *, int); -extern int rtnl_rule_get_family(struct rtnl_rule *); -extern void rtnl_rule_set_prio(struct rtnl_rule *, uint32_t); -extern uint32_t rtnl_rule_get_prio(struct rtnl_rule *); -extern void rtnl_rule_set_mark(struct rtnl_rule *, uint32_t); -extern uint32_t rtnl_rule_get_mark(struct rtnl_rule *); -extern void rtnl_rule_set_mask(struct rtnl_rule *, uint32_t); -extern uint32_t rtnl_rule_get_mask(struct rtnl_rule *); -extern void rtnl_rule_set_table(struct rtnl_rule *, uint32_t); -extern uint32_t rtnl_rule_get_table(struct rtnl_rule *); -extern void rtnl_rule_set_dsfield(struct rtnl_rule *, uint8_t); -extern uint8_t rtnl_rule_get_dsfield(struct rtnl_rule *); -extern int rtnl_rule_set_src(struct rtnl_rule *, struct nl_addr *); -extern struct nl_addr * rtnl_rule_get_src(struct rtnl_rule *); -extern int rtnl_rule_set_dst(struct rtnl_rule *, struct nl_addr *); -extern struct nl_addr * rtnl_rule_get_dst(struct rtnl_rule *); -extern void rtnl_rule_set_action(struct rtnl_rule *, uint8_t); -extern uint8_t rtnl_rule_get_action(struct rtnl_rule *); -extern int rtnl_rule_set_iif(struct rtnl_rule *, const char *); -extern char * rtnl_rule_get_iif(struct rtnl_rule *); -extern int rtnl_rule_set_oif(struct rtnl_rule *, const char *); -extern char * rtnl_rule_get_oif(struct rtnl_rule *); -extern void rtnl_rule_set_realms(struct rtnl_rule *, uint32_t); -extern uint32_t rtnl_rule_get_realms(struct rtnl_rule *); -extern void rtnl_rule_set_goto(struct rtnl_rule *, uint32_t); -extern uint32_t rtnl_rule_get_goto(struct rtnl_rule *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/tc-api.h b/hardware/wifi/libnl/include/libnl3/netlink/route/tc-api.h deleted file mode 100644 index b7771b50a217e30aabab91e8a6519e3e0cd005a9..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/tc-api.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * netlink/route/tc-api.h Traffic Control API - * - * 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) 2013 Thomas Graf - */ - -#ifndef NETLINK_DUMMY_TC_API_H_ -#define NETLINK_DUMMY_TC_API_H_ - -#include -#include -#include - -#warning "You are including a deprecated header file, include ." - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/route/tc.h b/hardware/wifi/libnl/include/libnl3/netlink/route/tc.h deleted file mode 100644 index 870c1f2638de59eb3c8dab137849fc9cc05248a9..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/route/tc.h +++ /dev/null @@ -1,115 +0,0 @@ -/* - * netlink/route/tc.h Traffic Control - * - * 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-2011 Thomas Graf - */ - -#ifndef NETLINK_TC_H_ -#define NETLINK_TC_H_ - -#include -#include -#include -#include -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -enum rtnl_tc_type { - RTNL_TC_TYPE_QDISC, - RTNL_TC_TYPE_CLASS, - RTNL_TC_TYPE_CLS, - RTNL_TC_TYPE_ACT, - __RTNL_TC_TYPE_MAX, -}; - -#define RTNL_TC_TYPE_MAX (__RTNL_TC_TYPE_MAX - 1) - -/** - * Compute tc handle based on major and minor parts - * @ingroup tc - */ -#define TC_HANDLE(maj, min) (TC_H_MAJ((maj) << 16) | TC_H_MIN(min)) - -/** - * Traffic control object - * @ingroup tc - */ -struct rtnl_tc; - -/** - * Macro to cast qdisc/class/classifier to tc object - * @ingroup tc - * - * @code - * rtnl_tc_set_mpu(TC_CAST(qdisc), 40); - * @endcode - */ -#define TC_CAST(ptr) ((struct rtnl_tc *) (ptr)) - -/** - * Traffic control statistical identifier - * @ingroup tc - * - * @code - * uint64_t n = rtnl_tc_get_stat(TC_CAST(class), RTNL_TC_PACKETS); - * @endcode - */ -enum rtnl_tc_stat { - RTNL_TC_PACKETS, /**< Number of packets seen */ - RTNL_TC_BYTES, /**< Total bytes seen */ - RTNL_TC_RATE_BPS, /**< Current bits/s (rate estimator) */ - RTNL_TC_RATE_PPS, /**< Current packet/s (rate estimator) */ - RTNL_TC_QLEN, /**< Current queue length */ - RTNL_TC_BACKLOG, /**< Current backlog length */ - RTNL_TC_DROPS, /**< Total number of packets dropped */ - RTNL_TC_REQUEUES, /**< Total number of requeues */ - RTNL_TC_OVERLIMITS, /**< Total number of overlimits */ - __RTNL_TC_STATS_MAX, -}; - -#define RTNL_TC_STATS_MAX (__RTNL_TC_STATS_MAX - 1) - -extern void rtnl_tc_set_ifindex(struct rtnl_tc *, int); -extern int rtnl_tc_get_ifindex(struct rtnl_tc *); -extern void rtnl_tc_set_link(struct rtnl_tc *, struct rtnl_link *); -extern struct rtnl_link *rtnl_tc_get_link(struct rtnl_tc *); -extern void rtnl_tc_set_mtu(struct rtnl_tc *, uint32_t); -extern uint32_t rtnl_tc_get_mtu(struct rtnl_tc *); -extern void rtnl_tc_set_mpu(struct rtnl_tc *, uint32_t); -extern uint32_t rtnl_tc_get_mpu(struct rtnl_tc *); -extern void rtnl_tc_set_overhead(struct rtnl_tc *, uint32_t); -extern uint32_t rtnl_tc_get_overhead(struct rtnl_tc *); -extern void rtnl_tc_set_linktype(struct rtnl_tc *, uint32_t); -extern uint32_t rtnl_tc_get_linktype(struct rtnl_tc *); -extern void rtnl_tc_set_handle(struct rtnl_tc *, uint32_t); -extern uint32_t rtnl_tc_get_handle(struct rtnl_tc *); -extern void rtnl_tc_set_parent(struct rtnl_tc *, uint32_t); -extern uint32_t rtnl_tc_get_parent(struct rtnl_tc *); -extern int rtnl_tc_set_kind(struct rtnl_tc *, const char *); -extern char * rtnl_tc_get_kind(struct rtnl_tc *); -extern uint64_t rtnl_tc_get_stat(struct rtnl_tc *, enum rtnl_tc_stat); - -extern int rtnl_tc_calc_txtime(int, int); -extern int rtnl_tc_calc_bufsize(int, int); -extern int rtnl_tc_calc_cell_log(int); - -extern int rtnl_tc_read_classid_file(void); -extern char * rtnl_tc_handle2str(uint32_t, char *, size_t); -extern int rtnl_tc_str2handle(const char *, uint32_t *); -extern int rtnl_classid_generate(const char *, uint32_t *, - uint32_t); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/socket.h b/hardware/wifi/libnl/include/libnl3/netlink/socket.h deleted file mode 100644 index 1007eba03ad982b67402f3d4b01cfc480fdf50ec..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/socket.h +++ /dev/null @@ -1,71 +0,0 @@ -/* - * netlink/socket.h Netlink Socket - * - * 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 - */ - -#ifndef NETLINK_SOCKET_H_ -#define NETLINK_SOCKET_H_ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -extern struct nl_sock * nl_socket_alloc(void); -extern struct nl_sock * nl_socket_alloc_cb(struct nl_cb *); -extern void nl_socket_free(struct nl_sock *); - -extern uint32_t nl_socket_get_local_port(const struct nl_sock *); -extern void nl_socket_set_local_port(struct nl_sock *, uint32_t); - -extern int nl_socket_add_memberships(struct nl_sock *, int, ...); -extern int nl_socket_add_membership(struct nl_sock *, int); -extern int nl_socket_drop_memberships(struct nl_sock *, int, ...); -extern int nl_socket_drop_membership(struct nl_sock *, - int); -extern void nl_join_groups(struct nl_sock *, int); - - -extern uint32_t nl_socket_get_peer_port(const struct nl_sock *); -extern void nl_socket_set_peer_port(struct nl_sock *, - uint32_t); -extern uint32_t nl_socket_get_peer_groups(const struct nl_sock *sk); -extern void nl_socket_set_peer_groups(struct nl_sock *sk, uint32_t groups); -extern struct nl_cb * nl_socket_get_cb(const struct nl_sock *); -extern void nl_socket_set_cb(struct nl_sock *, - struct nl_cb *); -extern int nl_socket_modify_cb(struct nl_sock *, enum nl_cb_type, - enum nl_cb_kind, - nl_recvmsg_msg_cb_t, void *); -extern int nl_socket_modify_err_cb(struct nl_sock *, enum nl_cb_kind, - nl_recvmsg_err_cb_t, void *); - -extern int nl_socket_set_buffer_size(struct nl_sock *, int, int); -extern int nl_socket_set_msg_buf_size(struct nl_sock *, size_t); -extern size_t nl_socket_get_msg_buf_size(struct nl_sock *); -extern int nl_socket_set_passcred(struct nl_sock *, int); -extern int nl_socket_recv_pktinfo(struct nl_sock *, int); - -extern void nl_socket_disable_seq_check(struct nl_sock *); -extern unsigned int nl_socket_use_seq(struct nl_sock *); -extern void nl_socket_disable_auto_ack(struct nl_sock *); -extern void nl_socket_enable_auto_ack(struct nl_sock *); - -extern int nl_socket_get_fd(const struct nl_sock *); -extern int nl_socket_set_nonblocking(const struct nl_sock *); -extern void nl_socket_enable_msg_peek(struct nl_sock *); -extern void nl_socket_disable_msg_peek(struct nl_sock *); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/types.h b/hardware/wifi/libnl/include/libnl3/netlink/types.h deleted file mode 100644 index 09cc5bd9917e63026a9c0dd7ce66dc3de3d8ea79..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/types.h +++ /dev/null @@ -1,110 +0,0 @@ -/* - * netlink/types.h Definition of public types - * - * 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-2012 Thomas Graf - */ - -#ifndef __NETLINK_TYPES_H_ -#define __NETLINK_TYPES_H_ - -#include - -/** - * @ingroup utils - * Enumeration of dumping variations (dp_type) - */ -enum nl_dump_type { - NL_DUMP_LINE, /**< Dump object briefly on one line */ - NL_DUMP_DETAILS, /**< Dump all attributes but no statistics */ - NL_DUMP_STATS, /**< Dump all attributes including statistics */ - __NL_DUMP_MAX, -}; -#define NL_DUMP_MAX (__NL_DUMP_MAX - 1) - -/** - * @ingroup utils - * Dumping parameters - */ -struct nl_dump_params -{ - /** - * Specifies the type of dump that is requested. - */ - enum nl_dump_type dp_type; - - /** - * Specifies the number of whitespaces to be put in front - * of every new line (indentation). - */ - int dp_prefix; - - /** - * Causes the cache index to be printed for each element. - */ - int dp_print_index; - - /** - * Causes each element to be prefixed with the message type. - */ - int dp_dump_msgtype; - - /** - * A callback invoked for output - * - * Passed arguments are: - * - dumping parameters - * - string to append to the output - */ - void (*dp_cb)(struct nl_dump_params *, char *); - - /** - * A callback invoked for every new line, can be used to - * customize the indentation. - * - * Passed arguments are: - * - dumping parameters - * - line number starting from 0 - */ - void (*dp_nl_cb)(struct nl_dump_params *, int); - - /** - * User data pointer, can be used to pass data to callbacks. - */ - void *dp_data; - - /** - * File descriptor the dumping output should go to - */ - FILE * dp_fd; - - /** - * Alternatively the output may be redirected into a buffer - */ - char * dp_buf; - - /** - * Length of the buffer dp_buf - */ - size_t dp_buflen; - - /** - * PRIVATE - * Set if a dump was performed prior to the actual dump handler. - */ - int dp_pre_dump; - - /** - * PRIVATE - * Owned by the current caller - */ - int dp_ivar; - - unsigned int dp_line; -}; - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/utils.h b/hardware/wifi/libnl/include/libnl3/netlink/utils.h deleted file mode 100644 index 6b4b7874e3eaa9e3aa0e9973d31087d4b6bab004..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/utils.h +++ /dev/null @@ -1,125 +0,0 @@ -/* - * netlink/utils.h Utility Functions - * - * 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-2012 Thomas Graf - */ - -#ifndef NETLINK_UTILS_H_ -#define NETLINK_UTILS_H_ - -#include -#include - -#ifdef __cplusplus -extern "C" { -#endif - -/** - * @name Probability Constants - * @{ - */ - -/** - * Lower probability limit - * @ingroup utils - */ -#define NL_PROB_MIN 0x0 - -/** - * Upper probability limit nl_dump_type - * @ingroup utils - */ -#define NL_PROB_MAX 0xffffffff - -/** @} */ - -enum { - NL_BYTE_RATE, - NL_BIT_RATE, -}; - -/* unit pretty-printing */ -extern double nl_cancel_down_bytes(unsigned long long, char **); -extern double nl_cancel_down_bits(unsigned long long, char **); -extern int nl_rate2str(unsigned long long, int, char *, size_t); -extern double nl_cancel_down_us(uint32_t, char **); - -/* generic unit translations */ -extern long nl_size2int(const char *); -extern char * nl_size2str(const size_t, char *, const size_t); -extern long nl_prob2int(const char *); - -/* time translations */ -extern int nl_get_user_hz(void); -extern int nl_get_psched_hz(void); -extern uint32_t nl_us2ticks(uint32_t); -extern uint32_t nl_ticks2us(uint32_t); -extern int nl_str2msec(const char *, uint64_t *); -extern char * nl_msec2str(uint64_t, char *, size_t); - -/* link layer protocol translations */ -extern char * nl_llproto2str(int, char *, size_t); -extern int nl_str2llproto(const char *); - -/* ethernet protocol translations */ -extern char * nl_ether_proto2str(int, char *, size_t); -extern int nl_str2ether_proto(const char *); - -/* IP protocol translations */ -extern char * nl_ip_proto2str(int, char *, size_t); -extern int nl_str2ip_proto(const char *); - -/* Dumping helpers */ -extern void nl_new_line(struct nl_dump_params *); -extern void nl_dump(struct nl_dump_params *, const char *, ...); -extern void nl_dump_line(struct nl_dump_params *, const char *, ...); - -enum { - NL_CAPABILITY_NONE, - - /** - * rtnl_route_build_msg() no longer guesses the route scope - * if explicitly set to RT_SCOPE_NOWHERE. - * @ingroup utils - */ - NL_CAPABILITY_ROUTE_BUILD_MSG_SET_SCOPE = 1, -#define NL_CAPABILITY_ROUTE_BUILD_MSG_SET_SCOPE NL_CAPABILITY_ROUTE_BUILD_MSG_SET_SCOPE - - /** - * rtnl_link_veth_get_peer() now returns a reference that is owned by the - * caller and must be released by the caller with rtnl_link_put(). - */ - NL_CAPABILITY_ROUTE_LINK_VETH_GET_PEER_OWN_REFERENCE = 2, -#define NL_CAPABILITY_ROUTE_LINK_VETH_GET_PEER_OWN_REFERENCE NL_CAPABILITY_ROUTE_LINK_VETH_GET_PEER_OWN_REFERENCE - - /** - * rtnl_u32_add_action() and rtnl_basic_add_action() now grab a reference to act - * caller are free to release its own - */ - NL_CAPABILITY_ROUTE_LINK_CLS_ADD_ACT_OWN_REFERENCE = 3, -#define NL_CAPABILITY_ROUTE_LINK_CLS_ADD_ACT_OWN_REFERENCE NL_CAPABILITY_ROUTE_LINK_CLS_ADD_ACT_OWN_REFERENCE - - /** - * Indicate that the local port is unspecified until the user accesses - * it (via nl_socket_get_local_port()) or until nl_connect(). More importantly, - * if the port is left unspecified, nl_connect() will retry generating another - * port when bind() fails with ADDRINUSE. - */ - NL_CAPABILITY_NL_CONNECT_RETRY_GENERATE_PORT_ON_ADDRINUSE = 4, -#define NL_CAPABILITY_NL_CONNECT_RETRY_GENERATE_PORT_ON_ADDRINUSE NL_CAPABILITY_NL_CONNECT_RETRY_GENERATE_PORT_ON_ADDRINUSE - - __NL_CAPABILITY_MAX -#define NL_CAPABILITY_MAX (__NL_CAPABILITY_MAX - 1) -}; -int nl_has_capability (int capability); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/hardware/wifi/libnl/include/libnl3/netlink/version.h b/hardware/wifi/libnl/include/libnl3/netlink/version.h deleted file mode 100644 index a809442079923f76e50ca753334e418329e5dfcd..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/include/libnl3/netlink/version.h +++ /dev/null @@ -1,37 +0,0 @@ -/* - * netlink/version.h Versioning Information - * - * 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) 2008-2011 Thomas Graf - */ - -#ifndef NETLINK_VERSION_H_ -#define NETLINK_VERSION_H_ - -/* Compile Time Versioning Information */ - -#define LIBNL_STRING "libnl 3.2.25" -#define LIBNL_VERSION "3.2.25" - -#define LIBNL_VER_MAJ 3 -#define LIBNL_VER_MIN 2 -#define LIBNL_VER_MIC 25 -#define LIBNL_VER(maj,min) ((maj) << 8 | (min)) -#define LIBNL_VER_NUM LIBNL_VER(LIBNL_VER_MAJ, LIBNL_VER_MIN) - -#define LIBNL_CURRENT 220 -#define LIBNL_REVISION 0 -#define LIBNL_AGE 20 - -/* Run-time version information */ - -extern const int nl_ver_num; -extern const int nl_ver_maj; -extern const int nl_ver_min; -extern const int nl_ver_mic; - -#endif diff --git a/hardware/wifi/libnl/lib/libnl-3.a b/hardware/wifi/libnl/lib/libnl-3.a deleted file mode 100644 index fd7e0efffcbd48e54a3d656eb9a41923f68fc0d7..0000000000000000000000000000000000000000 Binary files a/hardware/wifi/libnl/lib/libnl-3.a and /dev/null differ diff --git a/hardware/wifi/libnl/lib/libnl-cli-3.a b/hardware/wifi/libnl/lib/libnl-cli-3.a deleted file mode 100644 index 4f7254e72357cc615bf8c5b77302a5ba5b5ba500..0000000000000000000000000000000000000000 Binary files a/hardware/wifi/libnl/lib/libnl-cli-3.a and /dev/null differ diff --git a/hardware/wifi/libnl/lib/libnl-genl-3.a b/hardware/wifi/libnl/lib/libnl-genl-3.a deleted file mode 100644 index 536bda087bf3bd09523ec85397c65730b706f09e..0000000000000000000000000000000000000000 Binary files a/hardware/wifi/libnl/lib/libnl-genl-3.a and /dev/null differ diff --git a/hardware/wifi/libnl/lib/libnl-idiag-3.a b/hardware/wifi/libnl/lib/libnl-idiag-3.a deleted file mode 100644 index acc19df1c59bed00e2f3a131323478b9cbe1c19b..0000000000000000000000000000000000000000 Binary files a/hardware/wifi/libnl/lib/libnl-idiag-3.a and /dev/null differ diff --git a/hardware/wifi/libnl/lib/libnl-nf-3.a b/hardware/wifi/libnl/lib/libnl-nf-3.a deleted file mode 100644 index 0a59a3b1ff90961b3233600b9820a82404ae8d12..0000000000000000000000000000000000000000 Binary files a/hardware/wifi/libnl/lib/libnl-nf-3.a and /dev/null differ diff --git a/hardware/wifi/libnl/lib/libnl-route-3.a b/hardware/wifi/libnl/lib/libnl-route-3.a deleted file mode 100644 index 801491a8b020b534fcad8b3949170c536165609a..0000000000000000000000000000000000000000 Binary files a/hardware/wifi/libnl/lib/libnl-route-3.a and /dev/null differ diff --git a/hardware/wifi/libnl/lib/libnl/cli/cls/basic.a b/hardware/wifi/libnl/lib/libnl/cli/cls/basic.a deleted file mode 100644 index 4df41d0291db24d65cd79f8235d9157ac158ccce..0000000000000000000000000000000000000000 Binary files a/hardware/wifi/libnl/lib/libnl/cli/cls/basic.a and /dev/null differ diff --git a/hardware/wifi/libnl/lib/libnl/cli/cls/cgroup.a b/hardware/wifi/libnl/lib/libnl/cli/cls/cgroup.a deleted file mode 100644 index ad4912c4a09830a301d0709d2ab7815df3a8d88d..0000000000000000000000000000000000000000 Binary files a/hardware/wifi/libnl/lib/libnl/cli/cls/cgroup.a and /dev/null differ diff --git a/hardware/wifi/libnl/lib/libnl/cli/qdisc/bfifo.a b/hardware/wifi/libnl/lib/libnl/cli/qdisc/bfifo.a deleted file mode 100644 index 1c3777697397e4bbd1cf7bf6a3c1f5a820dc610a..0000000000000000000000000000000000000000 Binary files a/hardware/wifi/libnl/lib/libnl/cli/qdisc/bfifo.a and /dev/null differ diff --git a/hardware/wifi/libnl/lib/libnl/cli/qdisc/blackhole.a b/hardware/wifi/libnl/lib/libnl/cli/qdisc/blackhole.a deleted file mode 100644 index ae3215cb3c4655af1551933dd83cb65ef501333a..0000000000000000000000000000000000000000 Binary files a/hardware/wifi/libnl/lib/libnl/cli/qdisc/blackhole.a and /dev/null differ diff --git a/hardware/wifi/libnl/lib/libnl/cli/qdisc/fq_codel.a b/hardware/wifi/libnl/lib/libnl/cli/qdisc/fq_codel.a deleted file mode 100644 index 5dc43bb1a42d8710253f4418c4727027ef6b3030..0000000000000000000000000000000000000000 Binary files a/hardware/wifi/libnl/lib/libnl/cli/qdisc/fq_codel.a and /dev/null differ diff --git a/hardware/wifi/libnl/lib/libnl/cli/qdisc/htb.a b/hardware/wifi/libnl/lib/libnl/cli/qdisc/htb.a deleted file mode 100644 index be2faf5599d713a9cc8b6b5bbf55700743669d4e..0000000000000000000000000000000000000000 Binary files a/hardware/wifi/libnl/lib/libnl/cli/qdisc/htb.a and /dev/null differ diff --git a/hardware/wifi/libnl/lib/libnl/cli/qdisc/ingress.a b/hardware/wifi/libnl/lib/libnl/cli/qdisc/ingress.a deleted file mode 100644 index 8f7de9c0dd70c8884800adb9b42dcbfbfe3094a3..0000000000000000000000000000000000000000 Binary files a/hardware/wifi/libnl/lib/libnl/cli/qdisc/ingress.a and /dev/null differ diff --git a/hardware/wifi/libnl/lib/libnl/cli/qdisc/pfifo.a b/hardware/wifi/libnl/lib/libnl/cli/qdisc/pfifo.a deleted file mode 100644 index 3201991e9057590df63edc5e0ffaf3b48ccc93e3..0000000000000000000000000000000000000000 Binary files a/hardware/wifi/libnl/lib/libnl/cli/qdisc/pfifo.a and /dev/null differ diff --git a/hardware/wifi/libnl/lib/libnl/cli/qdisc/plug.a b/hardware/wifi/libnl/lib/libnl/cli/qdisc/plug.a deleted file mode 100644 index accf167608ef0c9acdc6f1946b89d38992eed2ce..0000000000000000000000000000000000000000 Binary files a/hardware/wifi/libnl/lib/libnl/cli/qdisc/plug.a and /dev/null differ diff --git a/hardware/wifi/libnl/lib64/libnl-3.a b/hardware/wifi/libnl/lib64/libnl-3.a deleted file mode 100644 index 1dce330309d1e55ffb8f29abfcf8b878ca3c9c88..0000000000000000000000000000000000000000 Binary files a/hardware/wifi/libnl/lib64/libnl-3.a and /dev/null differ diff --git a/hardware/wifi/libnl/lib64/libnl-cli-3.a b/hardware/wifi/libnl/lib64/libnl-cli-3.a deleted file mode 100644 index f832c8d77952d4c63a09e064f807f0caf3fbf9f2..0000000000000000000000000000000000000000 Binary files a/hardware/wifi/libnl/lib64/libnl-cli-3.a and /dev/null differ diff --git a/hardware/wifi/libnl/lib64/libnl-genl-3.a b/hardware/wifi/libnl/lib64/libnl-genl-3.a deleted file mode 100644 index 8286938cbd5ef8f41fa567e011430e99f7b389c1..0000000000000000000000000000000000000000 Binary files a/hardware/wifi/libnl/lib64/libnl-genl-3.a and /dev/null differ diff --git a/hardware/wifi/libnl/lib64/libnl-idiag-3.a b/hardware/wifi/libnl/lib64/libnl-idiag-3.a deleted file mode 100644 index e040d987bd2b5f46e7c2bd3e6e9ab3ef76f1ddd4..0000000000000000000000000000000000000000 Binary files a/hardware/wifi/libnl/lib64/libnl-idiag-3.a and /dev/null differ diff --git a/hardware/wifi/libnl/lib64/libnl-nf-3.a b/hardware/wifi/libnl/lib64/libnl-nf-3.a deleted file mode 100644 index 4a091989d36fe13fe2e5d2dcfc11121be9d26c4e..0000000000000000000000000000000000000000 Binary files a/hardware/wifi/libnl/lib64/libnl-nf-3.a and /dev/null differ diff --git a/hardware/wifi/libnl/lib64/libnl-route-3.a b/hardware/wifi/libnl/lib64/libnl-route-3.a deleted file mode 100644 index 2de7527b636dde952cdc035920459c61c00b37ef..0000000000000000000000000000000000000000 Binary files a/hardware/wifi/libnl/lib64/libnl-route-3.a and /dev/null differ diff --git a/hardware/wifi/libnl/lib64/libnl/cli/cls/basic.a b/hardware/wifi/libnl/lib64/libnl/cli/cls/basic.a deleted file mode 100644 index d4afaa53e340d14c604b96f42f9147ffca980b04..0000000000000000000000000000000000000000 Binary files a/hardware/wifi/libnl/lib64/libnl/cli/cls/basic.a and /dev/null differ diff --git a/hardware/wifi/libnl/lib64/libnl/cli/cls/basic.la b/hardware/wifi/libnl/lib64/libnl/cli/cls/basic.la deleted file mode 100755 index feef913dd64190cd0e7c1fcba2f663c0ec91a0b5..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/lib64/libnl/cli/cls/basic.la +++ /dev/null @@ -1,41 +0,0 @@ -# basic.la - a libtool library file -# Generated by libtool (GNU libtool) 2.4.2 -# -# Please DO NOT delete this file! -# It is necessary for linking the library. - -# The name that we can dlopen(3). -dlname='' - -# Names of this library. -library_names='' - -# The name of the static archive. -old_library='basic.a' - -# Linker flags that can not go in dependency_libs. -inherited_linker_flags='' - -# Libraries that this one depends upon. -dependency_libs=' -lpthread -lm' - -# Names of additional weak libraries provided by this library -weak_library_names='' - -# Version information for basic. -current=0 -age=0 -revision=0 - -# Is this an already installed library? -installed=yes - -# Should we warn about portability when linking against -modules? -shouldnotlink=yes - -# Files to dlopen/dlpreopen -dlopen='' -dlpreopen='' - -# Directory that this library needs to be installed in: -libdir='/usr/local/arm64/libnl/lib/libnl/cli/cls' diff --git a/hardware/wifi/libnl/lib64/libnl/cli/cls/cgroup.a b/hardware/wifi/libnl/lib64/libnl/cli/cls/cgroup.a deleted file mode 100644 index 7c6178c6ee205bed4d26b637897d275ea79c4dc4..0000000000000000000000000000000000000000 Binary files a/hardware/wifi/libnl/lib64/libnl/cli/cls/cgroup.a and /dev/null differ diff --git a/hardware/wifi/libnl/lib64/libnl/cli/cls/cgroup.la b/hardware/wifi/libnl/lib64/libnl/cli/cls/cgroup.la deleted file mode 100755 index e0cc3ce1f2d1c10489792fbd59398218b7364a78..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/lib64/libnl/cli/cls/cgroup.la +++ /dev/null @@ -1,41 +0,0 @@ -# cgroup.la - a libtool library file -# Generated by libtool (GNU libtool) 2.4.2 -# -# Please DO NOT delete this file! -# It is necessary for linking the library. - -# The name that we can dlopen(3). -dlname='' - -# Names of this library. -library_names='' - -# The name of the static archive. -old_library='cgroup.a' - -# Linker flags that can not go in dependency_libs. -inherited_linker_flags='' - -# Libraries that this one depends upon. -dependency_libs=' -lpthread -lm' - -# Names of additional weak libraries provided by this library -weak_library_names='' - -# Version information for cgroup. -current=0 -age=0 -revision=0 - -# Is this an already installed library? -installed=yes - -# Should we warn about portability when linking against -modules? -shouldnotlink=yes - -# Files to dlopen/dlpreopen -dlopen='' -dlpreopen='' - -# Directory that this library needs to be installed in: -libdir='/usr/local/arm64/libnl/lib/libnl/cli/cls' diff --git a/hardware/wifi/libnl/lib64/libnl/cli/qdisc/bfifo.a b/hardware/wifi/libnl/lib64/libnl/cli/qdisc/bfifo.a deleted file mode 100644 index 5fa35101c622d59f506433d3c2c5caf5e51ac9e5..0000000000000000000000000000000000000000 Binary files a/hardware/wifi/libnl/lib64/libnl/cli/qdisc/bfifo.a and /dev/null differ diff --git a/hardware/wifi/libnl/lib64/libnl/cli/qdisc/bfifo.la b/hardware/wifi/libnl/lib64/libnl/cli/qdisc/bfifo.la deleted file mode 100755 index 99eb5b0e68631282fc172bf4c6686ac5f7b7b91d..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/lib64/libnl/cli/qdisc/bfifo.la +++ /dev/null @@ -1,41 +0,0 @@ -# bfifo.la - a libtool library file -# Generated by libtool (GNU libtool) 2.4.2 -# -# Please DO NOT delete this file! -# It is necessary for linking the library. - -# The name that we can dlopen(3). -dlname='' - -# Names of this library. -library_names='' - -# The name of the static archive. -old_library='bfifo.a' - -# Linker flags that can not go in dependency_libs. -inherited_linker_flags='' - -# Libraries that this one depends upon. -dependency_libs=' -lpthread -lm' - -# Names of additional weak libraries provided by this library -weak_library_names='' - -# Version information for bfifo. -current=0 -age=0 -revision=0 - -# Is this an already installed library? -installed=yes - -# Should we warn about portability when linking against -modules? -shouldnotlink=yes - -# Files to dlopen/dlpreopen -dlopen='' -dlpreopen='' - -# Directory that this library needs to be installed in: -libdir='/usr/local/arm64/libnl/lib/libnl/cli/qdisc' diff --git a/hardware/wifi/libnl/lib64/libnl/cli/qdisc/blackhole.a b/hardware/wifi/libnl/lib64/libnl/cli/qdisc/blackhole.a deleted file mode 100644 index 3febdf13ae6939d334b1bbee4f6b0458d8399111..0000000000000000000000000000000000000000 Binary files a/hardware/wifi/libnl/lib64/libnl/cli/qdisc/blackhole.a and /dev/null differ diff --git a/hardware/wifi/libnl/lib64/libnl/cli/qdisc/blackhole.la b/hardware/wifi/libnl/lib64/libnl/cli/qdisc/blackhole.la deleted file mode 100755 index 4acced1b151adfe588a9c5150a71da878d1658db..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/lib64/libnl/cli/qdisc/blackhole.la +++ /dev/null @@ -1,41 +0,0 @@ -# blackhole.la - a libtool library file -# Generated by libtool (GNU libtool) 2.4.2 -# -# Please DO NOT delete this file! -# It is necessary for linking the library. - -# The name that we can dlopen(3). -dlname='' - -# Names of this library. -library_names='' - -# The name of the static archive. -old_library='blackhole.a' - -# Linker flags that can not go in dependency_libs. -inherited_linker_flags='' - -# Libraries that this one depends upon. -dependency_libs=' -lpthread -lm' - -# Names of additional weak libraries provided by this library -weak_library_names='' - -# Version information for blackhole. -current=0 -age=0 -revision=0 - -# Is this an already installed library? -installed=yes - -# Should we warn about portability when linking against -modules? -shouldnotlink=yes - -# Files to dlopen/dlpreopen -dlopen='' -dlpreopen='' - -# Directory that this library needs to be installed in: -libdir='/usr/local/arm64/libnl/lib/libnl/cli/qdisc' diff --git a/hardware/wifi/libnl/lib64/libnl/cli/qdisc/fq_codel.a b/hardware/wifi/libnl/lib64/libnl/cli/qdisc/fq_codel.a deleted file mode 100644 index 9ee6bcf4acf151343165cebdae8c8ebadfd10144..0000000000000000000000000000000000000000 Binary files a/hardware/wifi/libnl/lib64/libnl/cli/qdisc/fq_codel.a and /dev/null differ diff --git a/hardware/wifi/libnl/lib64/libnl/cli/qdisc/fq_codel.la b/hardware/wifi/libnl/lib64/libnl/cli/qdisc/fq_codel.la deleted file mode 100755 index 028e8b3a5faf347e5d40baba41421745d12f74c3..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/lib64/libnl/cli/qdisc/fq_codel.la +++ /dev/null @@ -1,41 +0,0 @@ -# fq_codel.la - a libtool library file -# Generated by libtool (GNU libtool) 2.4.2 -# -# Please DO NOT delete this file! -# It is necessary for linking the library. - -# The name that we can dlopen(3). -dlname='' - -# Names of this library. -library_names='' - -# The name of the static archive. -old_library='fq_codel.a' - -# Linker flags that can not go in dependency_libs. -inherited_linker_flags='' - -# Libraries that this one depends upon. -dependency_libs=' -lpthread -lm' - -# Names of additional weak libraries provided by this library -weak_library_names='' - -# Version information for fq_codel. -current=0 -age=0 -revision=0 - -# Is this an already installed library? -installed=yes - -# Should we warn about portability when linking against -modules? -shouldnotlink=yes - -# Files to dlopen/dlpreopen -dlopen='' -dlpreopen='' - -# Directory that this library needs to be installed in: -libdir='/usr/local/arm64/libnl/lib/libnl/cli/qdisc' diff --git a/hardware/wifi/libnl/lib64/libnl/cli/qdisc/htb.a b/hardware/wifi/libnl/lib64/libnl/cli/qdisc/htb.a deleted file mode 100644 index ec33b5c497833ae152470080bfa781ff30c5ec50..0000000000000000000000000000000000000000 Binary files a/hardware/wifi/libnl/lib64/libnl/cli/qdisc/htb.a and /dev/null differ diff --git a/hardware/wifi/libnl/lib64/libnl/cli/qdisc/htb.la b/hardware/wifi/libnl/lib64/libnl/cli/qdisc/htb.la deleted file mode 100755 index 79f9bb12b61ae27195735065501d7b593b4acec7..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/lib64/libnl/cli/qdisc/htb.la +++ /dev/null @@ -1,41 +0,0 @@ -# htb.la - a libtool library file -# Generated by libtool (GNU libtool) 2.4.2 -# -# Please DO NOT delete this file! -# It is necessary for linking the library. - -# The name that we can dlopen(3). -dlname='' - -# Names of this library. -library_names='' - -# The name of the static archive. -old_library='htb.a' - -# Linker flags that can not go in dependency_libs. -inherited_linker_flags='' - -# Libraries that this one depends upon. -dependency_libs=' -lpthread -lm' - -# Names of additional weak libraries provided by this library -weak_library_names='' - -# Version information for htb. -current=0 -age=0 -revision=0 - -# Is this an already installed library? -installed=yes - -# Should we warn about portability when linking against -modules? -shouldnotlink=yes - -# Files to dlopen/dlpreopen -dlopen='' -dlpreopen='' - -# Directory that this library needs to be installed in: -libdir='/usr/local/arm64/libnl/lib/libnl/cli/qdisc' diff --git a/hardware/wifi/libnl/lib64/libnl/cli/qdisc/ingress.a b/hardware/wifi/libnl/lib64/libnl/cli/qdisc/ingress.a deleted file mode 100644 index 992b4e13be26fe2a6e29ee1edb44eef1b748cf3f..0000000000000000000000000000000000000000 Binary files a/hardware/wifi/libnl/lib64/libnl/cli/qdisc/ingress.a and /dev/null differ diff --git a/hardware/wifi/libnl/lib64/libnl/cli/qdisc/ingress.la b/hardware/wifi/libnl/lib64/libnl/cli/qdisc/ingress.la deleted file mode 100755 index 362996888b8c7fce1b207dd07a6630c9b98036f9..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/lib64/libnl/cli/qdisc/ingress.la +++ /dev/null @@ -1,41 +0,0 @@ -# ingress.la - a libtool library file -# Generated by libtool (GNU libtool) 2.4.2 -# -# Please DO NOT delete this file! -# It is necessary for linking the library. - -# The name that we can dlopen(3). -dlname='' - -# Names of this library. -library_names='' - -# The name of the static archive. -old_library='ingress.a' - -# Linker flags that can not go in dependency_libs. -inherited_linker_flags='' - -# Libraries that this one depends upon. -dependency_libs=' -lpthread -lm' - -# Names of additional weak libraries provided by this library -weak_library_names='' - -# Version information for ingress. -current=0 -age=0 -revision=0 - -# Is this an already installed library? -installed=yes - -# Should we warn about portability when linking against -modules? -shouldnotlink=yes - -# Files to dlopen/dlpreopen -dlopen='' -dlpreopen='' - -# Directory that this library needs to be installed in: -libdir='/usr/local/arm64/libnl/lib/libnl/cli/qdisc' diff --git a/hardware/wifi/libnl/lib64/libnl/cli/qdisc/pfifo.a b/hardware/wifi/libnl/lib64/libnl/cli/qdisc/pfifo.a deleted file mode 100644 index 61ad525273c9ef15f99644554129f5842ff41f69..0000000000000000000000000000000000000000 Binary files a/hardware/wifi/libnl/lib64/libnl/cli/qdisc/pfifo.a and /dev/null differ diff --git a/hardware/wifi/libnl/lib64/libnl/cli/qdisc/pfifo.la b/hardware/wifi/libnl/lib64/libnl/cli/qdisc/pfifo.la deleted file mode 100755 index 28b01c60509edd5dd25f7463e5b2d4b8d5c255f3..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/lib64/libnl/cli/qdisc/pfifo.la +++ /dev/null @@ -1,41 +0,0 @@ -# pfifo.la - a libtool library file -# Generated by libtool (GNU libtool) 2.4.2 -# -# Please DO NOT delete this file! -# It is necessary for linking the library. - -# The name that we can dlopen(3). -dlname='' - -# Names of this library. -library_names='' - -# The name of the static archive. -old_library='pfifo.a' - -# Linker flags that can not go in dependency_libs. -inherited_linker_flags='' - -# Libraries that this one depends upon. -dependency_libs=' -lpthread -lm' - -# Names of additional weak libraries provided by this library -weak_library_names='' - -# Version information for pfifo. -current=0 -age=0 -revision=0 - -# Is this an already installed library? -installed=yes - -# Should we warn about portability when linking against -modules? -shouldnotlink=yes - -# Files to dlopen/dlpreopen -dlopen='' -dlpreopen='' - -# Directory that this library needs to be installed in: -libdir='/usr/local/arm64/libnl/lib/libnl/cli/qdisc' diff --git a/hardware/wifi/libnl/lib64/libnl/cli/qdisc/plug.a b/hardware/wifi/libnl/lib64/libnl/cli/qdisc/plug.a deleted file mode 100644 index 95778e8ce0fe53086ffe8ad1bb427f327e02243a..0000000000000000000000000000000000000000 Binary files a/hardware/wifi/libnl/lib64/libnl/cli/qdisc/plug.a and /dev/null differ diff --git a/hardware/wifi/libnl/lib64/libnl/cli/qdisc/plug.la b/hardware/wifi/libnl/lib64/libnl/cli/qdisc/plug.la deleted file mode 100755 index fd46a1826ee3b7fe0189b8821fb9fc3a75227330..0000000000000000000000000000000000000000 --- a/hardware/wifi/libnl/lib64/libnl/cli/qdisc/plug.la +++ /dev/null @@ -1,41 +0,0 @@ -# plug.la - a libtool library file -# Generated by libtool (GNU libtool) 2.4.2 -# -# Please DO NOT delete this file! -# It is necessary for linking the library. - -# The name that we can dlopen(3). -dlname='' - -# Names of this library. -library_names='' - -# The name of the static archive. -old_library='plug.a' - -# Linker flags that can not go in dependency_libs. -inherited_linker_flags='' - -# Libraries that this one depends upon. -dependency_libs=' -lpthread -lm' - -# Names of additional weak libraries provided by this library -weak_library_names='' - -# Version information for plug. -current=0 -age=0 -revision=0 - -# Is this an already installed library? -installed=yes - -# Should we warn about portability when linking against -modules? -shouldnotlink=yes - -# Files to dlopen/dlpreopen -dlopen='' -dlpreopen='' - -# Directory that this library needs to be installed in: -libdir='/usr/local/arm64/libnl/lib/libnl/cli/qdisc' diff --git a/hardware/wifi/wpa.conf b/hardware/wifi/wpa.conf deleted file mode 100644 index 1cdca779c42def777f23437da0c97b0dfabab655..0000000000000000000000000000000000000000 --- a/hardware/wifi/wpa.conf +++ /dev/null @@ -1,6 +0,0 @@ -country=GB -ctrl_interface=udp -network={ - ssid="ChuangXin" - psk="83991906" -}