PERFORCE change 161829 for review

Marko Zec zec at FreeBSD.org
Sat May 9 13:20:58 UTC 2009


http://perforce.freebsd.org/chv.cgi?CH=161829

Change 161829 by zec at zec_tpx32 on 2009/05/09 13:20:28

	Check for management API / ABI version mismatch before attempting
	to move ifnets from one vnet to another.

Affected files ...

.. //depot/projects/vimage-commit2/src/sys/kern/kern_vimage.c#39 edit

Differences ...

==== //depot/projects/vimage-commit2/src/sys/kern/kern_vimage.c#39 (text+ko) ====

@@ -200,6 +200,10 @@
 	struct vimage *new_vip;
 	struct vnet *new_vnet = NULL;
 
+	/* Check for API / ABI version mismatch. */
+	if (vi_req->vi_api_cookie != VI_API_COOKIE)
+		return (EDOOFUS);
+
 	if (vi_req == NULL || strcmp(vi_req->vi_name, "..") == 0) {
 		if (IS_DEFAULT_VIMAGE(vip))
 			return (ENXIO);


More information about the p4-projects mailing list