Skip to content

Commit

Permalink
api: ipsec: outbound operation option flags
Browse files Browse the repository at this point in the history
Add flags to select which options application uses. Currently,
there's no ambiguity, but as soon as there are multiple options
implementation needs to know which options are used and which
are ignored.

Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>
Reviewed-by: Balasubramanian Manoharan <bala.manoharan@linaro.org>
Reviewed-by:  Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
  • Loading branch information
Petri Savolainen authored and muvarov committed Feb 22, 2018
1 parent f586a07 commit 0977cf1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions include/odp/api/spec/ipsec.h
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,20 @@ typedef struct odp_ipsec_op_flag_t {
* These may be used to override some SA level options
*/
typedef struct odp_ipsec_out_opt_t {
/** Union of all flag bits */
union {
/** Option flags. Set flag for those options that are
* used, all other options are ignored. */
struct {
/** Use fragmentation mode option */
uint32_t frag_mode: 1;

} flag;

/** All flag bits */
uint32_t all_flags;
};

/** Fragmentation mode */
odp_ipsec_frag_mode_t frag_mode;

Expand Down

0 comments on commit 0977cf1

Please sign in to comment.