X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=ofproto%2Ftunnel.h;h=1f3dfc23d878c54a734f8f18fec5f5ddaa382f39;hb=968eec593cc61690c9e0ed97450c4889258381af;hp=4a28df95973539e4804d2d82eede0469d1ecf9c1;hpb=227a0141b90a17db750df238fa4f9f3ade6c6401;p=cascardo%2Fovs.git diff --git a/ofproto/tunnel.h b/ofproto/tunnel.h index 4a28df959..1f3dfc23d 100644 --- a/ofproto/tunnel.h +++ b/ofproto/tunnel.h @@ -47,13 +47,14 @@ 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, const struct flow *tnl_flow, - uint8_t dmac[ETH_ADDR_LEN], - uint8_t smac[ETH_ADDR_LEN], - ovs_be32 ip_src, struct ovs_action_push_tnl *data); + const struct eth_addr dmac, + const struct eth_addr smac, + const struct in6_addr *ipv6_src, + struct ovs_action_push_tnl *data); #endif /* tunnel.h */