diff options
| author | Roy Marples <roy@marples.name> | 2008-11-27 16:16:32 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-11-27 16:16:32 +0000 |
| commit | b96011558a4c5a2a2749e11075d70de9a914bf56 (patch) | |
| tree | 4b6e3b28e830aa29cf819ad8332c1f8077204210 /if-linux.c | |
| parent | fb5c66b68da8a355d653148d3a05bcb0e94aeb69 (diff) | |
| download | dhcpcd-b96011558a4c5a2a2749e11075d70de9a914bf56.tar.xz | |
Ensure that we add the src pref address.
Diffstat (limited to 'if-linux.c')
| -rw-r--r-- | if-linux.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -406,7 +406,7 @@ if_route(const struct interface *iface, nlm->rt.rtm_dst_len = inet_ntocidr(*netmask); add_attr_l(&nlm->hdr, sizeof(*nlm), RTA_DST, &destination->s_addr, sizeof(destination->s_addr)); - if (action != 1) { + if (nlm->rt.rtm_protocol == RTPROT_KERNEL) { add_attr_l(&nlm->hdr, sizeof(*nlm), RTA_PREFSRC, &iface->addr.s_addr, sizeof(iface->addr.s_addr)); } |
