The protocol must not set the read and write callbacks, they're specific to the socket layer. Move them to sock_ops instead.