From patchwork Sun Apr 21 09:55:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Pervushin X-Patchwork-Id: 16279 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f72.google.com (mail-qe0-f72.google.com [209.85.128.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9758420F45 for ; Sun, 21 Apr 2013 09:56:53 +0000 (UTC) Received: by mail-qe0-f72.google.com with SMTP id 1sf11341289qee.11 for ; Sun, 21 Apr 2013 02:56:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=WXnl5aq13nSzyv1e4UxMCLR5Bg6h7Ne0qOUrsHcSc58=; b=UhBsKC+RolGwEye/5R09fOsTGYgSvOQgzkqU4curUciCjfUx/yk2rieWYOFf8yz/E/ 5QIf22+rw7uYQgfKNGft48LULI6EnLXgPbhBv9f/sWsbH3LEhncPwGuMAk/N7ZObskbJ 8kxj19iV9gOUuE3eC2ERyrVozqkycSXAmXRnfah+446u74zRyh52MpNAn0GWk3CboZJi tcOWCfObZagSKIaWhyu4TCWer1oYv4dSOY+md32Q+Va+RUGD3DqXB8iXNJctjsMnsOGT J7dmFBgrCYGYCx7spZyKfEANfehkBDwtL/t7wID/hFY5uePgbDnV8WPuZn2tg4W8OPSC LZoA== X-Received: by 10.224.18.133 with SMTP id w5mr2908130qaa.1.1366538169797; Sun, 21 Apr 2013 02:56:09 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.64.132 with SMTP id o4ls2834350qes.11.gmail; Sun, 21 Apr 2013 02:56:09 -0700 (PDT) X-Received: by 10.220.151.141 with SMTP id c13mr16293455vcw.64.1366538169645; Sun, 21 Apr 2013 02:56:09 -0700 (PDT) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id u19si13689629vcp.2.2013.04.21.02.56.09 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 21 Apr 2013 02:56:09 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.177; Received: by mail-vc0-f177.google.com with SMTP id hr11so5182111vcb.22 for ; Sun, 21 Apr 2013 02:56:09 -0700 (PDT) X-Received: by 10.221.0.199 with SMTP id nn7mr16317796vcb.14.1366538169541; Sun, 21 Apr 2013 02:56:09 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.127.98 with SMTP id nf2csp36492veb; Sun, 21 Apr 2013 02:56:09 -0700 (PDT) X-Received: by 10.181.11.164 with SMTP id ej4mr41267898wid.29.1366538168630; Sun, 21 Apr 2013 02:56:08 -0700 (PDT) Received: from mail-wi0-x231.google.com (mail-wi0-x231.google.com [2a00:1450:400c:c05::231]) by mx.google.com with ESMTPS id gg10si7739731wjb.246.2013.04.21.02.56.08 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 21 Apr 2013 02:56:08 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c05::231 is neither permitted nor denied by best guess record for domain of dmitry.pervushin@linaro.org) client-ip=2a00:1450:400c:c05::231; Received: by mail-wi0-f177.google.com with SMTP id hj19so2820262wib.16 for ; Sun, 21 Apr 2013 02:56:08 -0700 (PDT) X-Received: by 10.180.189.205 with SMTP id gk13mr55750906wic.25.1366538167824; Sun, 21 Apr 2013 02:56:07 -0700 (PDT) Received: from localhost.localdomain (ANice-652-1-369-36.w83-201.abo.wanadoo.fr. [83.201.204.36]) by mx.google.com with ESMTPS id k5sm14712467wiy.5.2013.04.21.02.56.05 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 21 Apr 2013 02:56:07 -0700 (PDT) From: dmitry pervushin To: netfilter-devel@vger.kernel.org Cc: patches@linaro.org, dmitry pervushin , Ashish Sharma , JP Abgrall , John Stultz Subject: [PATCH 1/2] netfilter: idletimers, synchronize headers Date: Sun, 21 Apr 2013 11:55:47 +0200 Message-Id: <1366538148-19759-2-git-send-email-dmitry.pervushin@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1366538148-19759-1-git-send-email-dmitry.pervushin@linaro.org> References: <1366538148-19759-1-git-send-email-dmitry.pervushin@linaro.org> X-Gm-Message-State: ALoCoQlI+47P/fYlwIwzA2am2Lx+6+FOikHSahQLrBsf1Vfz51Ub4NiFP33OZBm8pp2gCK7KngS5 X-Original-Sender: dmitry.pervushin@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.177 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Synchronize include/linux/netfilter/xt_IDLETIMER.h with kernel Cc: Ashish Sharma Cc: JP Abgrall Signed-off-by: John Stultz Signed-off-by: dmitry pervushin --- 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