mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
2008-09-23 Eric Norum <norume@aps.anl.gov>
* libnetworking/lib/rtems_bsdnet_ntp.c: Let TCP/IP stack pick port rather than hard coding selection.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2008-09-23 Eric Norum <norume@aps.anl.gov>
|
||||
|
||||
* libnetworking/lib/rtems_bsdnet_ntp.c: Let TCP/IP stack pick port
|
||||
rather than hard coding selection.
|
||||
|
||||
2008-09-22 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* include/rtems/bspIo.h, libcsupport/Makefile.am: Add genchark() for
|
||||
|
||||
@@ -111,7 +111,7 @@ tryServer (int i, int s, rtems_bsdnet_ntp_callback_t callback, void *usr_data)
|
||||
if (i >= 0) {
|
||||
memset (&farAddr, 0, sizeof farAddr);
|
||||
farAddr.sin_family = AF_INET;
|
||||
farAddr.sin_port = htons (123);
|
||||
farAddr.sin_port = htons (0);
|
||||
farAddr.sin_addr = rtems_bsdnet_ntpserver[i];
|
||||
memset (&packet, 0, sizeof packet);
|
||||
packet.li_vn_mode = (3 << 3) | 3; /* NTP version 3, client */
|
||||
|
||||
Reference in New Issue
Block a user