1 #ifndef _IFCONFIG_UTIL_H
2 #define _IFCONFIG_UTIL_H
4 #include <netinet/in.h>
6 #include <sys/socket.h>
14 void (*af_status
)(prop_dictionary_t
, prop_dictionary_t
, bool);
15 void (*af_addr_commit
)(prop_dictionary_t
, prop_dictionary_t
);
16 SIMPLEQ_ENTRY(afswtch
) af_next
;
19 void print_link_addresses(prop_dictionary_t
, bool);
20 const char *get_string(const char *, const char *, u_int8_t
*, int *);
21 const struct afswtch
*lookup_af_byname(const char *);
22 const struct afswtch
*lookup_af_bynum(int);
23 void print_string(const u_int8_t
*, int);
25 struct paddr_prefix
*prefixlen_to_mask(int, int);
26 int direct_ioctl(prop_dictionary_t
, unsigned long, void *);
27 int indirect_ioctl(prop_dictionary_t
, unsigned long, void *);
29 void in6_fillscopeid(struct sockaddr_in6
*sin6
);
31 bool ifa_any_preferences(const char *, struct ifaddrs
*, int);
32 void ifa_print_preference(const char *, const struct sockaddr
*);
33 int16_t ifa_get_preference(const char *, const struct sockaddr
*);
35 #endif /* _IFCONFIG_UTIL_H */