1*bc4097aaSchristos /* $NetBSD: familyname.c,v 1.1.1.1 2012/03/23 21:20:08 christos Exp $ */ 2*bc4097aaSchristos 3*bc4097aaSchristos #include "ipf.h" 4*bc4097aaSchristos familyname(int family)5*bc4097aaSchristosconst char *familyname(int family) 6*bc4097aaSchristos { 7*bc4097aaSchristos if (family == AF_INET) 8*bc4097aaSchristos return "inet"; 9*bc4097aaSchristos #ifdef AF_INET6 10*bc4097aaSchristos if (family == AF_INET6) 11*bc4097aaSchristos return "inet6"; 12*bc4097aaSchristos #endif 13*bc4097aaSchristos return "unknown"; 14*bc4097aaSchristos } 15