• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/libpcap-1.4.0/

Lines Matching defs:geoslot

71 	int					geoslot;
148 int chassis, geoslot;
153 for (geoslot = 0; geoslot <= MAX_GEOSLOT; geoslot++) {
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;
167 static int find_unit_by_fd(int fd, int *chassis, int *geoslot, unit_t **unit_ptr) {
174 if (geoslot) *geoslot = s;
185 int chassis, geoslot;
188 find_unit_by_fd(fd, &chassis, &geoslot, &u);
211 static void empty_unit(int chassis, int geoslot) {
212 unit_t *u = &units[chassis][geoslot];
224 int chassis, geoslot;
227 for (geoslot = 0; geoslot <= MAX_GEOSLOT; 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 */
232 empty_unit(chassis, geoslot);
238 int chassis, geoslot;
244 for (geoslot = 0; geoslot <= MAX_GEOSLOT; geoslot++) {
245 if (units[chassis][geoslot].ip != NULL) {
246 p = units[chassis][geoslot].iface;
265 int chassis, geoslot;
290 geoslot = *(ptr2 + 5) - '0'; /* and geo-slot number */
292 geoslot < 1 || geoslot > MAX_GEOSLOT) { /* if the chassis and/or slot numbers appear to be bad... */
301 u = &units[chassis][geoslot];
304 u->geoslot = geoslot;
346 static void close_with_IOP(int chassis, int geoslot, int flag) {
349 if (flag == LIVE) id = &units[chassis][geoslot].fd;
350 else id = &units[chassis][geoslot].find_fd;
359 int chassis, geoslot;
362 if (find_unit_by_fd(handle->fd, &chassis, &geoslot, &u) == 0)
364 close_with_IOP(chassis, geoslot, LIVE);
372 int chassis, geoslot;
376 find_unit_by_fd(fd, &chassis, &geoslot, NULL);
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);
379 empty_unit(chassis, geoslot);
410 sprintf(static_buf, "%d_%d", u->chassis, u->geoslot);
417 portnum = ((u->chassis - 1) * 64) + ((u->geoslot - 1) * 8) + IOPportnum + 1;
554 int chassis, geoslot;
567 for (geoslot = 0; geoslot <= MAX_GEOSLOT; geoslot++) { /* now loop over all the devices */
568 u = &units[chassis][geoslot];
691 int chassis, geoslot;
695 find_unit_by_fd(fd, &chassis, &geoslot, &u);
710 int chassis, geoslot;
734 find_unit_by_fd(fd, &chassis, &geoslot, NULL);
735 close_with_IOP(chassis, geoslot, FIND); /* and close out connection to him */
761 int chassis, geoslot;
767 for (geoslot = 0; geoslot <= MAX_GEOSLOT; geoslot++) {
768 u = &units[chassis][geoslot];
772 close_with_IOP(chassis, geoslot, FIND);
805 int chassis, geoslot;
812 for (geoslot = 0; geoslot <= MAX_GEOSLOT; geoslot++) {
813 u = &units[chassis][geoslot];