Module Name:    src
Committed By:   snj
Date:           Mon Sep 11 05:18:34 UTC 2017

Modified Files:
        src/external/bsd/dhcpcd/dist/src [netbsd-8]: dhcp.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.3 -r1.1.1.3.8.1 src/external/bsd/dhcpcd/dist/src/dhcp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/dhcpcd/dist/src/dhcp.c
diff -u src/external/bsd/dhcpcd/dist/src/dhcp.c:1.1.1.3 src/external/bsd/dhcpcd/dist/src/dhcp.c:1.1.1.3.8.1
--- src/external/bsd/dhcpcd/dist/src/dhcp.c:1.1.1.3	Fri Apr 14 09:53:07 2017
+++ src/external/bsd/dhcpcd/dist/src/dhcp.c	Mon Sep 11 05:18:34 2017
@@ -452,7 +452,7 @@ decode_rfc3442_rt(struct rt_head *routes
 		}
 
 		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. */

Reply via email to