Rivoreo Source Code Repositories
src.rivoreo.one
/
net
/
ipfilter
/
a6b03ad4e888638edc2a721bb250b108433c5ed0
/
.
/
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"
;
}