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
14#ifndef _XT_IDLETIMER_H
15#define _XT_IDLETIMER_H
16
17#include <linux/types.h>
18
19#define MAX_IDLETIMER_LABEL_SIZE 28
20#define XT_IDLETIMER_ALARM 0x01
21
22struct idletimer_tg_info {
23	__u32 timeout;
24
25	char label[MAX_IDLETIMER_LABEL_SIZE];
26
27	/* for kernel module internal use only */
28	struct idletimer_tg *timer __attribute__((aligned(8)));
29};
30
31struct idletimer_tg_info_v1 {
32	__u32 timeout;
33
34	char label[MAX_IDLETIMER_LABEL_SIZE];
35
36	__u8 send_nl_msg;   /* unused: for compatibility with Android */
37	__u8 timer_type;
38
39	/* for kernel module internal use only */
40	struct idletimer_tg *timer __attribute__((aligned(8)));
41};
42#endif
43