diff mbox series

[API-NEXT,v10,2/2] api: ipsec: document usage of IPv4/IPv6 flags on inbound packets

Message ID 1516482018-22768-3-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [API-NEXT,v10,1/2] api: ipsec: document TFC padding usage | expand

Commit Message

Github ODP bot Jan. 20, 2018, 9 p.m. UTC
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


Document usage of IPv4/IPv6 flags on inbound packets. Provide special
case for TFC dummy packets, which are marked by both flags being
cleared.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 329 (lumag:ipsec-tfc)
 ** https://github.com/Linaro/odp/pull/329
 ** Patch: https://github.com/Linaro/odp/pull/329.patch
 ** Base sha: f925f103c90591776f73863d30159357b08bf71e
 ** Merge commit sha: f88ee0ea868ba087f98e7c1a8c9d3e3e85d3a4c9
 **/
 include/odp/api/spec/ipsec.h | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index 892a6281d..8ad8d268e 100644
--- a/include/odp/api/spec/ipsec.h
+++ b/include/odp/api/spec/ipsec.h
@@ -1216,9 +1216,12 @@  typedef struct odp_ipsec_status_t {
  * Each successfully transformed packet has a valid value for these metadata
  * regardless of the inner packet parse configuration
  * (odp_ipsec_inbound_config_t):
- * - L3 offset: Offset to the first byte of the (outmost) IP header
- * - pktio:     For inline IPSEC processed packets, original packet input
- *              interface
+ * - L3 offset:       Offset to the first byte of the (outmost) IP header
+ * - IPv4/IPv6 flags: These flags can be used to determine packet contents.
+ *                    If neither IPv4 nor IPv6 flag are set, received packet is
+ *                    TFC dummy packet and should be dropped by an application
+ * - pktio:           For inline IPSEC processed packets, original packet input
+ *                    interface
  *
  * Other metadata for parse results and error checks depend on configuration
  * (selected parse and error check levels).