]> git.proxmox.com Git - mirror_iproute2.git/blame - include/ll_map.h
Merge branch 'master' of git://git.kernel.org/pub/scm/network/iproute2/iproute2-next
[mirror_iproute2.git] / include / ll_map.h
CommitLineData
6054c1eb 1/* SPDX-License-Identifier: GPL-2.0 */
aba5acdf
SH
2#ifndef __LL_MAP_H__
3#define __LL_MAP_H__ 1
4
892e2124
SH
5int ll_remember_index(const struct sockaddr_nl *who,
6 struct nlmsghdr *n, void *arg);
0025e5d6 7
892e2124
SH
8void ll_init_map(struct rtnl_handle *rth);
9unsigned ll_name_to_index(const char *name);
10const char *ll_index_to_name(unsigned idx);
892e2124
SH
11int ll_index_to_type(unsigned idx);
12int ll_index_to_flags(unsigned idx);
13unsigned namehash(const char *str);
aba5acdf 14
fe269b6e
SP
15const char *ll_idx_n2a(unsigned int idx);
16unsigned int ll_idx_a2n(const char *name);
17
aba5acdf 18#endif /* __LL_MAP_H__ */