diff options
| author | Roy Marples <roy@marples.name> | 2021-02-09 10:11:54 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2021-02-09 10:11:54 +0000 |
| commit | 44eccd184f0cf3a040c680a3070a347ee3a0f783 (patch) | |
| tree | 720135d82761ce3625c0036c383376f90c9cb90d /src/if-bsd.c | |
| parent | e0651533ea9d7bc06b0e891e83dbd565af3db527 (diff) | |
| download | dhcpcd-44eccd184f0cf3a040c680a3070a347ee3a0f783.tar.xz | |
BSD: Find the correct interface for tunneled routes
Should disard a harmless diagnostic.
Diffstat (limited to 'src/if-bsd.c')
| -rw-r--r-- | src/if-bsd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/if-bsd.c b/src/if-bsd.c index aa488397..e5ffe500 100644 --- a/src/if-bsd.c +++ b/src/if-bsd.c @@ -627,6 +627,8 @@ if_findsa(struct dhcpcd_ctx *ctx, const struct sockaddr *sa) sin = (const void *)sa; if ((ia = ipv4_findmaskaddr(ctx, &sin->sin_addr))) return ia->iface; + if ((ia = ipv4_findmaskbrd(ctx, &sin->sin_addr))) + return ia->iface; break; } #endif |
