X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=datapath%2Fflow.h;h=ee1c4c92a7b1d36811917df2b0952d978ec250f3;hb=d31f1109f10e5ffb9bf266306b913ebf23781666;hp=b9af27224f948b9b954ea44afa29be7ab151a469;hpb=bad68a9965215511b305c59d7f1830344ec2241f;p=sliver-openvswitch.git diff --git a/datapath/flow.h b/datapath/flow.h index b9af27224..ee1c4c92a 100644 --- a/datapath/flow.h +++ b/datapath/flow.h @@ -31,8 +31,16 @@ struct sw_flow_actions { struct sw_flow_key { __be64 tun_id; /* Encapsulating tunnel ID. */ - __be32 nw_src; /* IP source address. */ - __be32 nw_dst; /* IP destination address. */ + union { + struct { + __be32 ipv4_src; /* IPv4 source address. */ + __be32 ipv4_dst; /* IPv4 destination address. */ + }; + struct { + __be32 ipv6_src[4]; /* IPv6 source address. */ + __be32 ipv6_dst[4]; /* IPv6 source address. */ + }; + }; u16 in_port; /* Input switch port. */ __be16 dl_tci; /* 0 if no VLAN, VLAN_TAG_PRESENT set otherwise. */ __be16 dl_type; /* Ethernet frame type. */