Lines Matching defs:stpm

26 #include "stpm.h"
47 if (! this) { /* can't create stpm :( */
69 register STPM_T* stpm;
71 for (stpm = STP_stpm_get_the_list (); stpm; stpm = stpm->next) {
72 if (STP_DISABLED != stpm->admin_state) {
73 STP_OUT_set_hardware_mode (stpm->vlan_id, STP_DISABLED);
74 (void) STP_stpm_enable (stpm, STP_DISABLED);
198 _stp_in_enable_port_on_stpm (STPM_T* stpm, int port_index, Bool enable)
202 port = _stpapi_port_find (stpm, port_index);
224 STP_port_init (port, stpm, False);
303 if (! port) {/* port is absent in the stpm :( */
352 if (! port) {/* port is absent in the stpm :( */
462 register STPM_T* stpm;
466 for (stpm = STP_stpm_get_the_list (); stpm; stpm = stpm->next) {
467 if (vlan_id == stpm->vlan_id) {
468 if (stpm->name)
469 (void) strncpy (name, stpm->name, buffsize);
483 register STPM_T* stpm;
494 for (stpm = STP_stpm_get_the_list (); stpm; stpm = stpm->next) {
495 if (STP_ENABLED != stpm->admin_state) continue;
497 _stp_in_enable_port_on_stpm (stpm, port_index, enable);
498 /* STP_stpm_update (stpm);*/
508 register STPM_T* stpm;
512 for (stpm = STP_stpm_get_the_list (); stpm; stpm = stpm->next) {
513 if (STP_ENABLED != stpm->admin_state) continue;
515 port = _stpapi_port_find (stpm, port_index);
534 register STPM_T* stpm;
538 for (stpm = STP_stpm_get_the_list (); stpm; stpm = stpm->next) {
539 if (STP_ENABLED != stpm->admin_state) continue;
541 port = _stpapi_port_find (stpm, port_index);
615 if (! this) { /* the stpm had not yet been created :( */
620 if (STP_DISABLED == this->admin_state) {/* the stpm had not yet been enabled :( */
626 if (! port) {/* port is absent in the stpm :( */
628 stp_trace ("RX bpdu vlan_id=%d port=%d port is absent in the stpm :(", (int) vlan_id, (int) port_index);
682 register STPM_T* stpm;
686 for (stpm = STP_stpm_get_the_list (); stpm; stpm = stpm->next) {
687 if (STP_ENABLED == stpm->admin_state) {
688 /* stp_trace ("STP_IN_one_second vlan_id=%d", (int) stpm->vlan_id); */
689 STP_stpm_one_second (stpm);
822 if (! port) {/* port is absent in the stpm :( */
907 if (! port) {/* port is absent in the stpm :( */
982 if (! port) {/* port is absent in the stpm :( */