]>
Commit | Line | Data |
---|---|---|
6054c1eb | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
aba5acdf SH |
2 | #ifndef __LL_MAP_H__ |
3 | #define __LL_MAP_H__ 1 | |
4 | ||
cd554f2c | 5 | int ll_remember_index(struct nlmsghdr *n, void *arg); |
0025e5d6 | 6 | |
892e2124 SH |
7 | void ll_init_map(struct rtnl_handle *rth); |
8 | unsigned ll_name_to_index(const char *name); | |
9 | const char *ll_index_to_name(unsigned idx); | |
892e2124 SH |
10 | int ll_index_to_type(unsigned idx); |
11 | int ll_index_to_flags(unsigned idx); | |
25c6339b | 12 | void ll_drop_by_index(unsigned index); |
892e2124 | 13 | unsigned namehash(const char *str); |
aba5acdf | 14 | |
fe269b6e | 15 | const char *ll_idx_n2a(unsigned int idx); |
fe269b6e | 16 | |
aba5acdf | 17 | #endif /* __LL_MAP_H__ */ |