Lines Matching refs:target

52 static struct target *target;  variable
77 targets target
80 target: STR OPENING_BRACKET target_entries CLOSING_BRACKET
84 target->t_nickname = $1;
85 target = target_new(conf);
142 if (target->t_name != NULL)
144 target->t_name = $3;
150 if (target->t_address != NULL)
152 target->t_address = $3;
158 if (target->t_initiator_name != NULL)
160 target->t_initiator_name = $3;
166 if (target->t_initiator_address != NULL)
168 target->t_initiator_address = $3;
174 if (target->t_initiator_alias != NULL)
176 target->t_initiator_alias = $3;
182 if (target->t_user != NULL)
184 target->t_user = $3;
190 if (target->t_secret != NULL)
192 target->t_secret = $3;
198 if (target->t_mutual_user != NULL)
200 target->t_mutual_user = $3;
206 if (target->t_mutual_secret != NULL)
208 target->t_mutual_secret = $3;
214 if (target->t_auth_method != AUTH_METHOD_UNSPECIFIED)
217 target->t_auth_method = AUTH_METHOD_NONE;
219 target->t_auth_method = AUTH_METHOD_CHAP;
228 if (target->t_header_digest != DIGEST_UNSPECIFIED)
231 target->t_header_digest = DIGEST_NONE;
233 target->t_header_digest = DIGEST_CRC32C;
242 if (target->t_data_digest != DIGEST_UNSPECIFIED)
245 target->t_data_digest = DIGEST_NONE;
247 target->t_data_digest = DIGEST_CRC32C;
256 if (target->t_session_type != SESSION_TYPE_UNSPECIFIED)
259 target->t_session_type = SESSION_TYPE_NORMAL;
261 target->t_session_type = SESSION_TYPE_DISCOVERY;
270 if (target->t_enable != ENABLE_UNSPECIFIED)
272 target->t_enable = parse_enable($3);
273 if (target->t_enable == ENABLE_UNSPECIFIED)
281 if (target->t_offload != NULL)
283 target->t_offload = $3;
289 if (target->t_protocol != PROTOCOL_UNSPECIFIED)
292 target->t_protocol = PROTOCOL_ISCSI;
294 target->t_protocol = PROTOCOL_ISER;
311 if (target->t_dscp != -1)
325 target->t_dscp = tmp;
327 | DSCP EQUALS BE { target->t_dscp = IPTOS_DSCP_CS0 >> 2 ; }
328 | DSCP EQUALS EF { target->t_dscp = IPTOS_DSCP_EF >> 2 ; }
329 | DSCP EQUALS CS0 { target->t_dscp = IPTOS_DSCP_CS0 >> 2 ; }
330 | DSCP EQUALS CS1 { target->t_dscp = IPTOS_DSCP_CS1 >> 2 ; }
331 | DSCP EQUALS CS2 { target->t_dscp = IPTOS_DSCP_CS2 >> 2 ; }
332 | DSCP EQUALS CS3 { target->t_dscp = IPTOS_DSCP_CS3 >> 2 ; }
333 | DSCP EQUALS CS4 { target->t_dscp = IPTOS_DSCP_CS4 >> 2 ; }
334 | DSCP EQUALS CS5 { target->t_dscp = IPTOS_DSCP_CS5 >> 2 ; }
335 | DSCP EQUALS CS6 { target->t_dscp = IPTOS_DSCP_CS6 >> 2 ; }
336 | DSCP EQUALS CS7 { target->t_dscp = IPTOS_DSCP_CS7 >> 2 ; }
337 | DSCP EQUALS AF11 { target->t_dscp = IPTOS_DSCP_AF11 >> 2 ; }
338 | DSCP EQUALS AF12 { target->t_dscp = IPTOS_DSCP_AF12 >> 2 ; }
339 | DSCP EQUALS AF13 { target->t_dscp = IPTOS_DSCP_AF13 >> 2 ; }
340 | DSCP EQUALS AF21 { target->t_dscp = IPTOS_DSCP_AF21 >> 2 ; }
341 | DSCP EQUALS AF22 { target->t_dscp = IPTOS_DSCP_AF22 >> 2 ; }
342 | DSCP EQUALS AF23 { target->t_dscp = IPTOS_DSCP_AF23 >> 2 ; }
343 | DSCP EQUALS AF31 { target->t_dscp = IPTOS_DSCP_AF31 >> 2 ; }
344 | DSCP EQUALS AF32 { target->t_dscp = IPTOS_DSCP_AF32 >> 2 ; }
345 | DSCP EQUALS AF33 { target->t_dscp = IPTOS_DSCP_AF33 >> 2 ; }
346 | DSCP EQUALS AF41 { target->t_dscp = IPTOS_DSCP_AF41 >> 2 ; }
347 | DSCP EQUALS AF42 { target->t_dscp = IPTOS_DSCP_AF42 >> 2 ; }
348 | DSCP EQUALS AF43 { target->t_dscp = IPTOS_DSCP_AF43 >> 2 ; }
355 if (target->t_pcp != -1)
368 target->t_pcp = tmp;
376 if (target->t_pingtimeout != -1)
384 target->t_pingtimeout = tmp;
392 if (target->t_logintimeout != -1)
400 target->t_logintimeout = tmp;
448 target = target_new(conf); in conf_new_from_file()
460 assert(target->t_nickname == NULL); in conf_new_from_file()
461 target_delete(target); in conf_new_from_file()