uint32_t len;
struct nl_addr* addr;
- if (!(tmpl->ce_mask & XFRM_SP_ATTR_DIR) &&
- (!(tmpl->ce_mask & XFRM_SP_ATTR_INDEX) ||
+ if (!(tmpl->ce_mask & XFRM_SP_ATTR_DIR) ||
+ (!(tmpl->ce_mask & XFRM_SP_ATTR_INDEX) &&
!(tmpl->ce_mask & XFRM_SP_ATTR_SEL)))
return -NLE_MISSING_ATTR;
struct nl_addr* addr;
uint32_t len;
- if (!(tmpl->ce_mask & XFRM_SP_ATTR_DIR) &&
- (!(tmpl->ce_mask & XFRM_SP_ATTR_INDEX) ||
+ if (!(tmpl->ce_mask & XFRM_SP_ATTR_DIR) ||
+ (!(tmpl->ce_mask & XFRM_SP_ATTR_INDEX) &&
!(tmpl->ce_mask & XFRM_SP_ATTR_SEL)))
return -NLE_MISSING_ATTR;