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 dhcp: Fix classless static routes
details: https://anonhg.NetBSD.org/src/rev/8b848bf5a683
branches: trunk
changeset: 356142:8b848bf5a683
user: bsiegert <bsiegert%NetBSD.org@localhost>
date: Tue Sep 05 11:58:55 2017 +0000
description:
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 5d0fc946f1eb -r 8b848bf5a683 external/bsd/dhcpcd/dist/src/dhcp.c
--- a/external/bsd/dhcpcd/dist/src/dhcp.c Tue Sep 05 11:12:32 2017 +0000
+++ b/external/bsd/dhcpcd/dist/src/dhcp.c Tue Sep 05 11:58:55 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