mirror of
https://github.com/openharmony/third_party_libnl.git
synced 2026-07-22 08:27:07 -04:00
18d60cb9d7
Both link and neighbor cache support specify multiple groups (nl_af_group), but the alloc_cache functions for both do not set the NL_CACHE_AF_ITER flag before populating the cache so only the first group is used by default. This patch adds an API to pass in flags to make that happen and updates the nl-neigh-list command to make use of it. http://lists.infradead.org/pipermail/libnl/2015-October/001996.html Signed-off-by: David Ahern <dsa@cumulusnetworks.com> Signed-off-by: Thomas Haller <thaller@redhat.com>
35 lines
1.3 KiB
C
35 lines
1.3 KiB
C
/*
|
|
* 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 <tgraf@suug.ch>
|
|
*/
|
|
|
|
#ifndef __NETLINK_CLI_LINK_H_
|
|
#define __NETLINK_CLI_LINK_H_
|
|
|
|
#include <netlink/route/link.h>
|
|
#include <netlink/cli/utils.h>
|
|
|
|
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_family_flags(struct nl_sock *, int,
|
|
unsigned int);
|
|
extern struct nl_cache *nl_cli_link_alloc_cache(struct nl_sock *);
|
|
extern struct nl_cache *nl_cli_link_alloc_cache_flags(struct nl_sock *,
|
|
unsigned int);
|
|
|
|
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
|