]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - contrib/ipfilter/lib/vtof.c
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.git] / contrib / ipfilter / lib / vtof.c
1 #include "ipf.h"
2
3 int
4 vtof(version)
5         int version;
6 {
7 #ifdef USE_INET6
8         if (version == 6)
9                 return AF_INET6;
10 #endif
11         if (version == 4)
12                 return AF_INET;
13         if (version == 0)
14                 return AF_UNSPEC;
15         return -1;
16 }