Lines Matching defs:vlan_id
35 stp_in_stpm_create (int vlan_id, char* name, int* err_code)
40 this = stpapi_stpm_find (vlan_id);
46 this = STP_stpm_create (vlan_id, name);
57 _stp_in_stpm_enable (int vlan_id, char* name,
65 this = stpapi_stpm_find (vlan_id);
68 if (! vlan_id) { /* STP_IN_stop_all (); */
73 STP_OUT_set_hardware_mode (stpm->vlan_id, STP_DISABLED);
83 this = stp_in_stpm_create (vlan_id, name, &err_code);
100 STP_OUT_set_hardware_mode (vlan_id, admin_state);
112 stpapi_stpm_find (int vlan_id)
117 if (vlan_id == this->vlan_id)
238 STP_IN_stpm_get_cfg (IN int vlan_id, OUT UID_STP_CFG_T* uid_cfg)
245 this = stpapi_stpm_find (vlan_id);
289 STP_IN_port_get_cfg (int vlan_id, int port_index, UID_STP_PORT_CFG_T* uid_cfg)
295 this = stpapi_stpm_find (vlan_id);
338 STP_IN_port_get_state (IN int vlan_id, INOUT UID_STP_PORT_STATE_T* entry)
344 this = stpapi_stpm_find (vlan_id);
426 STP_IN_stpm_get_state (IN int vlan_id, OUT UID_STP_STATE_T* entry)
431 this = stpapi_stpm_find (vlan_id);
439 entry->vlan_id = this->vlan_id;
460 STP_IN_stpm_get_name_by_vlan_id (int vlan_id, char* name, size_t buffsize)
467 if (vlan_id == stpm->vlan_id) {
601 STP_IN_rx_bpdu (int vlan_id, int port_index, BPDU_T* bpdu, size_t len)
614 this = stpapi_stpm_find (vlan_id);
628 stp_trace ("RX bpdu vlan_id=%d port=%d port is absent in the stpm :(", (int) vlan_id, (int) port_index);
688 /* stp_trace ("STP_IN_one_second vlan_id=%d", (int) stpm->vlan_id); */
700 STP_IN_stpm_set_cfg (IN int vlan_id,
709 if (0 != STP_IN_stpm_get_cfg (vlan_id, &old)) {
710 STP_OUT_get_init_stpm_cfg (vlan_id, &old);
743 rc = _stp_in_stpm_enable (vlan_id, uid_cfg->vlan_name, STP_DISABLED);
757 this = stpapi_stpm_find (vlan_id);
761 this = stp_in_stpm_create (vlan_id, uid_cfg->vlan_name, &err_code);
787 rc = _stp_in_stpm_enable (vlan_id, uid_cfg->vlan_name, uid_cfg->stp_enabled);
807 STP_IN_port_set_cfg (IN int vlan_id, IN int port_index,
814 this = stpapi_stpm_find (vlan_id);
817 stp_trace ("RSTP instance with tag %d hasn't been created\n", vlan_id);
892 int vlan_id, int port_no)
899 this = stpapi_stpm_find (vlan_id);
902 stp_trace ("RSTP instance with tag %d hasn't been created\n", vlan_id);
936 STP_IN_port_add(int vlan_id, int port_index)
943 this = stpapi_stpm_find (vlan_id);
968 STP_IN_port_remove(int vlan_id, int port_index)
974 this = stpapi_stpm_find (vlan_id);
997 STP_IN_get_bridge_id(int vlan_id, unsigned short *priority, unsigned char *mac)
1002 this = stpapi_stpm_find (vlan_id);