thom311 / libnl

Netlink Library Suite
GNU Lesser General Public License v2.1
419 stars 313 forks source link

Request flag is missing? #275

Open fractalb opened 3 years ago

fractalb commented 3 years ago

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

chengyechun commented 2 years ago

In order to avoiding the Devil's Numbers?