}
static struct netdev_dev_bsd *
netdev_dev_bsd_cast(const struct netdev_dev *netdev_dev)
{
ovs_assert(is_netdev_bsd_class(netdev_dev_get_class(netdev_dev)));
}
static struct netdev_dev_bsd *
netdev_dev_bsd_cast(const struct netdev_dev *netdev_dev)
{
ovs_assert(is_netdev_bsd_class(netdev_dev_get_class(netdev_dev)));
- netdev_dev_init(&netdev_dev->netdev_dev, name, class);
- *netdev_devp = &netdev_dev->netdev_dev;
+ netdev_dev_init(&netdev_dev->up, name, class);
+ *netdev_devp = &netdev_dev->up;
/* Allocate network device. */
netdev = xcalloc(1, sizeof *netdev);
/* Allocate network device. */
netdev = xcalloc(1, sizeof *netdev);