Lines Matching defs:units
52 #define MAX_GEOSLOT 8 /* max number of access units in an ACN site */
78 static unit_t units[MAX_CHASSIS+1][MAX_GEOSLOT+1]; /* we use indexes of 1 through 8, but we reserve/waste index 0 */
154 if (units[chassis][geoslot].ip != NULL)
155 printf("%d:%d %2d %s\n", chassis, geoslot, units[chassis][geoslot].fd, units[chassis][geoslot].ip);
156 p = units[chassis][geoslot].iface;
172 if (units[c][s].fd == fd || units[c][s].find_fd == fd) {
175 if (unit_ptr) *unit_ptr = &units[c][s];
212 unit_t *u = &units[chassis][geoslot];
228 if (units[chassis][geoslot].ip != NULL) {
229 free(units[chassis][geoslot].ip); /* get rid of the malloc'ed space that holds the IP address */
230 units[chassis][geoslot].ip = 0; /* then set the pointer to NULL */
245 if (units[chassis][geoslot].ip != NULL) {
246 p = units[chassis][geoslot].iface;
301 u = &units[chassis][geoslot];
349 if (flag == LIVE) id = &units[chassis][geoslot].fd;
350 else id = &units[chassis][geoslot].find_fd;
377 if (units[chassis][geoslot].fd == fd) close_with_IOP(chassis, geoslot, LIVE);
378 else if (units[chassis][geoslot].find_fd == fd) close_with_IOP(chassis, geoslot, FIND);
568 u = &units[chassis][geoslot];
768 u = &units[chassis][geoslot];
813 u = &units[chassis][geoslot];