mirror of
https://github.com/rsmarples/dhcpcd.git
synced 2024-11-24 18:44:10 +08:00
Fix Linux compile.
This commit is contained in:
parent
e5fc054ff1
commit
d29bc78d3a
@ -572,7 +572,7 @@ if_route(const struct rt *rt, int action)
|
||||
nlm->rt.rtm_type = RTN_UNICAST;
|
||||
}
|
||||
|
||||
nlm->rt.rtm_dst_len = inet_ntocidr(&rt->net);
|
||||
nlm->rt.rtm_dst_len = inet_ntocidr(rt->net);
|
||||
add_attr_l(&nlm->hdr, sizeof(*nlm), RTA_DST,
|
||||
&rt->dest.s_addr, sizeof(rt->dest.s_addr));
|
||||
if (nlm->rt.rtm_protocol == RTPROT_KERNEL) {
|
||||
|
Loading…
Reference in New Issue
Block a user