Answer ARP requests from controller directly in secchan.
authorBen Pfaff <blp@nicira.com>
Thu, 17 Jul 2008 00:01:03 +0000 (17:01 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 18 Jul 2008 20:23:23 +0000 (13:23 -0700)
commitebf2794ba9df8c3e968f55bb357526c480374868
treef4ca831d0ca94780f499dd8426b181d3a1c4193d
parentf81c152daf2cb3eeb9d2d30d267ed52adfed5bb5
Answer ARP requests from controller directly in secchan.

With in-band control, it can happen that the controller needs to send
out an ARP request to find out the MAC address of the switch.  These
packets are sent as broadcasts, so the secure channel will attempt to
send them back to the controller as ofp_packet_in messages.  Of course,
that won't work, because the controller won't be able to respond to
the ofp_packet_in (because it needs the MAC address of the switch to
do so).

This commit makes the secure channel recognize broadcast ARP packets
that originate from the controller and flood them without passing them
back up to the controller.
secchan/secchan.c