freebsd_amp_hwpstate/sbin/ipf/libipf/vtof.c

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
202 B
C
Raw Normal View History

#include "ipf.h"
int
vtof(int version)
{
#ifdef USE_INET6
if (version == 6)
return (AF_INET6);
#endif
if (version == 4)
return (AF_INET);
if (version == 0)
return (AF_UNSPEC);
return (-1);
}