xref: /freebsd/sbin/ipf/libipf/familyname.c (revision e0c4386e7e71d93b0edc0c8fa156263fc4a8b0b6)
1 #include "ipf.h"
2 
3 const char *
4 familyname(int family)
5 {
6 	if (family == AF_INET)
7 		return ("inet");
8 #ifdef USE_INET6
9 	if (family == AF_INET6)
10 		return ("inet6");
11 #endif
12 	return ("unknown");
13 }
14