summaryrefslogtreecommitdiff
path: root/ofproto/tunnel.h
diff options
context:
space:
mode:
authorJiri Benc <jbenc@redhat.com>2015-11-25 11:31:11 -0200
committerBen Pfaff <blp@ovn.org>2015-11-30 10:31:35 -0800
commitffe4c74f9331114287754d5b0ca8eec219927acc (patch)
treee7f161b5d6f9b34e8b3a39ae92f51951ca08768e /ofproto/tunnel.h
parent53902038abe62c45ff46d7de9dcec30c3d1d861e (diff)
downloadopenvswitch-ffe4c74f9331114287754d5b0ca8eec219927acc.tar.gz
tunneling: extend flow_tnl with ipv6 addresses
Note that because there's been no prerequisite on the outer protocol, we cannot add it now. Instead, treat the ipv4 and ipv6 dst fields in the way that either both are null, or at most one of them is non-null. [cascardo: abstract testing either dst with flow_tnl_dst_is_set] cascardo: using IPv4-mapped address is an exercise for the future, since this would require special handling of MFF_TUN_SRC and MFF_TUN_DST and OpenFlow messages. Signed-off-by: Jiri Benc <jbenc@redhat.com> Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com> Co-authored-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'ofproto/tunnel.h')
-rw-r--r--ofproto/tunnel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ofproto/tunnel.h b/ofproto/tunnel.h
index 3bb76c507..b2fc57ce2 100644
--- a/ofproto/tunnel.h
+++ b/ofproto/tunnel.h
@@ -47,7 +47,7 @@ odp_port_t tnl_port_send(const struct ofport_dpif *, struct flow *,
static inline bool
tnl_port_should_receive(const struct flow *flow)
{
- return flow->tunnel.ip_dst != 0;
+ return flow_tnl_dst_is_set(&flow->tunnel);
}
int tnl_port_build_header(const struct ofport_dpif *ofport,