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