rte<>ro_flags translation */
| 292 | |
| 293 | /* rte<>ro_flags translation */ |
| 294 | static inline void |
| 295 | rt_update_ro_flags(struct route *ro) |
| 296 | { |
| 297 | int nh_flags = ro->ro_nh->nh_flags; |
| 298 | |
| 299 | ro->ro_flags &= ~ (RT_REJECT|RT_BLACKHOLE|RT_HAS_GW); |
| 300 | |
| 301 | ro->ro_flags |= (nh_flags & NHF_REJECT) ? RT_REJECT : 0; |
| 302 | ro->ro_flags |= (nh_flags & NHF_BLACKHOLE) ? RT_BLACKHOLE : 0; |
| 303 | ro->ro_flags |= (nh_flags & NHF_GATEWAY) ? RT_HAS_GW : 0; |
| 304 | } |
| 305 | |
| 306 | /* |
| 307 | * IP output. The packet in mbuf chain m contains a skeletal IP |