netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: dmitry pervushin <dmitry.pervushin@linaro.org>
To: netfilter-devel@vger.kernel.org
Cc: patches@linaro.org,
	dmitry pervushin <dmitry.pervushin@linaro.org>,
	Ashish Sharma <ashishsharma@google.com>,
	JP Abgrall <jpa@google.com>, John Stultz <john.stultz@linaro.org>
Subject: [PATCH 1/2] netfilter: idletimers, synchronize headers
Date: Sun, 21 Apr 2013 11:55:47 +0200	[thread overview]
Message-ID: <1366538148-19759-2-git-send-email-dmitry.pervushin@linaro.org> (raw)
In-Reply-To: <1366538148-19759-1-git-send-email-dmitry.pervushin@linaro.org>

Synchronize include/linux/netfilter/xt_IDLETIMER.h with kernel

Cc: Ashish Sharma <ashishsharma@google.com>
Cc: JP Abgrall <jpa@google.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: dmitry pervushin <dmitry.pervushin@linaro.org>
---
 include/linux/netfilter/xt_IDLETIMER.h |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/include/linux/netfilter/xt_IDLETIMER.h b/include/linux/netfilter/xt_IDLETIMER.h
index 208ae93..96ed520 100644
--- a/include/linux/netfilter/xt_IDLETIMER.h
+++ b/include/linux/netfilter/xt_IDLETIMER.h
@@ -42,4 +42,18 @@ struct idletimer_tg_info {
 	struct idletimer_tg *timer __attribute__((aligned(8)));
 };
 
+#define NL_EVENT_TYPE_INACTIVE 0
+#define NL_EVENT_TYPE_ACTIVE 1
+
+struct idletimer_tg_info_v1 {
+	__u32 timeout;
+
+	char label[MAX_IDLETIMER_LABEL_SIZE];
+
+	/* Use netlink messages for notification in addition to sysfs */
+	__u8 send_nl_msg;
+
+	/* for kernel module internal use only */
+	struct idletimer_tg *timer __attribute__((aligned(8)));
+};
 #endif
-- 
1.7.10.4


  reply	other threads:[~2013-04-21  9:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-21  9:55 [PATCH 0/2] dmitry pervushin
2013-04-21  9:55 ` dmitry pervushin [this message]
2013-04-21  9:55 ` [PATCH 2/2] netfilter: idletimers, add v1 structures dmitry pervushin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1366538148-19759-2-git-send-email-dmitry.pervushin@linaro.org \
    --to=dmitry.pervushin@linaro.org \
    --cc=ashishsharma@google.com \
    --cc=john.stultz@linaro.org \
    --cc=jpa@google.com \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=patches@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).