ifdef V3_CONFIG_LINUX
DEFAULT_EXTRA_TARGETS=linux_module
else
-DEFAULT_EXTRA_TARGETS=
-endif
-
ifdef V3_CONFIG_NAUTILUS
DEFAULT_EXTRA_TARGETS=nautilus
else
DEFAULT_EXTRA_TARGETS=
endif
-
+endif
# The all: target is the default when no target is given on the
# command line.
cd linux_module/ && make -j 8
cp linux_module/v3vee.ko v3vee.ko
-
+.PHONY: linux_module
linux_module: linux_module/v3vee.ko
nautilus/libnautilus.a: nautilus/*.c nautilus/*.h libv3vee.a
cd nautilus/ && make
cp nautilus/libnautilus.a .
+.PHONY: nautilus
nautilus: nautilus/libnautilus.a
msg.msg_namelen = 0;
msg.msg_control = NULL;
msg.msg_controllen = 0;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0)
msg.msg_iov = &iov;
msg.msg_iovlen = 1;
+#else
+ iov_iter_init(&(msg.msg_iter),WRITE,&iov,1,0);
+#endif
msg.msg_control = NULL;
oldfs = get_fs();
iov.iov_base = (void *)pkt;
iov.iov_len = (__kernel_size_t)len;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0)
msg.msg_iov = &iov;
msg.msg_iovlen = 1;
+#else
+ iov_iter_init(&(msg.msg_iter),WRITE,&iov,1,0);
+#endif
msg.msg_control = NULL;
msg.msg_controllen = 0;
msg.msg_name = NULL;