File tree Expand file tree Collapse file tree 4 files changed +40
-41
lines changed Expand file tree Collapse file tree 4 files changed +40
-41
lines changed Original file line number Diff line number Diff line change @@ -122,22 +122,21 @@ netsnmp_variable_list * lldpRemManAddrTable_get_next_data_point (
122
122
int error ;
123
123
124
124
iterator = (pf_port_iterator_t * )* my_loop_context ;
125
- port = pf_snmp_get_next_port (iterator );
126
- if (port == 0 )
127
- {
128
- return NULL ;
129
- }
130
125
131
- error = pf_snmp_get_peer_timestamp (pnet , port , & timestamp );
132
- if (error )
126
+ do
133
127
{
134
- return NULL ;
135
- }
136
- error = pf_snmp_get_peer_management_address (pnet , port , & address );
137
- if (error )
138
- {
139
- return NULL ;
140
- }
128
+ port = pf_snmp_get_next_port (iterator );
129
+ if (port == 0 )
130
+ {
131
+ return NULL ;
132
+ }
133
+
134
+ error = pf_snmp_get_peer_timestamp (pnet , port , & timestamp );
135
+ if (error == 0 )
136
+ {
137
+ error = pf_snmp_get_peer_management_address (pnet , port , & address );
138
+ }
139
+ } while (error );
141
140
142
141
snmp_set_var_typed_integer (idx , ASN_TIMETICKS , timestamp );
143
142
idx = idx -> next_variable ;
Original file line number Diff line number Diff line change @@ -118,17 +118,17 @@ netsnmp_variable_list * lldpRemTable_get_next_data_point (
118
118
int error ;
119
119
120
120
iterator = (pf_port_iterator_t * )* my_loop_context ;
121
- port = pf_snmp_get_next_port (iterator );
122
- if (port == 0 )
123
- {
124
- return NULL ;
125
- }
126
121
127
- error = pf_snmp_get_peer_timestamp (pnet , port , & timestamp );
128
- if (error )
122
+ do
129
123
{
130
- return NULL ;
131
- }
124
+ port = pf_snmp_get_next_port (iterator );
125
+ if (port == 0 )
126
+ {
127
+ return NULL ;
128
+ }
129
+
130
+ error = pf_snmp_get_peer_timestamp (pnet , port , & timestamp );
131
+ } while (error );
132
132
133
133
snmp_set_var_typed_integer (idx , ASN_TIMETICKS , timestamp );
134
134
idx = idx -> next_variable ;
Original file line number Diff line number Diff line change @@ -118,17 +118,17 @@ netsnmp_variable_list * lldpXPnoRemTable_get_next_data_point (
118
118
int error ;
119
119
120
120
iterator = (pf_port_iterator_t * )* my_loop_context ;
121
- port = pf_snmp_get_next_port (iterator );
122
- if (port == 0 )
123
- {
124
- return NULL ;
125
- }
126
121
127
- error = pf_snmp_get_peer_timestamp (pnet , port , & timestamp );
128
- if (error )
122
+ do
129
123
{
130
- return NULL ;
131
- }
124
+ port = pf_snmp_get_next_port (iterator );
125
+ if (port == 0 )
126
+ {
127
+ return NULL ;
128
+ }
129
+
130
+ error = pf_snmp_get_peer_timestamp (pnet , port , & timestamp );
131
+ } while (error );
132
132
133
133
snmp_set_var_typed_integer (idx , ASN_TIMETICKS , timestamp );
134
134
idx = idx -> next_variable ;
Original file line number Diff line number Diff line change @@ -120,17 +120,17 @@ netsnmp_variable_list * lldpXdot3RemPortTable_get_next_data_point (
120
120
int error ;
121
121
122
122
iterator = (pf_port_iterator_t * )* my_loop_context ;
123
- port = pf_snmp_get_next_port (iterator );
124
- if (port == 0 )
125
- {
126
- return NULL ;
127
- }
128
123
129
- error = pf_snmp_get_peer_timestamp (pnet , port , & timestamp );
130
- if (error )
124
+ do
131
125
{
132
- return NULL ;
133
- }
126
+ port = pf_snmp_get_next_port (iterator );
127
+ if (port == 0 )
128
+ {
129
+ return NULL ;
130
+ }
131
+
132
+ error = pf_snmp_get_peer_timestamp (pnet , port , & timestamp );
133
+ } while (error );
134
134
135
135
snmp_set_var_typed_integer (idx , ASN_TIMETICKS , timestamp );
136
136
idx = idx -> next_variable ;
You can’t perform that action at this time.
0 commit comments