From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smartserver.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by dpdk.org (Postfix) with ESMTP id 536481B550 for ; Tue, 8 Jan 2019 17:48:21 +0100 (CET) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Date: Tue, 8 Jan 2019 17:48:20 +0100 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35B425B1@smartserver.smartshare.dk> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [RFC] function to parse packet headers Thread-Index: AdSncfX4daYkfyreRIS2nCcHGdzslw== From: =?utf-8?B?TW9ydGVuIEJyw7hydXA=?= To: Subject: [dpdk-dev] [RFC] function to parse packet headers X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jan 2019 16:48:21 -0000 SSdtIHZvbHVudGVlcmluZyB0byBwcm92aWRlIGEgZnVuY3Rpb24gdG8gc2V0IHRoZSBtYnVmJ3Mg bDJfbGVuL2wzX2xlbi8uLi4gKHR4X29mZmxvYWQpIGZpZWxkcyBieSBwYXJzaW5nIHRoZSBwYWNr ZXQgaGVhZGVycywgcG9zc2libHkgYXNzaXN0ZWQgYnkgdGhlIHBhY2tldF90eXBlIGZpZWxkLCBp ZiBzZXQuDQoNCkknbSBzZWVraW5nIGluaXRpYWwgZmVlZGJhY2sgYmVmb3JlIHN1Ym1pdHRpbmcg bXkgZmlyc3QgdmVyc2lvbiBvZiB0aGUgY29kZS4NCg0KVGhlIHNpbmdsZSBwYWNrZXQgcGFyc2Vy IGZ1bmN0aW9uIGhlYWRlciBpcyBzdHJhaWdodGZvcndhcmQsIGFuZCByZXR1cm5zIDAgaWYgT0sg YW5kIC0xIGlmIHRoZSB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