req.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * netlink/idiag/req.h Inetdiag Netlink Request
  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_REQ_H_
  12. #define NETLINK_IDIAGNL_REQ_H_
  13. #include <netlink/netlink.h>
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif /* __cplusplus */
  17. struct idiagnl_req;
  18. extern struct nl_object_ops idiagnl_req_obj_ops;
  19. extern struct idiagnl_req * idiagnl_req_alloc(void);
  20. extern void idiagnl_req_get(struct idiagnl_req *);
  21. extern void idiagnl_req_put(struct idiagnl_req *);
  22. extern uint8_t idiagnl_req_get_family(const struct idiagnl_req *);
  23. extern void idiagnl_req_set_family(struct idiagnl_req *,
  24. uint8_t);
  25. extern uint8_t idiagnl_req_get_ext(const struct idiagnl_req *);
  26. extern void idiagnl_req_set_ext(struct idiagnl_req *, uint8_t);
  27. extern uint32_t idiagnl_req_get_ifindex(const struct idiagnl_req *);
  28. extern void idiagnl_req_set_ifindex(struct idiagnl_req *,
  29. uint32_t);
  30. extern uint32_t idiagnl_req_get_states(const struct idiagnl_req *);
  31. extern void idiagnl_req_set_states(struct idiagnl_req *,
  32. uint32_t);
  33. extern uint32_t idiagnl_req_get_dbs(const struct idiagnl_req *);
  34. extern void idiagnl_req_set_dbs(struct idiagnl_req *, uint32_t);
  35. extern struct nl_addr * idiagnl_req_get_src(const struct idiagnl_req *);
  36. extern int idiagnl_req_set_src(struct idiagnl_req *,
  37. struct nl_addr *);
  38. extern struct nl_addr * idiagnl_req_get_dst(const struct idiagnl_req *);
  39. extern int idiagnl_req_set_dst(struct idiagnl_req *,
  40. struct nl_addr *);
  41. #ifdef __cplusplus
  42. }
  43. #endif /* __cplusplus */
  44. #endif /* NETLINK_IDIAGNL_REQ_H_ */