Lines Matching defs:this

37   register STPM_T* this;
40 this = stpapi_stpm_find (vlan_id);
41 if (this) { /* it had just been created :( */
43 return this;
46 this = STP_stpm_create (vlan_id, name);
47 if (! this) { /* can't create stpm :( */
53 return this;
60 register STPM_T* this;
65 this = stpapi_stpm_find (vlan_id);
80 if (! this) { /* it had not yet been created */
83 this = stp_in_stpm_create (vlan_id, name, &err_code);
84 if (! this) {
94 if (this->admin_state == admin_state) { /* nothing to do :) */
98 rc = STP_stpm_enable (this, admin_state);
104 STP_stpm_delete (this);
114 register STPM_T* this;
116 for (this = STP_stpm_get_the_list (); this; this = this->next)
117 if (vlan_id == this->vlan_id)
118 return this;
124 _stpapi_port_find (STPM_T* this, int port_index)
128 for (port = this->ports; port; port = port->next)
240 register STPM_T* this;
245 this = stpapi_stpm_find (vlan_id);
247 if (!this) { /* it had not yet been created :( */
252 if (this->admin_state != STP_DISABLED) {
255 uid_cfg->stp_enabled = this->admin_state;
257 if (this->ForceVersion != 2) {
260 uid_cfg->force_version = this->ForceVersion;
262 if (this->BrId.prio != DEF_BR_PRIO) {
265 uid_cfg->bridge_priority = this->BrId.prio;
267 if (this->BrTimes.MaxAge != DEF_BR_MAXAGE) {
270 uid_cfg->max_age = this->BrTimes.MaxAge;
272 if (this->BrTimes.HelloTime != DEF_BR_HELLOT) {
275 uid_cfg->hello_time = this->BrTimes.HelloTime;
277 if (this->BrTimes.ForwardDelay != DEF_BR_FWDELAY) {
280 uid_cfg->forward_delay = this->BrTimes.ForwardDelay;
291 register STPM_T* this;
295 this = stpapi_stpm_find (vlan_id);
297 if (!this) { /* it had not yet been created :( */
302 port = _stpapi_port_find (this, port_index);
340 register STPM_T* this;
344 this = stpapi_stpm_find (vlan_id);
346 if (!this) { /* it had not yet been created :( */
351 port = _stpapi_port_find (this, entry->port_no);
428 register STPM_T* this;
431 this = stpapi_stpm_find (vlan_id);
433 if (!this) { /* it had not yet been created :( */
438 (void) strncpy (entry->vlan_name, this->name, NAME_LEN);
439 entry->vlan_id = this->vlan_id;
440 _conv_br_id_2_uid (&this->rootPrio.root_bridge, &entry->designated_root);
441 entry->root_path_cost = this->rootPrio.root_path_cost;
442 entry->root_port = this->rootPortId;
443 entry->max_age = this->rootTimes.MaxAge;
444 entry->forward_delay = this->rootTimes.ForwardDelay;
445 entry->hello_time = this->rootTimes.HelloTime;
447 _conv_br_id_2_uid (&this->BrId, &entry->bridge_id);
449 entry->stp_enabled = this->admin_state;
451 entry->timeSince_Topo_Change = this->timeSince_Topo_Change;
452 entry->Topo_Change_Count = this->Topo_Change_Count;
453 entry->Topo_Change = this->Topo_Change;
489 "clearFDB", (int) port_index, "this port", "disable port");
578 /* this is not a proper 802.3 pkt! :( */
604 register STPM_T* this;
614 this = stpapi_stpm_find (vlan_id);
615 if (! this) { /* the stpm had not yet been created :( */
620 if (STP_DISABLED == this->admin_state) {/* the stpm had not yet been enabled :( */
625 port = _stpapi_port_find (this, port_index);
660 _stp_in_enable_port_on_stpm (this, port->port_index, True);
673 (void) STP_stpm_update (this);
705 register STPM_T* this;
757 this = stpapi_stpm_find (vlan_id);
760 if (! this) { /* it had not yet been created */
761 this = stp_in_stpm_create (vlan_id, uid_cfg->vlan_name, &err_code);
762 if (! this) {
768 prev_prio = this->BrId.prio;
769 this->BrId.prio = old.bridge_priority;
770 if (STP_ENABLED == this->admin_state) {
771 if (0 != STP_stpm_check_bridge_priority (this)) {
772 this->BrId.prio = prev_prio;
779 this->BrTimes.MaxAge = old.max_age;
780 this->BrTimes.HelloTime = old.hello_time;
781 this->BrTimes.ForwardDelay = old.forward_delay;
782 this->ForceVersion = (PROTOCOL_VERSION_T) old.force_version;
786 STP_DISABLED == this->admin_state) {
791 STP_stpm_delete (this);
799 if (! enabled_here && STP_DISABLED != this->admin_state) {
800 STP_stpm_update_after_bridge_management (this);
810 register STPM_T* this;
814 this = stpapi_stpm_find (vlan_id);
815 if (! this) { /* it had not yet been created :( */
821 port = _stpapi_port_find (this, port_index);
827 if (this->ForceVersion >= NORMAL_RSTP)
881 (void) STP_stpm_update (this);
894 register STPM_T* this;
899 this = stpapi_stpm_find (vlan_id);
900 if (! this) { /* it had not yet been created :( */
906 port = _stpapi_port_find (this, port_no);
938 STPM_T *this;
943 this = stpapi_stpm_find (vlan_id);
945 if (!this) { /* it had not yet been created :( */
950 port = this->ports;
952 if (! STP_port_create (this, port_index)) {
960 rc = STP_stpm_start (this);
970 STPM_T *this;
974 this = stpapi_stpm_find (vlan_id);
976 if (!this) { /* it had not yet been created :( */
981 port = _stpapi_port_find (this, port_index);
989 if (!this->ports)
990 STP_stpm_stop (this);
999 STPM_T *this;
1002 this = stpapi_stpm_find (vlan_id);
1003 *priority = this->BrId.prio;
1004 (void) memcpy(mac, this->BrId.addr, 6);