ofproto: Fix behavior when special_cb not present (as with ovs-openflowd).
authorBen Pfaff <blp@nicira.com>
Thu, 17 Feb 2011 23:04:44 +0000 (15:04 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 18 Feb 2011 00:04:08 +0000 (16:04 -0800)
commit7a7ae75a3839af2ae0803af66e51cc93cf36603c
tree90e882ebb121d22c4a993c4c452cc78e3afb26e6
parent88b649747b690a899f9aae78de6f16690fac1a0c
ofproto: Fix behavior when special_cb not present (as with ovs-openflowd).

The special_cb hook allows ofproto's client to intercept packets.  When
it is not present (as in ovs-openflowd), no packets need to be intercepted,
but ofproto implemented the opposite behavior.  This fixes the problem.

Reported-by: kk yap <yapkke@stanford.edu>
ofproto/ofproto.c