I just noticed this rename when building libreswan against 10. Can I suggest adding: #define sadb_x_policy_flags sadb_x_policy_flags to signal this change to consumers? Or perhaps there is some other way to detect if this change is present?
As an aside, FreeBSD hid their rename by defining: #define sadb_x_policy_reserved sadb_x_policy_scope from my pov that is less interesting. Andrew PS: the code is dumping structures