Lines Matching defs:units
48 #define MAX_GEOSLOT 8 /* max number of access units in an ACN site */
81 static unit_t units[MAX_CHASSIS+1][MAX_GEOSLOT+1]; /* we use indexes of 1 through 8, but we reserve/waste index 0 */
155 if (units[chassis][geoslot].ip != NULL)
156 printf("%d:%d %2d %s\n", chassis, geoslot, units[chassis][geoslot].fd, units[chassis][geoslot].ip);
157 p = units[chassis][geoslot].iface;
173 if (units[c][s].fd == fd || units[c][s].find_fd == fd) {
176 if (unit_ptr) *unit_ptr = &units[c][s];
213 unit_t *u = &units[chassis][geoslot];
233 if (units[chassis][geoslot].ip != NULL) {
234 free(units[chassis][geoslot].ip); /* get rid of the malloc'ed space that holds the IP address */
235 units[chassis][geoslot].ip = 0; /* then set the pointer to NULL */
250 if (units[chassis][geoslot].ip != NULL) {
251 p = units[chassis][geoslot].iface;
307 u = &units[chassis][geoslot];
355 if (flag == LIVE) id = &units[chassis][geoslot].fd;
356 else id = &units[chassis][geoslot].find_fd;
383 if (units[chassis][geoslot].fd == fd) close_with_IOP(chassis, geoslot, LIVE);
384 else if (units[chassis][geoslot].find_fd == fd) close_with_IOP(chassis, geoslot, FIND);
580 u = &units[chassis][geoslot];
800 u = &units[chassis][geoslot];
845 u = &units[chassis][geoslot];