The ppp application relies on the if_tun interface to properly
install a p2p host route between the end points. The ppp module upates this router based on user configuration later on. The rt_Update() seems to always set the RTF_GATEWAY flag, which is broken.
This commit is contained in:
parent
7aaeeb0704
commit
fba34872ec
@ -910,8 +910,10 @@ rt_Update(struct bundle *bundle, const struct sockaddr *dst,
|
||||
p += memcpy_roundup(p, dst, dst->sa_len);
|
||||
}
|
||||
|
||||
rtmes.m_rtm.rtm_addrs |= RTA_GATEWAY;
|
||||
if (gw != NULL && (gw->sa_family != AF_LINK))
|
||||
rtmes.m_rtm.rtm_addrs |= RTA_GATEWAY;
|
||||
p += memcpy_roundup(p, gw, gw->sa_len);
|
||||
|
||||
if (mask) {
|
||||
rtmes.m_rtm.rtm_addrs |= RTA_NETMASK;
|
||||
p += memcpy_roundup(p, mask, mask->sa_len);
|
||||
|
Loading…
Reference in New Issue
Block a user