logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

xt_IDLETIMER.h (1001B)


  1. /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
  2. /*
  3. * Header file for Xtables timer target module.
  4. *
  5. * Copyright (C) 2004, 2010 Nokia Corporation
  6. * Written by Timo Teras <ext-timo.teras@nokia.com>
  7. *
  8. * Converted to x_tables and forward-ported to 2.6.34
  9. * by Luciano Coelho <luciano.coelho@nokia.com>
  10. *
  11. * Contact: Luciano Coelho <luciano.coelho@nokia.com>
  12. */
  13. #ifndef _XT_IDLETIMER_H
  14. #define _XT_IDLETIMER_H
  15. #include <linux/types.h>
  16. #define MAX_IDLETIMER_LABEL_SIZE 28
  17. #define XT_IDLETIMER_ALARM 0x01
  18. struct idletimer_tg_info {
  19. __u32 timeout;
  20. char label[MAX_IDLETIMER_LABEL_SIZE];
  21. /* for kernel module internal use only */
  22. struct idletimer_tg *timer __attribute__((aligned(8)));
  23. };
  24. struct idletimer_tg_info_v1 {
  25. __u32 timeout;
  26. char label[MAX_IDLETIMER_LABEL_SIZE];
  27. __u8 send_nl_msg; /* unused: for compatibility with Android */
  28. __u8 timer_type;
  29. /* for kernel module internal use only */
  30. struct idletimer_tg *timer __attribute__((aligned(8)));
  31. };
  32. #endif