Final resolution of this "small" por t number change.

This commit is contained in:
Eric Norum
2008-09-26 15:03:29 +00:00
parent 618cae2735
commit ac337bc053
2 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
2008-09-26 Eric Norum <norume@aps.anl.gov>
* libnetworking/lib/rtems_bsdnet_ntp.c: Final resolution of this "small" port number change.
2008-09-25 Eric Norum <norume@aps.anl.gov>
* libnetworking/lib/rtems_bsdnet_ntp.c: Revert previous patch.

View File

@@ -171,7 +171,7 @@ int ret;
}
memset (&myAddr, 0, sizeof myAddr);
myAddr.sin_family = AF_INET;
myAddr.sin_port = htons (123);
myAddr.sin_port = htons (0);
myAddr.sin_addr.s_addr = htonl (INADDR_ANY);
if (bind (s, (struct sockaddr *)&myAddr, sizeof myAddr) < 0) {
fprintf (stderr, "rtems_bsdnet_get_ntp() Can't bind socket: %s\n", strerror (errno));