aboutsummaryrefslogtreecommitdiff
path: root/datapath/flow.h
diff options
context:
space:
mode:
authorJustin Pettit <jpettit@nicira.com>2010-12-07 14:02:17 -0800
committerJustin Pettit <jpettit@nicira.com>2011-02-02 12:42:40 -0800
commitbad68a9965215511b305c59d7f1830344ec2241f (patch)
tree2d21fbf5a0591cfec65932177ba7d6eb3cc9f03a /datapath/flow.h
parent6767a2cce9a6412b3a41a927c4d56b9f0e1ec36f (diff)
nicira-ext: Support matching ARP source and target hardware addresses.
OpenFlow 1.0 doesn't allow matching on the ARP source and target hardware address. This has caused us to introduce hacks such as the Drop Spoofed ARP action. Now that we have extensible match, we can match on more fields within ARP: - Source Hardware Address (arp_sha) - Target Hardware Address (arp_tha) Signed-off-by: Justin Pettit <jpettit@nicira.com> Acked-by: Jesse Gross <jesse@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'datapath/flow.h')
-rw-r--r--datapath/flow.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/datapath/flow.h b/datapath/flow.h
index be734532..b9af2722 100644
--- a/datapath/flow.h
+++ b/datapath/flow.h
@@ -42,6 +42,8 @@ struct sw_flow_key {
u8 dl_dst[ETH_ALEN]; /* Ethernet destination address. */
u8 nw_proto; /* IP protocol or lower 8 bits of ARP opcode. */
u8 nw_tos; /* IP ToS (DSCP field, 6 bits). */
+ u8 arp_sha[ETH_ALEN]; /* ARP source hardware address. */
+ u8 arp_tha[ETH_ALEN]; /* ARP target hardware address. */
};
struct sw_flow {