settingByName

Look up the 16-bit setting key for a serialisation name, or -1 if the name is unknown. The port of setting_by_name() (settings_pack.cpp), including the "peer_tos" backwards-compatibility alias for peer_dscp.