X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fnetdev-provider.h;h=71f9599edc73ea94c40551f6ca9f973e0a2f26e7;hb=6f61c75b17a9906f88aae4b4a8fbdc12070cf34f;hp=64d227e8dcbfe06f772b4efa475a8e3076c28363;hpb=58fda1dab104041fc693032475ec4662c1a52849;p=openvswitch diff --git a/lib/netdev-provider.h b/lib/netdev-provider.h index 64d227e8..71f9599e 100644 --- a/lib/netdev-provider.h +++ b/lib/netdev-provider.h @@ -32,6 +32,7 @@ struct netdev_obj { const struct netdev_class *class; int ref_cnt; + char *name; bool created; /* Was netdev_create() called? */ }; @@ -42,6 +43,8 @@ static inline void netdev_obj_assert_class(const struct netdev_obj *netdev_obj, { assert(netdev_obj->class == class); } +const char *netdev_obj_get_type(const struct netdev_obj *netdev_obj); +const char *netdev_obj_get_name(const struct netdev_obj *netdev_obj); /* A network device (e.g. an Ethernet device). * @@ -349,5 +352,6 @@ struct netdev_class { extern const struct netdev_class netdev_linux_class; extern const struct netdev_class netdev_tap_class; +extern const struct netdev_class netdev_gre_class; #endif /* netdev.h */