예제 #1
0
파일: lxc_user_nic.c 프로젝트: d4s/lxc
static int get_mtu(char *name)
{
	int idx;

	idx = if_nametoindex(name);
	if (idx < 0)
		return -1;
	return netdev_get_mtu(idx);
}
예제 #2
0
파일: lxc_user_nic.c 프로젝트: Gu1/lxc
static int get_mtu(char *name)
{
	int idx = if_nametoindex(name);
	return netdev_get_mtu(idx);
}