SOCK_ and IPPROTO_ conversions