View | Details | Raw Unified | Return to bug 212484
Collapse All | Expand All

(-)agent/mibgroup/if-mib/data_access/interface_sysctl.c (+128 lines)
Lines 105-110 netsnmp_sysctl_ifmedia_to_speed(int media, u_int *spee Link Here
105
                case IFM_100_T4:
105
                case IFM_100_T4:
106
                case IFM_100_VG:
106
                case IFM_100_VG:
107
                case IFM_100_T2:
107
                case IFM_100_T2:
108
#ifdef IFM_100_T
109
		case IFM_100_T:
110
#endif
108
                    *speed = 100000000;
111
                    *speed = 100000000;
109
                    *speed_high = 100; break;
112
                    *speed_high = 100; break;
110
                case IFM_1000_LX:
113
                case IFM_1000_LX:
Lines 112-117 netsnmp_sysctl_ifmedia_to_speed(int media, u_int *spee Link Here
112
#ifdef IFM_1000_T
115
#ifdef IFM_1000_T
113
                case IFM_1000_T:
116
                case IFM_1000_T:
114
#endif
117
#endif
118
#ifdef IFM_1000_SX
119
		case IFM_1000_SX:
120
#endif
121
#ifdef IFM_1000_KX
122
		case IFM_1000_KX:
123
#endif
124
#ifdef IFM_1000_SGMII
125
		case IFM_1000_SGMII:
126
#endif
127
#ifdef IFM_1000_CX_SGMII
128
		case IFM_1000_CX_SGMII:
129
#endif
115
                    *speed = 1000000000;
130
                    *speed = 1000000000;
116
                    *speed_high = 1000; break;
131
                    *speed_high = 1000; break;
117
#ifdef IFM_10GBASE_SR
132
#ifdef IFM_10GBASE_SR
Lines 120-125 netsnmp_sysctl_ifmedia_to_speed(int media, u_int *spee Link Here
120
                    *speed = (u_int) -1; /* 4294967295; */
135
                    *speed = (u_int) -1; /* 4294967295; */
121
                    *speed_high = 10000; break;
136
                    *speed_high = 10000; break;
122
#endif
137
#endif
138
#if defined(__FreeBSD__)
139
#ifdef IFM_10G_LR
140
		case IFM_10G_LR:
141
#ifdef IFM_10G_SR
142
		case IFM_10G_SR:
143
#endif
144
#ifdef IFM_10G_CX4
145
		case IFM_10G_CX4:
146
#endif
147
#ifdef IFM_10G_TWINAX
148
		case IFM_10G_TWINAX:
149
#endif
150
#ifdef IFM_10G_TWINAX_LONG
151
		case IFM_10G_TWINAX_LONG:
152
#endif
153
#ifdef IFM_10G_LRM
154
		case IFM_10G_LRM:
155
#endif
156
#ifdef IFM_10G_T
157
		case IFM_10G_T:
158
#endif
159
#ifdef IFM_10G_KX4
160
		case IFM_10G_KX4:
161
#endif
162
#ifdef IFM_10G_KR
163
		case IFM_10G_KR:
164
#endif
165
#ifdef IFM_10G_CR1
166
		case IFM_10G_CR1:
167
#endif
168
#ifdef IFM_10G_SFI
169
		case IFM_10G_SFI:
170
#endif
171
#ifdef IFM_10G_ER
172
		case IFM_10G_ER:
173
#endif
174
#ifdef IFM_10G_AOC
175
		case IFM_10G_AOC:
176
#endif
177
                    *speed = (u_int) -1; /* 4294967295; */
178
                    *speed_high = 10000; break;
179
#endif /* IFM_10G_LR */
180
#ifdef IFM_20G_KR2
181
		case IFM_20G_KR2:
182
                    *speed = (u_int) -1; /* 4294967295; */
183
                    *speed_high = 20000; break;
184
#endif /* IFM_20G_KR2 */
185
#ifdef IFM_25G_PCIE
186
		case IFM_25G_PCIE:
187
#ifdef IFM_25G_CR
188
		case IFM_25G_CR:
189
#endif
190
#ifdef IFM_25G_KR
191
		case IFM_25G_KR:
192
#endif
193
#ifdef IFM_25G_SR
194
		case IFM_25G_SR:
195
#endif
196
#ifdef IFM_25G_LR
197
		case IFM_25G_LR:
198
#endif
199
#ifdef IFM_25G_ACC
200
		case IFM_25G_ACC:
201
#endif
202
#ifdef IFM_25G_AOC
203
		case IFM_25G_AOC:
204
#endif
205
                    *speed = (u_int) -1; /* 4294967295; */
206
                    *speed_high = 25000; break;
207
#endif /* IFM_25G_PCIE */
208
#ifdef IFM_40G_CR4
209
		case IFM_40G_CR4:
210
#ifdef IFM_40G_SR4
211
		case IFM_40G_SR4:
212
#endif
213
#ifdef IFM_40G_LR4
214
		case IFM_40G_LR4:
215
#endif
216
#ifdef IFM_40G_XLPPI
217
		case IFM_40G_XLPPI:
218
#endif
219
#ifdef IFM_40G_KR4
220
		case IFM_40G_KR4:
221
#endif
222
                    *speed = (u_int) -1; /* 4294967295; */
223
                    *speed_high = 40000; break;
224
#endif /* IFM_40G_CR4 */
225
#ifdef IFM_50G_PCIE
226
		case IFM_50G_PCIE:
227
#ifdef IFM_50G_CR2
228
		case IFM_50G_CR2:
229
#endif
230
#ifdef IFM_50G_KR2
231
		case IFM_50G_KR2:
232
#endif
233
                    *speed = (u_int) -1; /* 4294967295; */
234
                    *speed_high = 50000; break;
235
#endif /* IFM_50G_PCIE */
236
#ifdef IFM_100G_CR4
237
		case IFM_100G_CR4:
238
#ifdef IFM_100G_SR4
239
		case IFM_100G_SR4:
240
#endif
241
#ifdef IFM_100G_KR4
242
		case IFM_100G_KR4:
243
#endif
244
#ifdef IFM_100G_LR4
245
		case IFM_100G_LR4:
246
#endif
247
                    *speed = (u_int) -1; /* 4294967295; */
248
                    *speed_high = 100000; break;
249
#endif /* IFM_100G_CR4 */
250
#endif /* __FreeBSD__ */
123
            }
251
            }
124
            break;
252
            break;
125
        case IFM_IEEE80211:
253
        case IFM_IEEE80211:

Return to bug 212484