forked from Imagelibrary/rtems
Final resolution of this "small" por t number change.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user