Rivoreo Source Code Repositories
src.rivoreo.one
/
net
/
ipfilter
/
e33cd7a683824a8d9943a629d1dbe6d9f6461d4f
/
.
/
lib
/
ftov.c
blob: cb9715de450f98552529d9787f506ca3d0213034 [
file
] [
log
] [
blame
] [
raw
]
#include
"ipf.h"
int
ftov
(
version
)
int
version
;
{
#ifdef
USE_INET6
if
(
version
==
AF_INET6
)
return
6
;
#endif
if
(
version
==
AF_INET
)
return
4
;
if
(
version
==
AF_UNSPEC
)
return
0
;
return
-
1
;
}