*
* @return 0 on success or a negative error code.
*/
-int nl_cache_request_full_dump(struct nl_sock *sk, struct nl_cache *cache)
+static int nl_cache_request_full_dump(struct nl_sock *sk,
+ struct nl_cache *cache)
{
NL_DBG(2, "Requesting dump from kernel for cache %p <%s>...\n",
cache, nl_cache_name(cache));
* @arg cache Cache
* @arg param Parser parameters
*/
-int __cache_pickup(struct nl_sock *sk, struct nl_cache *cache,
- struct nl_parser_param *param)
+static int __cache_pickup(struct nl_sock *sk, struct nl_cache *cache,
+ struct nl_parser_param *param)
{
int err;
struct nl_cb *cb;
return NLMSG_HDRLEN + payload;
}
-int nlmsg_msg_size(int payload)
+static int nlmsg_msg_size(int payload)
{
return nlmsg_size(payload);
}
return nlh->nlmsg_len - NLMSG_HDRLEN;
}
-int nlmsg_len(const struct nlmsghdr *nlh)
+static int nlmsg_len(const struct nlmsghdr *nlh)
{
return nlmsg_datalen(nlh);
}
static struct nl_list_head pktloc_name_ht[PKTLOC_NAME_HT_SIZ];
/* djb2 */
-unsigned int pktloc_hash(const char *str)
+static unsigned int pktloc_hash(const char *str)
{
unsigned long hash = 5381;
int c;
nl_dump(p, "limit %d", netem->qnm_limit);
}
-int netem_msg_fill_raw(struct rtnl_tc *tc, void *data, struct nl_msg *msg)
+static int netem_msg_fill_raw(struct rtnl_tc *tc, void *data,
+ struct nl_msg *msg)
{
int err = 0;
struct tc_netem_qopt opts;
static NL_LIST_HEAD(tc_modules);
-struct nl_cli_tc_module *__nl_cli_tc_lookup(struct rtnl_tc_ops *ops)
+static struct nl_cli_tc_module *__nl_cli_tc_lookup(struct rtnl_tc_ops *ops)
{
struct nl_cli_tc_module *tm;
static char *prefix;
-void print_prefix(struct nl_dump_params *p, int line)
+static void print_prefix(struct nl_dump_params *p, int line)
{
if (prefix)
nl_dump(p, "%s", prefix);
#include <netlink/cli/link.h>
static int quiet = 0, default_yes = 0, deleted = 0, interactive = 0;
-struct nl_sock *sock;
+static struct nl_sock *sock;
static void print_usage(void)
{
#include <netlink/cli/class.h>
#include <netlink/cli/link.h>
-struct nl_sock *sock;
+static struct nl_sock *sock;
-struct nl_dump_params params = {
+static struct nl_dump_params params = {
.dp_type = NL_DUMP_LINE,
};
#include <netlink/cli/link.h>
static int quiet = 0, default_yes = 0, deleted = 0, interactive = 0;
-struct nl_sock *sock;
+static struct nl_sock *sock;
static void print_usage(void)
{
#include <netlink/cli/cls.h>
#include <netlink/cli/link.h>
-struct nl_sock *sock;
+static struct nl_sock *sock;
-struct nl_dump_params params = {
+static struct nl_dump_params params = {
.dp_type = NL_DUMP_LINE,
};
#include <netlink/cli/link.h>
static int quiet = 0, default_yes = 0, deleted = 0, interactive = 0;
-struct nl_sock *sock;
+static struct nl_sock *sock;
static void print_usage(void)
{
#include <netlink/cli/link.h>
static int quiet = 0, default_yes = 0, deleted = 0, interactive = 0;
-struct nl_sock *sock;
+static struct nl_sock *sock;
static void print_usage(void)
{