diff options
| author | Roy Marples <roy@marples.name> | 2017-05-29 22:03:25 +0200 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2017-05-31 20:26:51 +0200 |
| commit | 510c760cb24ef4b1b16cc14732c5ffe0fbb0d96d (patch) | |
| tree | d3974f095c9e7f666e6ba67ec8629ce039289302 | |
| parent | f58a7db77fd3dfec7f0d5c3630ecf906f300e9c1 (diff) | |
| download | dhcpcd-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. */ |
