return ctl_error(Posix.EINVAL);
if (state != INET_STATE_OPEN)
return ctl_xerror(EXBADSEQ);
ProtocolFamily family = ProtocolFamily.fromOrdinal(cmd.get());
InetSocketAddress addr = inet_set_address(sfamily, cmd);
if (addr == null)
return ctl_error(Posix.EINVAL);