if (!(msg = nlmsg_alloc_simple(XFRM_MSG_GETSA, 0)))
I think that NLM_F_REQUEST flag should have been the second argument in the above function call nlmsg_alloc_simple.
This code is from xfrmnl_sa_build_get_request function defined in the file lib/xfrm/sa.c
if (!(msg = nlmsg_alloc_simple(XFRM_MSG_GETSA, 0)))
I think thatNLM_F_REQUEST
flag should have been the second argument in the above function callnlmsg_alloc_simple
.This code is from
xfrmnl_sa_build_get_request
function defined in the file lib/xfrm/sa.c