X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fnetdev-provider.h;h=b705f899854c93e2977ec310d3cfb2d058eec440;hb=7aaeab4df24b7e9460705b1dad1010eef0354c50;hp=a9de2adbc51401b28dcb31fa87aa3f075dc7d8ae;hpb=b5d57fc87925cb3c029de19d0a94de5ca07ae28e;p=sliver-openvswitch.git diff --git a/lib/netdev-provider.h b/lib/netdev-provider.h index a9de2adbc..b705f8998 100644 --- a/lib/netdev-provider.h +++ b/lib/netdev-provider.h @@ -50,12 +50,6 @@ struct netdev *netdev_from_name(const char *name); void netdev_get_devices(const struct netdev_class *, struct shash *device_list); -static inline void netdev_assert_class(const struct netdev *netdev, - const struct netdev_class *class_) -{ - ovs_assert(netdev->netdev_class == class_); -} - /* Network device class structure, to be defined by each implementation of a * network device. * @@ -470,7 +464,7 @@ struct netdev_class { * anyhow. */ int (*add_router)(struct netdev *netdev, struct in_addr router); - /* Looks up the next hop for 'host'. If succesful, stores the next hop + /* Looks up the next hop for 'host'. If successful, stores the next hop * gateway's address (0 if 'host' is on a directly connected network) in * '*next_hop' and a copy of the name of the device to reach 'host' in * '*netdev_name', and returns 0. The caller is responsible for freeing @@ -575,10 +569,13 @@ const struct netdev_class *netdev_lookup_provider(const char *type); extern const struct netdev_class netdev_linux_class; extern const struct netdev_class netdev_internal_class; extern const struct netdev_class netdev_tap_class; -#ifdef __FreeBSD__ +#if defined(__FreeBSD__) || defined(__NetBSD__) extern const struct netdev_class netdev_bsd_class; #endif +extern const struct netdev_class netdev_tunnel_class; +extern const struct netdev_class netdev_pltap_class; + #ifdef __cplusplus } #endif