[ovs-discuss] [PATCH 9/9] PROC: Hacks

Justin Pettit jpettit at nicira.com
Wed Jul 29 22:21:09 UTC 2009


---
 secchan/in-band.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/secchan/in-band.c b/secchan/in-band.c
index 881e1fd..a56a81a 100644
--- a/secchan/in-band.c
+++ b/secchan/in-band.c
@@ -279,6 +279,7 @@ in_band_run(struct in_band *in_band)
     if (controller_ip == in_band->controller_ip) {
         return;
     } else if (!controller_ip) {
+        drop_flow(in_band, IBR_FROM_LOCAL_DHCP);
         drop_flow(in_band, IBR_TO_CTL_ARP);
         drop_flow(in_band, IBR_FROM_CTL_ARP);
         drop_flow(in_band, IBR_TO_CTL_OFP);
@@ -314,16 +315,16 @@ in_band_run(struct in_band *in_band)
     flow.nw_proto = ARP_OP_REQUEST;
     flow.nw_src = controller_ip;
     setup_flow(in_band, IBR_TO_CTL_ARP, &flow,
-               (OFPFW_DL_TYPE | OFPFW_NW_PROTO | OFPFW_NW_SRC_MASK), 
+               (OFPFW_DL_TYPE | OFPFW_NW_PROTO | OFPFW_NW_SRC_ALL), 
                OFPP_NORMAL);
 
-    /* Allow ARP requests from the controller through. */
+    /* Allow ARP replies from the controller through. */
     memset(&flow, 0, sizeof flow);
     flow.dl_type = htons(ETH_TYPE_ARP);
     flow.nw_proto = ARP_OP_REPLY;
     flow.nw_dst = controller_ip;
     setup_flow(in_band, IBR_FROM_CTL_ARP, &flow,
-               (OFPFW_DL_TYPE | OFPFW_NW_PROTO | OFPFW_NW_DST_MASK), 
+               (OFPFW_DL_TYPE | OFPFW_NW_PROTO | OFPFW_NW_DST_ALL), 
                OFPP_NORMAL);
  
     /* OpenFlow traffic to or from the controller.
-- 
1.6.3.1





More information about the discuss mailing list