Luciano Coelho | 0902b46 | 2010-06-15 15:04:00 +0200 | [diff] [blame] | 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 |
JP Abgrall | cf7ad6a | 2012-04-26 23:28:35 -0700 | [diff] [blame] | 7 | * |
Luciano Coelho | 0902b46 | 2010-06-15 15:04:00 +0200 | [diff] [blame] | 8 | * Written by Timo Teras <ext-timo.teras@nokia.com> |
| 9 | * |
| 10 | * Converted to x_tables and forward-ported to 2.6.34 |
| 11 | * by Luciano Coelho <luciano.coelho@nokia.com> |
| 12 | * |
| 13 | * Contact: Luciano Coelho <luciano.coelho@nokia.com> |
| 14 | * |
| 15 | * This program is free software; you can redistribute it and/or |
| 16 | * modify it under the terms of the GNU General Public License |
| 17 | * version 2 as published by the Free Software Foundation. |
| 18 | * |
| 19 | * This program is distributed in the hope that it will be useful, but |
| 20 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 22 | * General Public License for more details. |
| 23 | * |
| 24 | * You should have received a copy of the GNU General Public License |
| 25 | * along with this program; if not, write to the Free Software |
| 26 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA |
| 27 | * 02110-1301 USA |
| 28 | */ |
| 29 | |
| 30 | #ifndef _XT_IDLETIMER_H |
| 31 | #define _XT_IDLETIMER_H |
| 32 | |
| 33 | #include <linux/types.h> |
| 34 | |
| 35 | #define MAX_IDLETIMER_LABEL_SIZE 28 |
JP Abgrall | cf7ad6a | 2012-04-26 23:28:35 -0700 | [diff] [blame] | 36 | #define NLMSG_MAX_SIZE 64 |
| 37 | |
| 38 | #define NL_EVENT_TYPE_INACTIVE 0 |
| 39 | #define NL_EVENT_TYPE_ACTIVE 1 |
Luciano Coelho | 0902b46 | 2010-06-15 15:04:00 +0200 | [diff] [blame] | 40 | |
| 41 | struct idletimer_tg_info { |
| 42 | __u32 timeout; |
| 43 | |
| 44 | char label[MAX_IDLETIMER_LABEL_SIZE]; |
| 45 | |
JP Abgrall | cf7ad6a | 2012-04-26 23:28:35 -0700 | [diff] [blame] | 46 | /* Use netlink messages for notification in addition to sysfs */ |
| 47 | __u8 send_nl_msg; |
| 48 | |
Luciano Coelho | 0902b46 | 2010-06-15 15:04:00 +0200 | [diff] [blame] | 49 | /* for kernel module internal use only */ |
Changli Gao | 09cd2b9 | 2010-08-22 17:25:05 +0000 | [diff] [blame] | 50 | struct idletimer_tg *timer __attribute__((aligned(8))); |
Luciano Coelho | 0902b46 | 2010-06-15 15:04:00 +0200 | [diff] [blame] | 51 | }; |
| 52 | |
| 53 | #endif |