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