net: Add flags for port mapping protocols
Summary:
This is a backport of core#18077 [4/13]
https://github.com/bitcoin/bitcoin/pull/18077/commits/4e91b1e24d96e0cdccdd2a3ed034413f3ba6bae6
Depends on D12072
Test Plan: ninja all check-all
Reviewers: #bitcoin_abc, Fabien
Reviewed By: #bitcoin_abc, Fabien
Differential Revision: https://reviews.bitcoinabc.org/D12071