1 #include "ipf.h" 2 3 int 4 vtof(int version) 5 { 6 #ifdef USE_INET6 7 if (version == 6) 8 return (AF_INET6); 9 #endif 10 if (version == 4) 11 return (AF_INET); 12 if (version == 0) 13 return (AF_UNSPEC); 14 return (-1); 15 } 16