Changeset 48abdc31 in rtems
- Timestamp:
- 08/23/99 14:58:16 (24 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 72f9937b
- Parents:
- da0349c
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/exec/libnetworking/lib/tftpDriver.c
rda0349c r48abdc31 520 520 521 521 tp->myAddress.sin_family = AF_INET; 522 /* 523 * XXX Eric .. how do we get the minor information??? 524 * tp->myAddress.sin_port = htons (UDP_PORT_BASE + nStreams * try + minor); 525 */ 526 tp->myAddress.sin_port = htons (UDP_PORT_BASE + nStreams * try); 522 tp->myAddress.sin_port = htons (UDP_PORT_BASE + nStreams * try + s); 527 523 tp->myAddress.sin_addr.s_addr = htonl (INADDR_ANY); 528 524 if (bind (tp->socket, (struct sockaddr *)&tp->myAddress, sizeof tp->myAddress) >= 0) … … 530 526 if (++retryCount == 10) { 531 527 close (tp->socket); 532 /* 533 * XXX Eric .. how do we get the minor information to release this??? 534 releaseStream (minor); 535 */ 528 releaseStream (s); 536 529 return EBUSY; 537 530 } … … 555 548 */ 556 549 tp->pkbuf.tftpRWRQ.opcode = htons (TFTP_OPCODE_RRQ); 557 /*558 * XXX Eric .. is this cast taking the const off right?559 */560 561 550 cp1 = (char *) tp->pkbuf.tftpRWRQ.filename_mode; 562 551 cp2 = (char *) remoteFilename; … … 575 564 sizeof tp->farAddress) < 0) { 576 565 close (tp->socket); 577 /* 578 * XXX Eric .. how do we get the minor information to release this??? 579 releaseStream (minor); 580 */ 566 releaseStream (s); 581 567 return EIO; 582 568 } … … 596 582 if (sendAck (tp) != 0) { 597 583 close (tp->socket); 598 /* 599 * XXX Eric .. how do we get the minor information to release this??? 600 releaseStream (minor); 601 */ 602 584 releaseStream (s); 603 585 return EIO; 604 586 } … … 608 590 tftpSetErrno (tp); 609 591 close (tp->socket); 610 /* 611 * XXX Eric .. how do we get the minor information to release this??? 612 * releaseStream (minor); 613 */ 592 releaseStream (s); 614 593 return EIO; 615 594 } … … 621 600 if (++retryCount >= OPEN_RETRY_LIMIT) { 622 601 close (tp->socket); 623 /* 624 * XXX Eric .. how do we get the minor information to release this??? 625 releaseStream (minor); 626 */ 602 releaseStream (s); 627 603 return EIO; 628 604 } -
c/src/lib/libnetworking/lib/tftpDriver.c
rda0349c r48abdc31 520 520 521 521 tp->myAddress.sin_family = AF_INET; 522 /* 523 * XXX Eric .. how do we get the minor information??? 524 * tp->myAddress.sin_port = htons (UDP_PORT_BASE + nStreams * try + minor); 525 */ 526 tp->myAddress.sin_port = htons (UDP_PORT_BASE + nStreams * try); 522 tp->myAddress.sin_port = htons (UDP_PORT_BASE + nStreams * try + s); 527 523 tp->myAddress.sin_addr.s_addr = htonl (INADDR_ANY); 528 524 if (bind (tp->socket, (struct sockaddr *)&tp->myAddress, sizeof tp->myAddress) >= 0) … … 530 526 if (++retryCount == 10) { 531 527 close (tp->socket); 532 /* 533 * XXX Eric .. how do we get the minor information to release this??? 534 releaseStream (minor); 535 */ 528 releaseStream (s); 536 529 return EBUSY; 537 530 } … … 555 548 */ 556 549 tp->pkbuf.tftpRWRQ.opcode = htons (TFTP_OPCODE_RRQ); 557 /*558 * XXX Eric .. is this cast taking the const off right?559 */560 561 550 cp1 = (char *) tp->pkbuf.tftpRWRQ.filename_mode; 562 551 cp2 = (char *) remoteFilename; … … 575 564 sizeof tp->farAddress) < 0) { 576 565 close (tp->socket); 577 /* 578 * XXX Eric .. how do we get the minor information to release this??? 579 releaseStream (minor); 580 */ 566 releaseStream (s); 581 567 return EIO; 582 568 } … … 596 582 if (sendAck (tp) != 0) { 597 583 close (tp->socket); 598 /* 599 * XXX Eric .. how do we get the minor information to release this??? 600 releaseStream (minor); 601 */ 602 584 releaseStream (s); 603 585 return EIO; 604 586 } … … 608 590 tftpSetErrno (tp); 609 591 close (tp->socket); 610 /* 611 * XXX Eric .. how do we get the minor information to release this??? 612 * releaseStream (minor); 613 */ 592 releaseStream (s); 614 593 return EIO; 615 594 } … … 621 600 if (++retryCount >= OPEN_RETRY_LIMIT) { 622 601 close (tp->socket); 623 /* 624 * XXX Eric .. how do we get the minor information to release this??? 625 releaseStream (minor); 626 */ 602 releaseStream (s); 627 603 return EIO; 628 604 } -
c/src/libnetworking/lib/tftpDriver.c
rda0349c r48abdc31 520 520 521 521 tp->myAddress.sin_family = AF_INET; 522 /* 523 * XXX Eric .. how do we get the minor information??? 524 * tp->myAddress.sin_port = htons (UDP_PORT_BASE + nStreams * try + minor); 525 */ 526 tp->myAddress.sin_port = htons (UDP_PORT_BASE + nStreams * try); 522 tp->myAddress.sin_port = htons (UDP_PORT_BASE + nStreams * try + s); 527 523 tp->myAddress.sin_addr.s_addr = htonl (INADDR_ANY); 528 524 if (bind (tp->socket, (struct sockaddr *)&tp->myAddress, sizeof tp->myAddress) >= 0) … … 530 526 if (++retryCount == 10) { 531 527 close (tp->socket); 532 /* 533 * XXX Eric .. how do we get the minor information to release this??? 534 releaseStream (minor); 535 */ 528 releaseStream (s); 536 529 return EBUSY; 537 530 } … … 555 548 */ 556 549 tp->pkbuf.tftpRWRQ.opcode = htons (TFTP_OPCODE_RRQ); 557 /*558 * XXX Eric .. is this cast taking the const off right?559 */560 561 550 cp1 = (char *) tp->pkbuf.tftpRWRQ.filename_mode; 562 551 cp2 = (char *) remoteFilename; … … 575 564 sizeof tp->farAddress) < 0) { 576 565 close (tp->socket); 577 /* 578 * XXX Eric .. how do we get the minor information to release this??? 579 releaseStream (minor); 580 */ 566 releaseStream (s); 581 567 return EIO; 582 568 } … … 596 582 if (sendAck (tp) != 0) { 597 583 close (tp->socket); 598 /* 599 * XXX Eric .. how do we get the minor information to release this??? 600 releaseStream (minor); 601 */ 602 584 releaseStream (s); 603 585 return EIO; 604 586 } … … 608 590 tftpSetErrno (tp); 609 591 close (tp->socket); 610 /* 611 * XXX Eric .. how do we get the minor information to release this??? 612 * releaseStream (minor); 613 */ 592 releaseStream (s); 614 593 return EIO; 615 594 } … … 621 600 if (++retryCount >= OPEN_RETRY_LIMIT) { 622 601 close (tp->socket); 623 /* 624 * XXX Eric .. how do we get the minor information to release this??? 625 releaseStream (minor); 626 */ 602 releaseStream (s); 627 603 return EIO; 628 604 } -
cpukit/libnetworking/lib/tftpDriver.c
rda0349c r48abdc31 520 520 521 521 tp->myAddress.sin_family = AF_INET; 522 /* 523 * XXX Eric .. how do we get the minor information??? 524 * tp->myAddress.sin_port = htons (UDP_PORT_BASE + nStreams * try + minor); 525 */ 526 tp->myAddress.sin_port = htons (UDP_PORT_BASE + nStreams * try); 522 tp->myAddress.sin_port = htons (UDP_PORT_BASE + nStreams * try + s); 527 523 tp->myAddress.sin_addr.s_addr = htonl (INADDR_ANY); 528 524 if (bind (tp->socket, (struct sockaddr *)&tp->myAddress, sizeof tp->myAddress) >= 0) … … 530 526 if (++retryCount == 10) { 531 527 close (tp->socket); 532 /* 533 * XXX Eric .. how do we get the minor information to release this??? 534 releaseStream (minor); 535 */ 528 releaseStream (s); 536 529 return EBUSY; 537 530 } … … 555 548 */ 556 549 tp->pkbuf.tftpRWRQ.opcode = htons (TFTP_OPCODE_RRQ); 557 /*558 * XXX Eric .. is this cast taking the const off right?559 */560 561 550 cp1 = (char *) tp->pkbuf.tftpRWRQ.filename_mode; 562 551 cp2 = (char *) remoteFilename; … … 575 564 sizeof tp->farAddress) < 0) { 576 565 close (tp->socket); 577 /* 578 * XXX Eric .. how do we get the minor information to release this??? 579 releaseStream (minor); 580 */ 566 releaseStream (s); 581 567 return EIO; 582 568 } … … 596 582 if (sendAck (tp) != 0) { 597 583 close (tp->socket); 598 /* 599 * XXX Eric .. how do we get the minor information to release this??? 600 releaseStream (minor); 601 */ 602 584 releaseStream (s); 603 585 return EIO; 604 586 } … … 608 590 tftpSetErrno (tp); 609 591 close (tp->socket); 610 /* 611 * XXX Eric .. how do we get the minor information to release this??? 612 * releaseStream (minor); 613 */ 592 releaseStream (s); 614 593 return EIO; 615 594 } … … 621 600 if (++retryCount >= OPEN_RETRY_LIMIT) { 622 601 close (tp->socket); 623 /* 624 * XXX Eric .. how do we get the minor information to release this??? 625 releaseStream (minor); 626 */ 602 releaseStream (s); 627 603 return EIO; 628 604 }
Note: See TracChangeset
for help on using the changeset viewer.