From: Ben Pfaff Date: Wed, 30 Jul 2008 22:43:57 +0000 (-0700) Subject: vconn: Allow vconns to delegate to underlying implementations. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b803dfadd1525c3d9cb0a8d80fabca54c43cf998;p=openvswitch vconn: Allow vconns to delegate to underlying implementations. --- diff --git a/lib/vconn.c b/lib/vconn.c index 99a2eb01..8638efbe 100644 --- a/lib/vconn.c +++ b/lib/vconn.c @@ -74,11 +74,16 @@ check_vconn_classes(void) struct vconn_class *class = vconn_classes[i]; assert(class->name != NULL); assert(class->open != NULL); - assert(class->close != NULL); - assert(class->accept - ? !class->recv && !class->send - : class->recv && class->send); - assert(class->wait != NULL); + if (class->close || class->accept || class->recv || class->send + || class->wait) { + assert(class->close != NULL); + assert(class->accept + ? !class->recv && !class->send + : class->recv && class->send); + assert(class->wait != NULL); + } else { + /* This class delegates to another one. */ + } } #endif }