X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fnetdev-provider.h;h=54b3820d55c88c1f2310da9541b5196921963bb1;hb=f431bf7d78f3212d32bb3d122f783c5c796a1576;hp=910ff589552ddd33e3278030ec59b371af06d785;hpb=9b9f4d6007e6383e36e4dc52cdd44c3637ac81de;p=sliver-openvswitch.git diff --git a/lib/netdev-provider.h b/lib/netdev-provider.h index 910ff5895..54b3820d5 100644 --- a/lib/netdev-provider.h +++ b/lib/netdev-provider.h @@ -139,6 +139,13 @@ struct netdev_class { * pointer. */ int (*set_config)(struct netdev_dev *netdev_dev, const struct smap *args); + /* Returns the tunnel configuration of 'netdev_dev'. If 'netdev_dev' is + * not a tunnel, returns null. + * + * If this function would always return null, it may be null instead. */ + const struct netdev_tunnel_config * + (*get_tunnel_config)(const struct netdev_dev *netdev_dev); + /* Attempts to open a network device. On success, sets 'netdevp' * to the new network device. */ int (*open)(struct netdev_dev *netdev_dev, struct netdev **netdevp);