summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2017-05-29 22:03:25 +0200
committerRoy Marples <roy@marples.name>2017-05-31 20:26:51 +0200
commit510c760cb24ef4b1b16cc14732c5ffe0fbb0d96d (patch)
treed3974f095c9e7f666e6ba67ec8629ce039289302
parentf58a7db77fd3dfec7f0d5c3630ecf906f300e9c1 (diff)
downloaddhcpcd-510c760cb24ef4b1b16cc14732c5ffe0fbb0d96d.tar.xz
dhcp: Fix classless static routes
Summary: Assign the netwask correctly from the message. Fixes T122. Test Plan: Test dhcpcd using the Classless Static Routes DHCP option. Reviewers: c_14 Reviewed By: c_14 Maniphest Tasks: T122 Differential Revision: https://dev.marples.name/D116
-rw-r--r--src/dhcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dhcp.c b/src/dhcp.c
index 1389f72c..be3d354a 100644
--- a/src/dhcp.c
+++ b/src/dhcp.c
@@ -452,7 +452,7 @@ decode_rfc3442_rt(struct rt_head *routes, struct interface *ifp,
}
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. */