325
325
* Set up the indexing for the specified row...
328
333
snmp_set_var_value(idx, (u_char *)&tcp_head[i].TCPTABLE_LOCALADDRESS,
329
334
sizeof(tcp_head[i].TCPTABLE_LOCALADDRESS));
331
337
port = ntohs((u_short)tcp_head[i].TCPTABLE_LOCALPORT);
332
338
idx = idx->next_variable;
333
339
snmp_set_var_value(idx, (u_char*)&port, sizeof(port));
335
341
idx = idx->next_variable;
336
347
snmp_set_var_value(idx, (u_char *)&tcp_head[i].TCPTABLE_REMOTEADDRESS,
337
348
sizeof(tcp_head[i].TCPTABLE_REMOTEADDRESS));
339
351
port = ntohs((u_short)tcp_head[i].TCPTABLE_REMOTEPORT);
340
352
idx = idx->next_variable;