ofproto: Adjust netdev_monitor when switching netdevs.
authorBen Pfaff <blp@nicira.com>
Thu, 21 Apr 2011 23:25:41 +0000 (16:25 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 29 Apr 2011 21:32:00 +0000 (14:32 -0700)
commite6ed263114e071865884531f5756d7d30035d93d
tree6dec5d15a032bd9757eac7c1e4e0db8c4b95c042
parent7174e5aed2a6d2877c1760d2ae921ae24d7accb5
ofproto: Adjust netdev_monitor when switching netdevs.

This fixes a segfault in the "ofproto - mod-port" test.  The segfault
should not occur--there must be a bug in the netdev_monitor or possibly
the netdev_dummy implementation--but the netdev_monitor_remove() and
netdev_monitor_add() calls are definitely wanted here in any case to ensure
that the new netdev, not the old one, is what gets monitored.
ofproto/ofproto.c