Module Name: src
Committed By: bsiegert
Date: Tue Sep 5 11:58:55 UTC 2017
Modified Files:
src/external/bsd/dhcpcd/dist/src: dhcp.c
Log Message:
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.2 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.2
--- 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 Tue Sep 5 11:58:55 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. */