return a packet with operation and retval