blob: c4257894c91830b89a13714584316e5e6bd94c62 [file] [log] [blame]
"Robert P. J. Day"63fc1a92006-07-02 19:47:05 +00001/* vi: set sw=4 ts=4: */
Glenn L McGrath9a2d2722002-11-10 01:33:55 +00002#ifndef __LL_MAP_H__
3#define __LL_MAP_H__ 1
4
Denis Vlasenko98636eb2008-05-09 17:59:34 +00005#if __GNUC_PREREQ(4,1)
6# pragma GCC visibility push(hidden)
7#endif
8
Denis Vlasenko08a61182007-06-19 12:11:20 +00009int ll_remember_index(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg);
10int ll_init_map(struct rtnl_handle *rth);
Denis Vlasenko6ca409e2007-08-12 20:58:27 +000011int xll_name_to_index(const char *const name);
Denis Vlasenko08a61182007-06-19 12:11:20 +000012const char *ll_index_to_name(int idx);
13const char *ll_idx_n2a(int idx, char *buf);
14/* int ll_index_to_type(int idx); */
15unsigned ll_index_to_flags(int idx);
Glenn L McGrath9a2d2722002-11-10 01:33:55 +000016
Denis Vlasenko98636eb2008-05-09 17:59:34 +000017#if __GNUC_PREREQ(4,1)
18# pragma GCC visibility pop
19#endif
20
Glenn L McGrath9a2d2722002-11-10 01:33:55 +000021#endif /* __LL_MAP_H__ */