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
e2126dec84
commit
e657c679e1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=186308
@ -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