static struct netdev_dev_tunnel *
netdev_dev_tunnel_cast(const struct netdev_dev *netdev_dev)
{
- assert(is_tunnel_class(netdev_dev_get_class(netdev_dev)));
+ ovs_assert(is_tunnel_class(netdev_dev_get_class(netdev_dev)));
return CONTAINER_OF(netdev_dev, struct netdev_dev_tunnel, netdev_dev);
}
netdev_tunnel_cast(const struct netdev *netdev)
{
struct netdev_dev *netdev_dev = netdev_get_dev(netdev);
- assert(is_tunnel_class(netdev_dev_get_class(netdev_dev)));
+ ovs_assert(is_tunnel_class(netdev_dev_get_class(netdev_dev)));
return CONTAINER_OF(netdev, struct netdev_tunnel, netdev);
}
if (netdev_dev->valid_remote_ip)
smap_add_format(args, "remote_ip", IP_FMT,
- IP_ARGS(&netdev_dev->remote_addr.sin_addr));
+ IP_ARGS(netdev_dev->remote_addr.sin_addr.s_addr));
if (netdev_dev->valid_remote_port)
smap_add_format(args, "remote_port", "%"PRIu16,
ntohs(netdev_dev->remote_addr.sin_port));
netdev_tunnel_destroy,
netdev_tunnel_get_config,
netdev_tunnel_set_config,
+ NULL, /* get_tunnel_config */
netdev_tunnel_open,
netdev_tunnel_close,