| 4216 | } |
| 4217 | |
| 4218 | int |
| 4219 | if_getmtu_family(if_t ifp, int family) |
| 4220 | { |
| 4221 | struct domain *dp; |
| 4222 | |
| 4223 | for (dp = domains; dp; dp = dp->dom_next) { |
| 4224 | if (dp->dom_family == family && dp->dom_ifmtu != NULL) |
| 4225 | return (dp->dom_ifmtu((struct ifnet *)ifp)); |
| 4226 | } |
| 4227 | |
| 4228 | return (((struct ifnet *)ifp)->if_mtu); |
| 4229 | } |
| 4230 | |
| 4231 | /* |
| 4232 | * Methods for drivers to access interface unicast and multicast |