]> git.ipfire.org Git - thirdparty/linux.git/blame - include/uapi/linux/netfilter/xt_IDLETIMER.h
Merge tag 'drm/tegra/for-5.7-fixes' of git://anongit.freedesktop.org/tegra/linux...
[thirdparty/linux.git] / include / uapi / linux / netfilter / xt_IDLETIMER.h
CommitLineData
0902b469
LC
1/*
2 * linux/include/linux/netfilter/xt_IDLETIMER.h
3 *
4 * Header file for Xtables timer target module.
5 *
6 * Copyright (C) 2004, 2010 Nokia Corporation
7 * Written by Timo Teras <ext-timo.teras@nokia.com>
8 *
9 * Converted to x_tables and forward-ported to 2.6.34
10 * by Luciano Coelho <luciano.coelho@nokia.com>
11 *
12 * Contact: Luciano Coelho <luciano.coelho@nokia.com>
13 *
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * version 2 as published by the Free Software Foundation.
17 *
18 * This program is distributed in the hope that it will be useful, but
19 * WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 * General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, write to the Free Software
25 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
26 * 02110-1301 USA
27 */
28
29#ifndef _XT_IDLETIMER_H
30#define _XT_IDLETIMER_H
31
32#include <linux/types.h>
33
34#define MAX_IDLETIMER_LABEL_SIZE 28
68983a35 35#define XT_IDLETIMER_ALARM 0x01
0902b469
LC
36
37struct idletimer_tg_info {
38 __u32 timeout;
39
40 char label[MAX_IDLETIMER_LABEL_SIZE];
41
42 /* for kernel module internal use only */
09cd2b99 43 struct idletimer_tg *timer __attribute__((aligned(8)));
0902b469
LC
44};
45
68983a35
MB
46struct idletimer_tg_info_v1 {
47 __u32 timeout;
48
49 char label[MAX_IDLETIMER_LABEL_SIZE];
50
bc9fe614 51 __u8 send_nl_msg; /* unused: for compatibility with Android */
68983a35
MB
52 __u8 timer_type;
53
54 /* for kernel module internal use only */
55 struct idletimer_tg *timer __attribute__((aligned(8)));
56};
0902b469 57#endif