summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorEric Norum <WENorum@lbl.gov>2008-09-26 15:03:29 +0000
committerEric Norum <WENorum@lbl.gov>2008-09-26 15:03:29 +0000
commitac337bc053f45d856b8d6dbdcbd8d674cb693f32 (patch)
tree6b4c1e496c5b1dfc2be573b94e3d327f891276c7 /cpukit
parent2008-09-26 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-ac337bc053f45d856b8d6dbdcbd8d674cb693f32.tar.bz2
Final resolution of this "small" por t number change.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/ChangeLog4
-rw-r--r--cpukit/libnetworking/lib/rtems_bsdnet_ntp.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index 451a299bc7..727b51de75 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -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.
diff --git a/cpukit/libnetworking/lib/rtems_bsdnet_ntp.c b/cpukit/libnetworking/lib/rtems_bsdnet_ntp.c
index a005018815..8e19259bfc 100644
--- a/cpukit/libnetworking/lib/rtems_bsdnet_ntp.c
+++ b/cpukit/libnetworking/lib/rtems_bsdnet_ntp.c
@@ -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));