|
Lines 218-229
Link Here
|
| 218 |
ifp = ia->ia_ifp; |
218 |
ifp = ia->ia_ifp; |
| 219 |
ip->ip_ttl = 1; |
219 |
ip->ip_ttl = 1; |
| 220 |
isbroadcast = in_broadcast(dst->sin_addr, ifp); |
220 |
isbroadcast = in_broadcast(dst->sin_addr, ifp); |
|
|
221 |
#if 0 |
| 221 |
} else if (flags & IP_SENDONES) { |
222 |
} else if (flags & IP_SENDONES) { |
| 222 |
if ((ia = ifatoia(ifa_ifwithbroadaddr(sintosa(dst)))) == NULL) { |
223 |
if ((ia = ifatoia(ifa_ifwithbroadaddr(sintosa(dst)))) == NULL) { |
| 223 |
ipstat.ips_noroute++; |
224 |
ipstat.ips_noroute++; |
| 224 |
error = ENETUNREACH; |
225 |
error = ENETUNREACH; |
| 225 |
goto bad; |
226 |
goto bad; |
| 226 |
} |
227 |
} |
|
|
228 |
#else |
| 229 |
} else if ((flags & IP_SENDONES) && |
| 230 |
((ia = ifatoia(ifa_ifwithbroadaddr(sintosa(dst)))) != NULL)) { |
| 231 |
#endif |
| 227 |
ifp = ia->ia_ifp; |
232 |
ifp = ia->ia_ifp; |
| 228 |
ip->ip_dst.s_addr = INADDR_BROADCAST; |
233 |
ip->ip_dst.s_addr = INADDR_BROADCAST; |
| 229 |
dst->sin_addr = ip->ip_dst; |
234 |
dst->sin_addr = ip->ip_dst; |