+netdev_tunnel_rx_open(struct netdev *netdev_, struct netdev_rx **rxp)
+{
+ struct netdev_dev_tunnel *netdev_dev =
+ netdev_dev_tunnel_cast(netdev_get_dev(netdev_));
+ struct netdev_rx_tunnel *rx;
+ rx = xmalloc(sizeof *rx);
+ netdev_rx_init(&rx->up, netdev_get_dev(netdev_), &netdev_rx_tunnel_class);
+ rx->fd = netdev_dev->sockfd;
+ *rxp = &rx->up;