Fix ppp(8) to add RTF_HOST flag to created host route.
Reported by: Mike Tancsa <mike@sentex.net> Approved by: avg (mentor) MFC After: 1 week
This commit is contained in:
parent
2170fff8a5
commit
538abeb18d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=325157
@ -802,6 +802,8 @@ rt_Set(struct bundle *bundle, int cmd, const struct ncprange *dst,
|
||||
cp += memcpy_roundup(cp, &samask, samask.ss_len);
|
||||
rtmes.m_rtm.rtm_addrs |= RTA_NETMASK;
|
||||
}
|
||||
else
|
||||
rtmes.m_rtm.rtm_flags |= RTF_HOST;
|
||||
|
||||
nb = cp - (char *)&rtmes;
|
||||
rtmes.m_rtm.rtm_msglen = nb;
|
||||
@ -906,6 +908,8 @@ rt_Update(struct bundle *bundle, const struct sockaddr *dst,
|
||||
rtmes.m_rtm.rtm_addrs |= RTA_NETMASK;
|
||||
p += memcpy_roundup(p, mask, mask->sa_len);
|
||||
}
|
||||
else
|
||||
rtmes.m_rtm.rtm_flags |= RTF_HOST;
|
||||
|
||||
if (ifa && ifp && ifp->sa_family == AF_LINK) {
|
||||
rtmes.m_rtm.rtm_addrs |= RTA_IFP;
|
||||
|
Loading…
Reference in New Issue
Block a user