]> git.proxmox.com Git - mirror_iproute2.git/blob - include/ll_map.h
Merge branch 'iproute2-master' into iproute2-next
[mirror_iproute2.git] / include / ll_map.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __LL_MAP_H__
3 #define __LL_MAP_H__ 1
4
5 int ll_remember_index(const struct sockaddr_nl *who,
6 struct nlmsghdr *n, void *arg);
7
8 void ll_init_map(struct rtnl_handle *rth);
9 unsigned ll_name_to_index(const char *name);
10 const char *ll_index_to_name(unsigned idx);
11 int ll_index_to_type(unsigned idx);
12 int ll_index_to_flags(unsigned idx);
13 unsigned namehash(const char *str);
14
15 const char *ll_idx_n2a(unsigned int idx);
16 unsigned int ll_idx_a2n(const char *name);
17
18 #endif /* __LL_MAP_H__ */