]> git.pld-linux.org Git - packages/dhcp.git/blob - dhcp-no-subnet-error2info.patch
updated -client runtime deps
[packages/dhcp.git] / dhcp-no-subnet-error2info.patch
1 From 840c4f2175d14fa485f2a5e50a005847940b7e1f Mon Sep 17 00:00:00 2001
2 From: Pavel Zhukov <pzhukov@redhat.com>
3 Date: Thu, 21 Feb 2019 10:40:51 +0100
4 Subject: [PATCH 18/28] No subnet declaration for <iface>' should be info, not
5  error.
6
7 ---
8  common/discover.c | 16 ++++++++--------
9  1 file changed, 8 insertions(+), 8 deletions(-)
10
11 diff --git a/common/discover.c b/common/discover.c
12 index e562225..b4b1959 100644
13 --- a/common/discover.c
14 +++ b/common/discover.c
15 @@ -806,9 +806,9 @@ discover_interfaces(int state) {
16  
17                 /* We must have a subnet declaration for each interface. */
18                 if (!tmp->shared_network && (state == DISCOVER_SERVER)) {
19 -                       log_error("%s", "");
20 +                       log_info("%s", "");
21                         if (local_family == AF_INET) {
22 -                               log_error("No subnet declaration for %s (%s).",
23 +                               log_info("No subnet declaration for %s (%s).",
24                                           tmp->name,
25                                           (tmp->addresses == NULL) ?
26                                            "no IPv4 addresses" :
27 @@ -823,26 +823,26 @@ discover_interfaces(int state) {
28                                 } else {
29                                         strcpy(abuf, "no IPv6 addresses");
30                                 }
31 -                               log_error("No subnet6 declaration for %s (%s).",
32 +                               log_info("No subnet6 declaration for %s (%s).",
33                                           tmp->name,
34                                           abuf);
35  #endif /* DHCPv6 */
36                         }
37                         if (supports_multiple_interfaces(tmp)) {
38 -                               log_error ("** Ignoring requests on %s.  %s",
39 +                               log_info ("** Ignoring requests on %s.  %s",
40                                            tmp -> name, "If this is not what");
41 -                               log_error ("   you want, please write %s",
42 +                               log_info ("   you want, please write %s",
43  #ifdef DHCPv6
44                                            (local_family != AF_INET) ?
45                                            "a subnet6 declaration" :
46  #endif
47                                            "a subnet declaration");
48 -                               log_error ("   in your dhcpd.conf file %s",
49 +                               log_info ("   in your dhcpd.conf file %s",
50                                            "for the network segment");
51 -                               log_error ("   to %s %s %s",
52 +                               log_info ("   to %s %s %s",
53                                            "which interface",
54                                            tmp -> name, "is attached. **");
55 -                               log_error ("%s", "");
56 +                               log_info ("%s", "");
57                                 goto next;
58                         } else {
59                                 log_error ("You must write a %s",
60 -- 
61 2.35.1
62
This page took 0.034662 seconds and 3 git commands to generate.