Skip to contentSkip to conversation

busybox: add ntp patch for 1.20.2

PATCH New Gustavo Zacarias 2 participants 2 messages Jan 21, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 busybox: add ntp patch for 1.20.2

---
 package/busybox/busybox-1.20.2/busybox-1.20.2-ntpd.patch | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 package/busybox/busybox-1.20.2/busybox-1.20.2-ntpd.patch
package/busybox/busybox-1.20.2/busybox-1.20.2-ntpd.patch new file +11 -0
new file mode 100644
index 0000000..17fc0b1
@@ -0,0 +1,11 @@
+--- busybox-1.20.2/networking/ntpd.c
++++ busybox-1.20.2-ntpd/networking/ntpd.c
+@@ -1840,7 +1840,7 @@ recv_and_process_client_pkt(void /*int f
+ 
+ 	/* Build a reply packet */
+ 	memset(&msg, 0, sizeof(msg));
+-	msg.m_status = G.stratum < MAXSTRAT ? G.ntp_status : LI_ALARM;
++	msg.m_status = G.stratum < MAXSTRAT ? (G.ntp_status & LI_MASK) : LI_ALARM;
+ 	msg.m_status |= (query_status & VERSION_MASK);
+ 	msg.m_status |= ((query_status & MODE_MASK) == MODE_CLIENT) ?
+ 			 MODE_SERVER : MODE_SYM_PAS;
Signature · 1 line
1.7.12.4
#1 lore raw

PATCH 1/1 busybox: add ntp patch for 1.20.2

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gustavo" == Gustavo Zacarias <[email protected]> writes:

Gustavo> Signed-off-by: Gustavo Zacarias <[email protected]>

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard