Lines Matching defs:units
50 #define MAX_GEOSLOT 8 /* max number of access units in an ACN site */
75 static unit_t units[MAX_CHASSIS+1][MAX_GEOSLOT+1]; /* we use indexes of 1 through 8, but we reserve/waste index 0 */
149 if (units[chassis][geoslot].ip != NULL)
150 printf("%d:%d %2d %s\n", chassis, geoslot, units[chassis][geoslot].fd, units[chassis][geoslot].ip);
151 p = units[chassis][geoslot].iface;
167 if (units[c][s].fd == fd || units[c][s].find_fd == fd) {
170 if (unit_ptr) *unit_ptr = &units[c][s];
207 unit_t *u = &units[chassis][geoslot];
223 if (units[chassis][geoslot].ip != NULL) {
224 free(units[chassis][geoslot].ip); /* get rid of the malloc'ed space that holds the IP address */
225 units[chassis][geoslot].ip = 0; /* then set the pointer to NULL */
240 if (units[chassis][geoslot].ip != NULL) {
241 p = units[chassis][geoslot].iface;
296 u = &units[chassis][geoslot];
344 if (flag == LIVE) id = &units[chassis][geoslot].fd;
345 else id = &units[chassis][geoslot].find_fd;
372 if (units[chassis][geoslot].fd == fd) close_with_IOP(chassis, geoslot, LIVE);
373 else if (units[chassis][geoslot].find_fd == fd) close_with_IOP(chassis, geoslot, FIND);
575 u = &units[chassis][geoslot];
777 u = &units[chassis][geoslot];
822 u = &units[chassis][geoslot];