aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
Diffstat (limited to 'networking')
-rw-r--r--networking/libiproute/iproute.c3
-rw-r--r--networking/ntpd.c7
2 files changed, 8 insertions, 2 deletions
diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c
index e674e9a0d..48dc6e3d9 100644
--- a/networking/libiproute/iproute.c
+++ b/networking/libiproute/iproute.c
@@ -362,10 +362,9 @@ IF_FEATURE_IP_RULE(ARG_table,)
362 req.r.rtm_scope = RT_SCOPE_NOWHERE; 362 req.r.rtm_scope = RT_SCOPE_NOWHERE;
363 363
364 if (cmd != RTM_DELROUTE) { 364 if (cmd != RTM_DELROUTE) {
365 req.r.rtm_scope = RT_SCOPE_UNIVERSE;
365 if (RTPROT_BOOT != 0) 366 if (RTPROT_BOOT != 0)
366 req.r.rtm_protocol = RTPROT_BOOT; 367 req.r.rtm_protocol = RTPROT_BOOT;
367 if (RT_SCOPE_UNIVERSE != 0)
368 req.r.rtm_scope = RT_SCOPE_UNIVERSE;
369 if (RTN_UNICAST != 0) 368 if (RTN_UNICAST != 0)
370 req.r.rtm_type = RTN_UNICAST; 369 req.r.rtm_type = RTN_UNICAST;
371 } 370 }
diff --git a/networking/ntpd.c b/networking/ntpd.c
index 98158a304..1a3367be2 100644
--- a/networking/ntpd.c
+++ b/networking/ntpd.c
@@ -2051,6 +2051,13 @@ recv_and_process_client_pkt(void /*int fd*/)
2051 goto bail; 2051 goto bail;
2052 } 2052 }
2053 2053
2054 /* Respond only to client and symmetric active packets */
2055 if ((msg.m_status & MODE_MASK) != MODE_CLIENT
2056 && (msg.m_status & MODE_MASK) != MODE_SYM_ACT
2057 ) {
2058 goto bail;
2059 }
2060
2054 query_status = msg.m_status; 2061 query_status = msg.m_status;
2055 query_xmttime = msg.m_xmttime; 2062 query_xmttime = msg.m_xmttime;
2056 2063