> Is ENODEV the right error here? > Just a quick look at a man page, and > I am under impression something like > EPROTONOSUPPORT or ESOCKNOSUPPORT > may suit?
I used ENODEV because this code is returned some lines below when !new_transport(e.g. valid transport not found). But i think you codes will be also ok.