• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/samba-3.5.8/source4/libcli/smb_composite/

Lines Matching refs:state

34 	struct fsinfo_state *state;
35 state = talloc_get_type(c->private_data, struct fsinfo_state);
37 status = smb_composite_connect_recv(state->creq, c);
40 state->fsinfo = talloc(state, union smb_fsinfo);
41 NT_STATUS_HAVE_NO_MEMORY(state->fsinfo);
43 state->fsinfo->generic.level = io->in.level;
45 state->req = smb_raw_fsinfo_send(state->connect->out.tree,
46 state,
47 state->fsinfo);
48 NT_STATUS_HAVE_NO_MEMORY(state->req);
50 state->req->async.private_data = c;
51 state->req->async.fn = fsinfo_raw_handler;
53 state->stage = FSINFO_QUERY;
62 struct fsinfo_state *state;
63 state = talloc_get_type(c->private_data, struct fsinfo_state);
65 status = smb_raw_fsinfo_recv(state->req, state, state->fsinfo);
68 state->io->out.fsinfo = state->fsinfo;
70 c->state = COMPOSITE_STATE_DONE;
84 struct fsinfo_state *state = talloc_get_type(creq->private_data, struct fsinfo_state);
88 switch (state->stage) {
90 creq->status = fsinfo_connect(creq, state->io);
94 creq->status = fsinfo_query(creq, state->io);
99 creq->state = COMPOSITE_STATE_ERROR;
102 if (creq->state >= COMPOSITE_STATE_DONE && creq->async.fn) {
109 to adapt both for the same state machine in fsinfo_state_handler()
133 struct fsinfo_state *state;
138 state = talloc(c, struct fsinfo_state);
139 if (state == NULL) goto failed;
141 state->io = io;
143 state->connect = talloc(state, struct smb_composite_connect);
145 if (state->connect == NULL) goto failed;
147 state->connect->in.dest_host = io->in.dest_host;
148 state->connect->in.dest_ports = io->in.dest_ports;
149 state->connect->in.socket_options = io->in.socket_options;
150 state->connect->in.called_name = io->in.called_name;
151 state->connect->in.service = io->in.service;
152 state->connect->in.service_type = io->in.service_type;
153 state->connect->in.credentials = io->in.credentials;
154 state->connect->in.fallback_to_anonymous = false;
155 state->connect->in.workgroup = io->in.workgroup;
156 state->connect->in.iconv_convenience = io->in.iconv_convenience;
157 state->connect->in.gensec_settings = io->in.gensec_settings;
159 state->connect->in.options = tree->session->transport->options;
160 state->connect->in.session_options = tree->session->options;
162 c->state = COMPOSITE_STATE_IN_PROGRESS;
163 state->stage = FSINFO_CONNECT;
164 c->private_data = state;
166 state->creq = smb_composite_connect_send(state->connect, state,
169 if (state->creq == NULL) goto failed;
171 state->creq->async.private_data = c;
172 state->creq->async.fn = fsinfo_composite_handler;
190 struct fsinfo_state *state = talloc_get_type(c->private_data, struct fsinfo_state);
191 talloc_steal(mem_ctx, state->io->out.fsinfo);