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