From e5d30a1f4bff488292ff0575286adce536ec5dce Mon Sep 17 00:00:00 2001 From: Daniel Becker Date: Tue, 17 Nov 2015 17:29:09 -0800 Subject: [PATCH] explicitly request interface name as well --- miniupnpd/bsd/getroute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniupnpd/bsd/getroute.c b/miniupnpd/bsd/getroute.c index 7962a17..84431d0 100644 --- a/miniupnpd/bsd/getroute.c +++ b/miniupnpd/bsd/getroute.c @@ -64,7 +64,7 @@ get_src_for_route_to(const struct sockaddr * dst, rtm.rtm_flags = RTF_UP; rtm.rtm_version = RTM_VERSION; rtm.rtm_seq = 1; - rtm.rtm_addrs = RTA_DST | RTA_IFA; /* pass destination address & request source */ + rtm.rtm_addrs = RTA_DST | RTA_IFA | RTA_IFP; /* pass destination address, request source address & interface */ memcpy(m_rtmsg.m_space, dst, l); ((struct sockaddr *)m_rtmsg.m_space)->sa_len = l; rtm.rtm_msglen = sizeof(struct rt_msghdr) + l;