Home | History | Annotate | Download | only in libpcap

Lines Matching defs:units

52 #define MAX_GEOSLOT			8				/* max number of access units in an ACN site */
77 static unit_t units[MAX_CHASSIS+1][MAX_GEOSLOT+1]; /* we use indexes of 1 through 8, but we reserve/waste index 0 */
151 if (units[chassis][geoslot].ip != NULL)
152 printf("%d:%d %2d %s\n", chassis, geoslot, units[chassis][geoslot].fd, units[chassis][geoslot].ip);
153 p = units[chassis][geoslot].iface;
169 if (units[c][s].fd == fd || units[c][s].find_fd == fd) {
172 if (unit_ptr) *unit_ptr = &units[c][s];
209 unit_t *u = &units[chassis][geoslot];
225 if (units[chassis][geoslot].ip != NULL) {
226 free(units[chassis][geoslot].ip); /* get rid of the malloc'ed space that holds the IP address */
227 units[chassis][geoslot].ip = 0; /* then set the pointer to NULL */
242 if (units[chassis][geoslot].ip != NULL) {
243 p = units[chassis][geoslot].iface;
298 u = &units[chassis][geoslot];
346 if (flag == LIVE) id = &units[chassis][geoslot].fd;
347 else id = &units[chassis][geoslot].find_fd;
374 if (units[chassis][geoslot].fd == fd) close_with_IOP(chassis, geoslot, LIVE);
375 else if (units[chassis][geoslot].find_fd == fd) close_with_IOP(chassis, geoslot, FIND);
577 u = &units[chassis][geoslot];
779 u = &units[chassis][geoslot];
824 u = &units[chassis][geoslot];