freebsd-dev/contrib/ipfilter/lib/familyname.c
Cy Schubert 43988e3f50 Replace AF_INET6 ifdefs with USE_INET6 ifdefs. This is more consistent
and guaranteed to build everywhere in ipfilter.

Not all of this commit can be MFCed. Some is original code while others
are not.
2017-06-23 02:42:04 +00:00

13 lines
184 B
C

#include "ipf.h"
const char *familyname(int family)
{
if (family == AF_INET)
return "inet";
#ifdef USE_INET6
if (family == AF_INET6)
return "inet6";
#endif
return "unknown";
}