Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 May 2009 13:20:57 GMT
From:      Marko Zec <zec@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 161829 for review
Message-ID:  <200905091320.n49DKvBc058991@repoman.freebsd.org>

index | next in thread | raw e-mail

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

Change 161829 by zec@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);


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905091320.n49DKvBc058991>