Changeset 1882 for branches/modular/module-monitor.c
- Timestamp:
- 03/22/10 20:56:59 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/modular/module-monitor.c
r1769 r1882 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.