2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-25 15:07:05 +00:00

netdev: Implement an abstract interface to network devices.

This new abstraction layer allows multiple implementations of network
devices in a single running process.  This will be useful, for example, to
support network devices that are simulated entirely in the running process
or that communicate with other processes over Unix domain sockets, etc.

The reimplemented tap device support in this commit has not been tested.
This commit is contained in:
Ben Pfaff
2009-07-30 16:04:45 -07:00
parent b1bf7d43b3
commit 8b61709d5e
11 changed files with 2306 additions and 1330 deletions

View File

@@ -39,7 +39,6 @@ typedef void linux_netdev_notify_func(const struct linux_netdev_change *,
struct linux_netdev_notifier {
struct list node;
int error;
linux_netdev_notify_func *cb;
void *aux;
};
@@ -47,8 +46,6 @@ struct linux_netdev_notifier {
int linux_netdev_notifier_register(struct linux_netdev_notifier *,
linux_netdev_notify_func *, void *aux);
void linux_netdev_notifier_unregister(struct linux_netdev_notifier *);
int linux_netdev_notifier_get_error(struct linux_netdev_notifier *);
int linux_netdev_notifier_peek_error(const struct linux_netdev_notifier *);
void linux_netdev_notifier_run(void);
void linux_netdev_notifier_wait(void);