raw: Fix: check type for SOCK_DGRAM instead of SOCK_RAW.