Rivoreo Source Code Repositories
src.rivoreo.one
/
net
/
ipfilter
/
14412fb585f268e88b07942b1c3b06c641e1fff7
/
.
/
lib
/
familyname.c
blob: 35bb975cc6b172c0e10b7043e222f8600fe3b01d [
file
] [
log
] [
blame
] [
raw
]
#include
"ipf.h"
const
char
*
familyname
(
int
family
)
{
if
(
family
==
AF_INET
)
return
"inet"
;
#ifdef
AF_INET6
if
(
family
==
AF_INET6
)
return
"inet6"
;
#endif
return
"unknown"
;
}