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