* Routing table ioctl interface. */
| 247 | * Routing table ioctl interface. |
| 248 | */ |
| 249 | int |
| 250 | rtioctl_fib(u_long req, caddr_t data, u_int fibnum) |
| 251 | { |
| 252 | |
| 253 | /* |
| 254 | * If more ioctl commands are added here, make sure the proper |
| 255 | * super-user checks are being performed because it is possible for |
| 256 | * prison-root to make it this far if raw sockets have been enabled |
| 257 | * in jails. |
| 258 | */ |
| 259 | #ifdef INET |
| 260 | /* Multicast goop, grrr... */ |
| 261 | return mrt_ioctl ? mrt_ioctl(req, data, fibnum) : EOPNOTSUPP; |
| 262 | #else /* INET */ |
| 263 | return ENXIO; |
| 264 | #endif /* INET */ |
| 265 | } |
| 266 | |
| 267 | struct ifaddr * |
| 268 | ifa_ifwithroute(int flags, const struct sockaddr *dst, |