Source-Changes-HG archive

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

[src/netbsd-8]: src/external/bsd/dhcpcd/dist/src Pull up following revision(s...



details:   https://anonhg.NetBSD.org/src/rev/f328de1be753
branches:  netbsd-8
changeset: 434293:f328de1be753
user:      snj <snj%NetBSD.org@localhost>
date:      Mon Sep 11 05:18:34 2017 +0000

description:
Pull up following revision(s) (requested by bsiegert in ticket #266):
        external/bsd/dhcpcd/dist/src/dhcp.c: revision 1.2
dhcp: Fix classless static routes
Assign the netwask correctly from the message.
Cherry-picked from upstream in
https://dev.marples.name/rDHC510c760cb24ef4b1b16cc14732c5ffe0fbb0d96d.
This fixes route assignments when running on Google Compute Engine,
which uses classless static routes.

diffstat:

 external/bsd/dhcpcd/dist/src/dhcp.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 8d5f02d0ec58 -r f328de1be753 external/bsd/dhcpcd/dist/src/dhcp.c
--- a/external/bsd/dhcpcd/dist/src/dhcp.c       Mon Sep 11 05:14:56 2017 +0000
+++ b/external/bsd/dhcpcd/dist/src/dhcp.c       Mon Sep 11 05:18:34 2017 +0000
@@ -452,7 +452,7 @@
                }
 
                sa_in_init(&rt->rt_dest, &dest);
-               sa_in_init(&rt->rt_dest, &netmask);
+               sa_in_init(&rt->rt_netmask, &netmask);
                sa_in_init(&rt->rt_gateway, &gateway);
 
                /* If CIDR is 32 then it's a host route. */



Home | Main Index | Thread Index | Old Index