Home | History | Annotate | Line # | Download | only in ifconfig
util.h revision 1.6
      1 #ifndef _IFCONFIG_UTIL_H
      2 #define _IFCONFIG_UTIL_H
      3 
      4 #include <netinet/in.h>
      5 
      6 #include "parse.h"
      7 
      8 struct afswtch {
      9 	const char *af_name;
     10 	short af_af;
     11 	void (*af_status)(prop_dictionary_t, prop_dictionary_t, bool);
     12 	void (*af_addr_commit)(prop_dictionary_t, prop_dictionary_t);
     13 	SIMPLEQ_ENTRY(afswtch)	af_next;
     14 };
     15 
     16 const char *get_string(const char *, const char *, u_int8_t *, int *);
     17 const struct afswtch *lookup_af_byname(const char *);
     18 const struct afswtch *lookup_af_bynum(int);
     19 void	print_string(const u_int8_t *, int);
     20 int    getsock(int);
     21 struct paddr_prefix *prefixlen_to_mask(int, int);
     22 int direct_ioctl(prop_dictionary_t, unsigned long, void *);
     23 int indirect_ioctl(prop_dictionary_t, unsigned long, void *);
     24 #ifdef INET6
     25 void in6_fillscopeid(struct sockaddr_in6 *sin6);
     26 #endif /* INET6	*/
     27 
     28 #endif /* _IFCONFIG_UTIL_H */
     29