Changeset 1866 for trunk/module-monitor.c
- Timestamp:
- 03/21/10 16:15:40 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/module-monitor.c
r1762 r1866 241 241 } 242 242 243 char *monitor_get_srvname(int srvid, int caid){ 244 int i; 245 struct s_srvid *this = cfg->srvid; 246 static char name[83]; 247 248 for (name[0] = 0; this && (!name[0]); this = this->next) 249 if (this->srvid == srvid) 250 for (i=0; i<this->ncaid; i++) 251 if (this->caid[i] == caid) 252 cs_strncpy(name, this->name, 32); 253 254 if (!name[0]) sprintf(name, "%04X:%04X unknown", caid, srvid); 255 if (!srvid) name[0] = '\0'; 256 return(name); 257 } 243 258 244 259 245 char *monitor_get_proto(int idx) … … 340 326 cs_inet_ntoa(client[i].ip), client[i].port, monitor_get_proto(i), 341 327 ldate, ltime, lsec, client[i].last_caid, client[i].last_srvid, 342 monitor_get_srvname(client[i].last_srvid, client[i].last_caid), isec, con);328 get_servicename(client[i].last_srvid, client[i].last_caid), isec, con); 343 329 } 344 330 }
Note:
See TracChangeset
for help on using the changeset viewer.