You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ll_map.h 830B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * ll_map.c
  3. *
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License
  6. * as published by the Free Software Foundation; either version
  7. * 2 of the License, or (at your option) any later version.
  8. *
  9. * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
  10. *
  11. *
  12. * Alpt: Added ll_first_up_if
  13. */
  14. #ifndef LL_MAP_H
  15. #define LL_MAP_H
  16. void ll_free_index(void);
  17. int ll_remember_index(struct sockaddr_nl *who, struct nlmsghdr *n,
  18. void *arg);
  19. int ll_init_map(struct rtnl_handle *rth);
  20. int ll_name_to_index(const char *name);
  21. const char *ll_index_to_name(int idx);
  22. const char *ll_idx_n2a(int idx, char *buf);
  23. int ll_index_to_type(int idx);
  24. unsigned ll_index_to_flags(int idx);
  25. int ll_first_up_if(void);
  26. int ll_nth_up_if(int n);
  27. #endif /*LL_MAP_H */