Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/dhcpcd/dist/src Update to dhcpcd-8.1.5 with the...



details:   https://anonhg.NetBSD.org/src/rev/81b30fce23d8
branches:  trunk
changeset: 968133:81b30fce23d8
user:      roy <roy%NetBSD.org@localhost>
date:      Fri Jan 03 12:38:14 2020 +0000

description:
Update to dhcpcd-8.1.5 with the following changes:

 * inet: Allow forcing a host route from an interface without a lease
 * dhcpcd: Don't wait for an address family to complete if not using it

diffstat:

 external/bsd/dhcpcd/dist/src/defs.h |  2 +-
 external/bsd/dhcpcd/dist/src/ipv4.c |  5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 189b5349ec35 -r 81b30fce23d8 external/bsd/dhcpcd/dist/src/defs.h
--- a/external/bsd/dhcpcd/dist/src/defs.h       Fri Jan 03 12:35:57 2020 +0000
+++ b/external/bsd/dhcpcd/dist/src/defs.h       Fri Jan 03 12:38:14 2020 +0000
@@ -29,7 +29,7 @@
 #define CONFIG_H
 
 #define PACKAGE                        "dhcpcd"
-#define VERSION                        "8.1.4"
+#define VERSION                        "8.1.5"
 
 #ifndef CONFIG
 # define CONFIG                        SYSCONFDIR "/" PACKAGE ".conf"
diff -r 189b5349ec35 -r 81b30fce23d8 external/bsd/dhcpcd/dist/src/ipv4.c
--- a/external/bsd/dhcpcd/dist/src/ipv4.c       Fri Jan 03 12:35:57 2020 +0000
+++ b/external/bsd/dhcpcd/dist/src/ipv4.c       Fri Jan 03 12:38:14 2020 +0000
@@ -429,7 +429,10 @@
                in.s_addr = INADDR_ANY;
                sa_in_init(&rth->rt_gateway, &in);
                rth->rt_mtu = dhcp_get_mtu(ifp);
-               sa_in_init(&rth->rt_ifa, &state->addr->addr);
+               if (state->addr != NULL)
+                       sa_in_init(&rth->rt_ifa, &state->addr->addr);
+               else
+                       rth->rt_ifa.sa_family = AF_UNSPEC;
 
                /* We need to insert the host route just before the router. */
                while ((rtp = RB_TREE_MAX(routes)) != NULL) {



Home | Main Index | Thread Index | Old Index