question about

Stefan Metzmacher metze at samba.org
Mon Mar 26 21:53:02 UTC 2018


Am 26.03.2018 um 22:50 schrieb Jeremy Allison via samba-technical:
> On Sat, Mar 24, 2018 at 12:53:43PM +0800, ssdl.566 via samba-technical wrote:
>> Hi Jeremy:
>>           I have a question about smbXsrv_open_update function call in smb2_create process.
>>
>>
>>          if (update_open ) {
>> op->global->create_guid = _create_guid;
>>
>>
>>                         what is create_guid field used for ? is it just used in durable connect process?
> 
> Yes, I think so.

No, open_persistent_id is used for the durable reconnect,
the create guid is new for the durable v2 context
and is used for replay detection (needed for multichannel and presistent
handles)

        if (state->dhnc != NULL) {
                state->persistent_id = BVAL(state->dhnc->data.data, 0);
                state->do_durable_reconnect = true;
        }

        if (state->dh2c != NULL) {
                const uint8_t *p = state->dh2c->data.data;
                DATA_BLOB create_guid_blob;

                state->persistent_id = BVAL(p, 0);
                create_guid_blob = data_blob_const(p + 16, 16);

                status = GUID_from_ndr_blob(&create_guid_blob,
                                            &state->_create_guid);
                if (tevent_req_nterror(req, status)) {
                        return;
                }

                state->create_guid = &state->_create_guid;
                state->do_durable_reconnect = true;
        }

metze

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20180326/26a7fded/signature.sig>


More information about the samba-technical mailing list