Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

/*	$NetBSD: ftov.c,v 1.1.1.1 2012/03/23 21:20:08 christos Exp $	*/

#include "ipf.h"

int
ftov(version)
	int version;
{
#ifdef USE_INET6
	if (version == AF_INET6)
		return 6;
#endif
	if (version == AF_INET)
		return 4;
	if (version == AF_UNSPEC)
		return 0;
	return -1;
}