Message ID | 1473777012-21850-3-git-send-email-matias.elo@nokia.com |
---|---|
State | Accepted |
Commit | 5fff93ce094807c460ab7a1bf9b7af429143a19d |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.106.72 with SMTP id d66csp1391456qgf; Tue, 13 Sep 2016 07:30:50 -0700 (PDT) X-Received: by 10.233.232.149 with SMTP id a143mr1299819qkg.79.1473777050626; Tue, 13 Sep 2016 07:30:50 -0700 (PDT) Return-Path: <lng-odp-bounces@lists.linaro.org> Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id n34si12764208qtd.81.2016.09.13.07.30.50; Tue, 13 Sep 2016 07:30:50 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE dis=NONE) header.from=nokia.com Received: by lists.linaro.org (Postfix, from userid 109) id E2417615DC; Tue, 13 Sep 2016 14:30:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 6D4B760F45; Tue, 13 Sep 2016 14:30:40 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 96EFE60F45; Tue, 13 Sep 2016 14:30:36 +0000 (UTC) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0096.outbound.protection.outlook.com [104.47.2.96]) by lists.linaro.org (Postfix) with ESMTPS id 95DAC609AA for <lng-odp@lists.linaro.org>; Tue, 13 Sep 2016 14:30:32 +0000 (UTC) Received: from DB6PR0701CA0031.eurprd07.prod.outlook.com (10.168.7.169) by HE1PR0701MB1996.eurprd07.prod.outlook.com (10.167.189.146) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.599.9; Tue, 13 Sep 2016 14:30:30 +0000 Received: from AM1FFO11FD003.protection.gbl (2a01:111:f400:7e00::153) by DB6PR0701CA0031.outlook.office365.com (2603:10a6:4:3::41) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.609.9 via Frontend Transport; Tue, 13 Sep 2016 14:30:30 +0000 Received-SPF: Pass (protection.outlook.com: domain of nokia.com designates 131.228.2.240 as permitted sender) receiver=protection.outlook.com; client-ip=131.228.2.240; helo=fihe3nok0734.emea.nsn-net.net; Received: from fihe3nok0734.emea.nsn-net.net (131.228.2.240) by AM1FFO11FD003.mail.protection.outlook.com (10.174.64.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.619.6 via Frontend Transport; Tue, 13 Sep 2016 14:30:30 +0000 Received: from fihe3nok0734.emea.nsn-net.net (localhost [127.0.0.1]) by fihe3nok0734.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id u8DEUCGG003572 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <lng-odp@lists.linaro.org>; Tue, 13 Sep 2016 17:30:12 +0300 Received: from 10.144.19.15 ([10.144.104.92]) by fihe3nok0734.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id u8DEUCG5003526 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NOT) for <lng-odp@lists.linaro.org>; Tue, 13 Sep 2016 17:30:12 +0300 X-HPESVCS-Source-Ip: 10.144.104.92 From: Matias Elo <matias.elo@nokia.com> To: <lng-odp@lists.linaro.org> Date: Tue, 13 Sep 2016 17:30:12 +0300 Message-ID: <1473777012-21850-3-git-send-email-matias.elo@nokia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1473777012-21850-1-git-send-email-matias.elo@nokia.com> References: <1473777012-21850-1-git-send-email-matias.elo@nokia.com> X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:131.228.2.240; IPV:NLI; CTRY:FI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(7916002)(2980300002)(438002)(189002)(199003)(2351001)(50466002)(77096005)(8936002)(450100001)(47776003)(229853001)(50226002)(107886002)(16796002)(305945005)(189998001)(87936001)(110136003)(5003940100001)(48376002)(92566002)(106466001)(36756003)(97736004)(76176999)(11100500001)(50986999)(356003)(5660300001)(81166006)(2950100001)(586003)(19580395003)(81156014)(2906002)(7846002)(33646002)(8676002)(19580405001)(626004)(68736007)(42882005); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0701MB1996; H:fihe3nok0734.emea.nsn-net.net; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; AM1FFO11FD003; 1:0DT4yZ/sqyxfcPBSmzB6idXlGHx06KIWIgy7KV774nJ7b321I6iLWGF0YLqtz+a3NjrrFe/xMBnvdC4ZLHAP7rgCZM4bzodDSSl9NLCxUFlFVEd8VQP4jrJ6a9hn/7Z57uD33r15+3tKxq5AV1aRpuz7b7aQZLdQ98YOgXWLEyuTnU9NAuLxu8vRG783oq3jpLpd0uhqWRysYDmpvEkSRN5hURo/FDqcT19EzDm583dZvKz6R0Z7c+y6XYqfecJiwPPYlstr5mplHEaeX2AKysMmtCfX1zX/q/C16HxXZfr4rcrvlRyaAAYFix0hRz+d33y4hFXXy4H0FhLt0oJoMj5NOWiUu+sR3TthTAIGsdZpCGhepyTdQz4XEnAEu2rDNcvX92qPdFIEznnzQk7EeWPBlxGcEDTyF4VeERcT83Kc9TEXN4BFTFuNDk9zMIKGq/XNoz7/+qVkr/L0FKipsBZL0JFHfOtXtLqtVgh75/U= MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: a387f1b6-7cab-422a-58e7-08d3dbe2837d X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB1996; 2:2eaWo2xLS7F09Vb9fzoBnqXyTwYDY/OXoNNJ29bekfOGaOIHTSDvUhC4x6MHi7mdoiL6JONtWLTpRs/Lid7uXgluE3zWWffV90SW4I5Un7a2kh8tD4mnEDLi/Tr9DyhFdF//VjOvrN3Vb68OFpKX/YzfJDte497NUWYsSerOC2q/OJ4dtcLzS5HITv7btDG/; 3:VeiSvUMEnxKdyu+KyWkwncvgcpKUcQa/ecKON/DHxRyJxfGmgpIoTs7TVLnmcTkayjt5BAP/Z5Ht2RB//9TO1hT9ZMQ2gOMEbuRoZtMhXLBCaeZdwsW7RG2QE1L7lE6z6qiM4BKM8NOubzIUTveSRFkAEK02n+D53K4FuHN5H5Fh2Kk3Nct1gwZHdVo/P8QCi7/BcgT3D1lRpuDbeyhkcQvBO8+q2BKuIyqRZqujwV8lJ74pdYToO8ZhU7jBgBD3wC6NJLXrajips/h6HqTrBA== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501002); SRVR:HE1PR0701MB1996; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB1996; 25:98FBHiBmdLu3QvJYc6noypud7hv+LxWT0FB8HuUiOi8ptSWnrZ3GFXaRs7UhSMX3itQVaqAfOWG+nVjdLqV91cmY1ckb1Os0dTIMbqIA2aElk+FL60imODAuGBLTLQVjHH5G7bZQvewhKa4ZHOJsmBZ7shVm7cZ+redJnISHnGMdgrtQnchAkZF7tE1vR//X35c5jLU+yabB4UkOXb5lSosvkiI8hymamuKx6+9D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HbEBJIUgNfTvvb0tKmcw/c61DCc7v9+XMvWEZ3mXZxRJLTB47RcIslrz2lXwKeAu2VDpW6qica8ru6oNaRb5/ppbmazqMMHI2ZitStE/odXRjx6HfRaIbRTRf5rV5P1DQR8Q/xKVBdyrkXUw3V6CanGJSj87OghCQJEe8ZOxB7ncPQpxtpWu09sQd2rITck33h8RNUEDaS8OiRazFHdAAzTmIgsXAQ+4NvAA/NIQXoImzMXOSWlBBR+4kkr7h4xdvi+ATfSMfv7RpcgX9oUaMBx7HjWJFaVMfY+rz3FzgW1UOdeTU2PS0LFOuNtLhcCZDhr4KS1pcev6KUr/dwE2mF3uQTDY4i9jEbb7Pn2JoXvrY4f0twizZCHdk6PCakw= X-Microsoft-Antispam-PRVS: <HE1PR0701MB199651B299D06C1A9111BC1C87FE0@HE1PR0701MB1996.eurprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(192374486261705)(82608151540597); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(13016025)(13018025)(5005006)(8121501046)(3002001)(10201501046)(6055026); SRVR:HE1PR0701MB1996; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0701MB1996; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB1996; 4:XG8/TTi9Ajl/x9whdUP7SbxMz/RusbRTTddSd0ufP2/wOR1/RR5RW9zXmVIygfDeOeX/+GqK+kHg/COsnPM3a9kjNANvt71NJ6Tsu3Bbs0q+4YXoSkugudF449OBjM5104zGr+IElA0pkQ4yFfkycw72J7DEWj6OltWAXfvTFQ9efsMoCBRrBdquIPRiq98ZfgVyHoo+6k5ilRNCRJcJez5VANjiBQrwuCdkMeTcD3HcYlDPqNjdCDHPyhS+Ce/0/PSsXQP3EjuBo9NLEewupE8xnflCDwQBBzvlHO+LmteLcMjiik9/5dommOR1ZKMEZ3GgFjvcTWtliSnq8Y5f1KwxI0UErrqBqn7YbSBKP3l5MulDU2x50iXdBKwdGHYhORnuCvJ4kGu17ziVqz9qtYcXWg6VUFEmi2XsMO8gg2+pzUPuG7w2caIGXFdrxbrNFVGDnbyS2DOmxVdK14Y8cBsSQF2w4v5A/aLDht8hVj6tGxt+EEC18Ol+qi8UxB8h55aVHrojctXarzIrIIE04w== X-Forefront-PRVS: 0064B3273C X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0701MB1996; 23:yMu3qCkp+pg3im6X+MPFF/ovBdWHu/FpO3LsHpE?= =?us-ascii?Q?sVMvW1vXXZ/5cjF6gRMuC2daWiZv2MdP9ZaNgtEWtIq2lOWnTlAplphuCR84?= =?us-ascii?Q?+o4gYRxyg/D62Fm00mYUL3DR4wsFhAVkHwpO6g2W7yHTc7AzbPenrSlhubGg?= =?us-ascii?Q?UThccVpdko2yIjkhS1sftt+KcVnR8VtNrjVTYiUaZZroJFXMCWHEE1VyPCdF?= =?us-ascii?Q?nTMLS9TRvj4RzTI7q+e5lX8KFYx3Umyort8x2K8/6VpyrUoveWEkAgVqv4m5?= =?us-ascii?Q?inXaU4XyNKq7oI4/bfteIww30yK1/4OvExbws1hz/EnlXG44Sh+rgtR1mnfe?= =?us-ascii?Q?ceUG0EYivlNRvNHOnCaJcnkH6kCaRz29BidMWV3c3ULbBMcI8Zd+cIUjHtAK?= =?us-ascii?Q?MhBkMCPKwcW5uOuv2027rfUwZYxDxjgnx6APu6pdUk3eGPVJvd/l2p7vvKYt?= =?us-ascii?Q?1/BZgYDJmt978hBX42WGniwyJRL3ZF593dWio0J0TiPQn0fWxFDz3Td8Ykgx?= =?us-ascii?Q?N8wjuNaJU3MRZHGpO4MexW2gEX8VVhlN009EOu9eVuAxKYqUpuRhONhmOhHs?= =?us-ascii?Q?2VMVJvzyHaV/xednm7Jh8/Qpewx0+9RwaxKDiMMizc6jxpRJzghwY6kxs7O6?= =?us-ascii?Q?PsZFZN3qbIb7Lp3oMyy0/+X6VirZedQ4OUDSLEUSAa0Py0N6OS+Uw2uqLjuo?= =?us-ascii?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jfIpGJg==; 24:/MXwn5F2RtN/frdhi6xA0ZLf3Q7I+RQEzMKKX7mro8w9OsZ8s4lV6OYlOCfs6qyt56Xw+utMgfzynSS5LDiTkq0d6lD3MbB9tT2awhJN2yg=; 7:DgL4oSMozOZpym8vdQcHwZ9PwpCYTaThuViCQ849zVNSYgbfcRDCI9XOpx5QpSIwGIRs8365JuO3a7hpdhXam4uevkmx9CopBH+mpmHZCSx5EdRumcU12zM8uYKsPEMWEc9vpmOgDcaCNGmTubwf28IqpvOykchGiNbLyL+EPpFG5FwPUZq8i9AfBZbBkkLAaDRtcX605BrURS7N79Zfj+pE2fquW3lt3X+Ly9vC9VviNpSuYXJ3HzNk9/LZDfL5 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Sep 2016 14:30:30.2933 (UTC) X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5d471751-9675-428d-917b-70f44f9630b0; Ip=[131.228.2.240]; Helo=[fihe3nok0734.emea.nsn-net.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0701MB1996 X-Topics: patch Subject: [lng-odp] [PATCH 3/3] linux-gen: packet: identify sctp packets X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" <lng-odp.lists.linaro.org> List-Unsubscribe: <https://lists.linaro.org/mailman/options/lng-odp>, <mailto:lng-odp-request@lists.linaro.org?subject=unsubscribe> List-Archive: <http://lists.linaro.org/pipermail/lng-odp/> List-Post: <mailto:lng-odp@lists.linaro.org> List-Help: <mailto:lng-odp-request@lists.linaro.org?subject=help> List-Subscribe: <https://lists.linaro.org/mailman/listinfo/lng-odp>, <mailto:lng-odp-request@lists.linaro.org?subject=subscribe> Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" <lng-odp-bounces@lists.linaro.org> |
diff --git a/platform/linux-generic/include/protocols/ip.h b/platform/linux-generic/include/protocols/ip.h index d5277fb..6c089e3 100644 --- a/platform/linux-generic/include/protocols/ip.h +++ b/platform/linux-generic/include/protocols/ip.h @@ -154,6 +154,8 @@ typedef struct ODP_PACKED { #define _ODP_IPPROTO_FRAG 0x2C /**< IPv6 Fragment (44) */ #define _ODP_IPPROTO_AH 0x33 /**< Authentication Header (51) */ #define _ODP_IPPROTO_ESP 0x32 /**< Encapsulating Security Payload (50) */ +#define _ODP_IPPROTO_SCTP 0x84 /**< Stream Control Transmission protocol + (132) */ #define _ODP_IPPROTO_INVALID 0xFF /**< Reserved invalid by IANA */ /**@}*/ diff --git a/platform/linux-generic/odp_packet.c b/platform/linux-generic/odp_packet.c index df6fd1e..714794a 100644 --- a/platform/linux-generic/odp_packet.c +++ b/platform/linux-generic/odp_packet.c @@ -1328,6 +1328,10 @@ int packet_parse_common(packet_parser_t *prs, const uint8_t *ptr, prs->input_flags.ipsec_esp = 1; break; + case _ODP_IPPROTO_SCTP: + prs->input_flags.sctp = 1; + break; + default: prs->input_flags.l4 = 0; prs->l4_offset = ODP_PACKET_OFFSET_INVALID;
Signed-off-by: Matias Elo <matias.elo@nokia.com> --- platform/linux-generic/include/protocols/ip.h | 2 ++ platform/linux-generic/odp_packet.c | 4 ++++ 2 files changed, 6 insertions(+) -- 2.7.4