ovn-northd: Port security allows receiving packets to multicast/broadcast.
authorBen Pfaff <blp@nicira.com>
Wed, 22 Apr 2015 01:04:39 +0000 (18:04 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 28 Apr 2015 23:58:04 +0000 (16:58 -0700)
Otherwise ARP and other broadcast protocols would be problematic.

Reported-by: Justin Pettit <jpettit@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
ovn/northd/ovn-northd.c
ovn/ovn-nb.xml

index e80c8e6..311baa5 100644 (file)
@@ -442,6 +442,9 @@ build_pipeline(struct northd_context *ctx)
     }
 
     /* Table 3: Egress port security. */
+    NBREC_LOGICAL_SWITCH_FOR_EACH (lswitch, ctx->ovnnb_idl) {
+        pipeline_add(&pc, lswitch, 3, 100, "eth.dst[40]", "output;");
+    }
     NBREC_LOGICAL_PORT_FOR_EACH (lport, ctx->ovnnb_idl) {
         struct ds match;
 
index bd9f8a2..2e792a7 100644 (file)
         A set of L2 (Ethernet) or L3 (IPv4 or IPv6) addresses or L2+L3 pairs
         from which the logical port is allowed to send packets and to which it
         is allowed to receive packets.  If this column is empty, all addresses
-        are permitted.
+        are permitted.  Logical ports are always allowed to receive packets
+        addressed to multicast and broadcast addresses.
       </p>
 
       <p>