vegasinfo.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * netlink/idiag/vegasinfo.h Inetdiag Netlink TCP Vegas Info
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation version 2.1
  7. * of the License.
  8. *
  9. * Copyright (c) 2013 Sassano Systems LLC <joe@sassanosystems.com>
  10. */
  11. #ifndef NETLINK_IDIAGNL_VEGASINFO_H_
  12. #define NETLINK_IDIAGNL_VEGASINFO_H_
  13. #include <netlink/netlink.h>
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif /* __cplusplus */
  17. extern struct nl_object_ops idiagnl_vegasinfo_obj_ops;
  18. extern struct idiagnl_vegasinfo * idiagnl_vegasinfo_alloc(void);
  19. extern void idiagnl_vegasinfo_get(struct idiagnl_vegasinfo *);
  20. extern void idiagnl_vegasinfo_put(struct idiagnl_vegasinfo *);
  21. extern uint32_t idiagnl_vegasinfo_get_enabled(const struct idiagnl_vegasinfo *);
  22. extern uint32_t idiagnl_vegasinfo_get_rttcnt(const struct idiagnl_vegasinfo *);
  23. extern uint32_t idiagnl_vegasinfo_get_rtt(const struct idiagnl_vegasinfo *);
  24. extern uint32_t idiagnl_vegasinfo_get_minrtt(const struct idiagnl_vegasinfo *);
  25. extern void idiagnl_vegasinfo_set_enabled(struct idiagnl_vegasinfo *,
  26. uint32_t);
  27. extern void idiagnl_vegasinfo_set_rttcnt(struct idiagnl_vegasinfo *,
  28. uint32_t);
  29. extern void idiagnl_vegasinfo_set_rtt(struct idiagnl_vegasinfo *, uint32_t);
  30. extern void idiagnl_vegasinfo_set_minrtt(struct idiagnl_vegasinfo *,
  31. uint32_t);
  32. #ifdef __cplusplus
  33. }
  34. #endif /* __cplusplus */
  35. #endif /* NETLINK_IDIAGNL_VEGASINFO_H_ */