git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
45febc1
)
netdev-tunnel's are now always listening
author
Giuseppe Lettieri
<g.lettieri@iet.unipi.it>
Thu, 21 Jun 2012 10:16:19 +0000
(12:16 +0200)
committer
Giuseppe Lettieri
<g.lettieri@iet.unipi.it>
Thu, 21 Jun 2012 10:16:19 +0000
(12:16 +0200)
lib/netdev-tunnel.c
patch
|
blob
|
history
diff --git
a/lib/netdev-tunnel.c
b/lib/netdev-tunnel.c
index
ffefde4
..
d9c54c3
100644
(file)
--- a/
lib/netdev-tunnel.c
+++ b/
lib/netdev-tunnel.c
@@
-55,7
+55,6
@@
struct netdev_dev_tunnel {
struct netdev_tunnel {
struct netdev netdev;
struct netdev_tunnel {
struct netdev netdev;
- bool listening;
};
static struct shash tunnel_netdev_devs = SHASH_INITIALIZER(&tunnel_netdev_devs);
};
static struct shash tunnel_netdev_devs = SHASH_INITIALIZER(&tunnel_netdev_devs);
@@
-153,7
+152,6
@@
netdev_tunnel_open(struct netdev_dev *netdev_dev_, struct netdev **netdevp)
netdev = xmalloc(sizeof *netdev);
netdev_init(&netdev->netdev, netdev_dev_);
netdev = xmalloc(sizeof *netdev);
netdev_init(&netdev->netdev, netdev_dev_);
- netdev->listening = false;
*netdevp = &netdev->netdev;
return 0;
*netdevp = &netdev->netdev;
return 0;
@@
-228,9
+226,6
@@
netdev_tunnel_set_config(struct netdev_dev *dev_, const struct shash *args)
static int
netdev_tunnel_listen(struct netdev *netdev_)
{
static int
netdev_tunnel_listen(struct netdev *netdev_)
{
- struct netdev_tunnel *netdev = netdev_tunnel_cast(netdev_);
- VLOG_DBG("tunnel_listen(%s)", netdev_get_name(netdev_));
- netdev->listening = true;
return 0;
}
return 0;
}