Lines Matching refs:geoslot
69 int geoslot; member
143 int chassis, geoslot; in dump_unit_table() local
148 for (geoslot = 0; geoslot <= MAX_GEOSLOT; geoslot++) { in dump_unit_table()
149 if (units[chassis][geoslot].ip != NULL) in dump_unit_table()
150 …printf("%d:%d %2d %s\n", chassis, geoslot, units[chassis][geoslot].fd, units[chassis][geoslot].ip); in dump_unit_table()
151 p = units[chassis][geoslot].iface; in dump_unit_table()
162 static int find_unit_by_fd(int fd, int *chassis, int *geoslot, unit_t **unit_ptr) { in find_unit_by_fd() argument
169 if (geoslot) *geoslot = s; in find_unit_by_fd()
180 int chassis, geoslot; in read_client_nbytes() local
183 find_unit_by_fd(fd, &chassis, &geoslot, &u); in read_client_nbytes()
206 static void empty_unit(int chassis, int geoslot) { in empty_unit() argument
207 unit_t *u = &units[chassis][geoslot]; in empty_unit()
223 int chassis, geoslot; in empty_unit_table() local
226 for (geoslot = 0; geoslot <= MAX_GEOSLOT; geoslot++) { in empty_unit_table()
227 if (units[chassis][geoslot].ip != NULL) { in empty_unit_table()
228 … free(units[chassis][geoslot].ip); /* get rid of the malloc'ed space that holds the IP address */ in empty_unit_table()
229 units[chassis][geoslot].ip = 0; /* then set the pointer to NULL */ in empty_unit_table()
231 empty_unit(chassis, geoslot); in empty_unit_table()
237 int chassis, geoslot; in find_nth_interface_name() local
243 for (geoslot = 0; geoslot <= MAX_GEOSLOT; geoslot++) { in find_nth_interface_name()
244 if (units[chassis][geoslot].ip != NULL) { in find_nth_interface_name()
245 p = units[chassis][geoslot].iface; in find_nth_interface_name()
264 int chassis, geoslot; in acn_parse_hosts_file() local
289 geoslot = *(ptr2 + 5) - '0'; /* and geo-slot number */ in acn_parse_hosts_file()
291 …geoslot < 1 || geoslot > MAX_GEOSLOT) { /* if the chassis and/or slot numbers appear to be bad...… in acn_parse_hosts_file()
301 u = &units[chassis][geoslot]; in acn_parse_hosts_file()
304 u->geoslot = geoslot; in acn_parse_hosts_file()
346 static void close_with_IOP(int chassis, int geoslot, int flag) { in close_with_IOP() argument
349 if (flag == LIVE) id = &units[chassis][geoslot].fd; in close_with_IOP()
350 else id = &units[chassis][geoslot].find_fd; in close_with_IOP()
359 int chassis, geoslot; in pcap_cleanup_acn() local
362 if (find_unit_by_fd(handle->fd, &chassis, &geoslot, &u) == 0) in pcap_cleanup_acn()
364 close_with_IOP(chassis, geoslot, LIVE); in pcap_cleanup_acn()
372 int chassis, geoslot; in send_to_fd() local
376 find_unit_by_fd(fd, &chassis, &geoslot, NULL); in send_to_fd()
377 if (units[chassis][geoslot].fd == fd) close_with_IOP(chassis, geoslot, LIVE); in send_to_fd()
378 else if (units[chassis][geoslot].find_fd == fd) close_with_IOP(chassis, geoslot, FIND); in send_to_fd()
379 empty_unit(chassis, geoslot); in send_to_fd()
410 pcap_snprintf(buf, bufsize, "%s_%d_%d", proto, u->chassis, u->geoslot); in nonUnified_IOP_port_name()
416 portnum = ((u->chassis - 1) * 64) + ((u->geoslot - 1) * 8) + IOPportnum + 1; in unified_IOP_port_name()
566 int chassis, geoslot; in process_client_data() local
580 for (geoslot = 0; geoslot <= MAX_GEOSLOT; geoslot++) { /* now loop over all the devices */ in process_client_data()
581 u = &units[chassis][geoslot]; in process_client_data()
722 int chassis, geoslot; in read_client_data() local
726 find_unit_by_fd(fd, &chassis, &geoslot, &u); in read_client_data()
741 int chassis, geoslot; in wait_for_all_answers() local
767 find_unit_by_fd(fd, &chassis, &geoslot, NULL); in wait_for_all_answers()
768 close_with_IOP(chassis, geoslot, FIND); /* and close out connection to him */ in wait_for_all_answers()
794 int chassis, geoslot; in acn_findalldevs() local
800 for (geoslot = 0; geoslot <= MAX_GEOSLOT; geoslot++) { in acn_findalldevs()
801 u = &units[chassis][geoslot]; in acn_findalldevs()
805 close_with_IOP(chassis, geoslot, FIND); in acn_findalldevs()
838 int chassis, geoslot; in acn_open_live() local
845 for (geoslot = 0; geoslot <= MAX_GEOSLOT; geoslot++) { in acn_open_live()
846 u = &units[chassis][geoslot]; in acn_open_live()