* Get the family descriptor from the family ID */
| 216 | * Get the family descriptor from the family ID |
| 217 | */ |
| 218 | static __inline iffam_p |
| 219 | get_iffam_from_af(sa_family_t family) |
| 220 | { |
| 221 | iffam_p iffam; |
| 222 | int k; |
| 223 | |
| 224 | for (k = 0; k < NUM_FAMILIES; k++) { |
| 225 | iffam = &gFamilies[k]; |
| 226 | if (iffam->family == family) |
| 227 | return (iffam); |
| 228 | } |
| 229 | return (NULL); |
| 230 | } |
| 231 | |
| 232 | /* |
| 233 | * Get the family descriptor from the hook |