iproute2/include/ll_map.h
<<
>>
Prefs
   1/* SPDX-License-Identifier: GPL-2.0 */
   2#ifndef __LL_MAP_H__
   3#define __LL_MAP_H__ 1
   4
   5int ll_remember_index(struct nlmsghdr *n, void *arg);
   6
   7void ll_init_map(struct rtnl_handle *rth);
   8unsigned ll_name_to_index(const char *name);
   9const char *ll_index_to_name(unsigned idx);
  10int ll_index_to_type(unsigned idx);
  11int ll_index_to_flags(unsigned idx);
  12void ll_drop_by_index(unsigned index);
  13unsigned namehash(const char *str);
  14
  15const char *ll_idx_n2a(unsigned int idx);
  16
  17#endif /* __LL_MAP_H__ */
  18