Home
last modified time | relevance | path

Searched refs:active_ncp (Results 1 – 9 of 9) sorted by relevance

/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/
H A Dmain.c236 (void) strlcpy(active_ncp, NWAM_NCP_NAME_AUTOMATIC, in lookup_daemon_properties()
239 (void) strlcpy(active_ncp, active_ncp_tmp, NWAM_MAX_NAME_LEN); in lookup_daemon_properties()
441 if (nwamd_ncp_action(active_ncp, NWAM_ACTION_ENABLE) != 0) in main()
442 pfail("Initial enable failed for active NCP %s", active_ncp); in main()
H A Dncp.c50 char active_ncp[NWAM_MAX_NAME_LEN]; variable
98 if (strcmp(active_ncp, new_ncp) == 0 && !initial_ncp_enable) { in nwamd_ncp_handle_enable_event()
201 (void) strlcpy(active_ncp, event->event_object, in nwamd_ncp_handle_state_event()
202 sizeof (active_ncp)); in nwamd_ncp_handle_state_event()
H A Dncp.h42 extern char active_ncp[];
H A Dncu.c585 "(re)intializing NCUs for NCP %s", active_ncp); in nwamd_init_ncus()
602 active_ncp); in nwamd_fini_ncus()
1202 nlog(LOG_DEBUG, "NCP %s", active_ncp); in nwamd_log_ncus()
1419 if (strcmp(active_ncp, NWAM_NCP_NAME_AUTOMATIC) == 0 && in nwamd_ncu_handle_link_action_event()
1632 if (strcmp(active_ncp, NWAM_NCP_NAME_AUTOMATIC) == 0 && in nwamd_walk_physical_configuration()
1656 if (strcmp(active_ncp, NWAM_NCP_NAME_AUTOMATIC) != 0 || in nwamd_walk_physical_configuration()
1932 active_ncp) != 0) { in nwamd_ncu_handle_action_event()
H A Ddoor_if.c405 if (strcmp(name, active_ncp) == 0) { in nwamd_door_req_action()
467 is_active = (strcmp(active_ncp, name) == 0); in nwamd_door_req_state()
H A Dllp.c486 (void) strlcpy(active_ncp, NWAM_NCP_NAME_USER, in nwamd_handle_upgrade()
H A Dconditions.c138 active = (strcasecmp(active_ncp, name) == 0); in test_condition_ncp()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/nwamadm/
H A Dnwamadm.c269 char *active_ncp; in determine_active_ncp() local
273 if (nwam_walk_ncps(active_ncp_callback, &active_ncp, 0, NULL) in determine_active_ncp()
275 if (active_ncp == NULL) in determine_active_ncp()
279 ret = nwam_ncp_read(active_ncp, 0, &ncph); in determine_active_ncp()
280 free(active_ncp); in determine_active_ncp()
/illumos-gate/usr/src/lib/libnwam/common/
H A Dlibnwam_ncp.c589 char *active_ncp, *name; in nwam_ncp_is_active() local
601 NWAM_PROP_ACTIVE_NCP, &active_ncp) != NWAM_SUCCESS) in nwam_ncp_is_active()
604 ret = (strcmp(name, active_ncp) == 0); in nwam_ncp_is_active()
606 free(active_ncp); in nwam_ncp_is_active()