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 |
| 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 |
| 35 | |
| 36 | struct idletimer_tg_info { |
| 37 | __u32 timeout; |
| 38 | |
| 39 | char label[MAX_IDLETIMER_LABEL_SIZE]; |
| 40 | |
| 41 | /* for kernel module internal use only */ |
Changli Gao | 09cd2b9 | 2010-08-22 17:25:05 +0000 | [diff] [blame] | 42 | struct idletimer_tg *timer __attribute__((aligned(8))); |
Luciano Coelho | 0902b46 | 2010-06-15 15:04:00 +0200 | [diff] [blame] | 43 | }; |
| 44 | |
| 45 | #endif |