git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added lookup count to ofp_table_stats.
[sliver-openvswitch.git]
/
lib
/
vconn-unix.c
diff --git
a/lib/vconn-unix.c
b/lib/vconn-unix.c
index
1dcba26
..
9b08b10
100644
(file)
--- a/
lib/vconn-unix.c
+++ b/
lib/vconn-unix.c
@@
-43,7
+43,6
@@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include "ofp-print.h"
#include "ofpbuf.h"
#include "openflow.h"
#include "packets.h"
#include "ofpbuf.h"
#include "openflow.h"
#include "packets.h"
@@
-86,7
+85,6
@@
struct vconn_class unix_vconn_class = {
unix_open, /* open */
NULL, /* close */
NULL, /* connect */
unix_open, /* open */
NULL, /* close */
NULL, /* connect */
- NULL, /* accept */
NULL, /* recv */
NULL, /* send */
NULL, /* wait */
NULL, /* recv */
NULL, /* send */
NULL, /* wait */
@@
-98,7
+96,7
@@
static int punix_accept(int fd, const struct sockaddr *sa, size_t sa_len,
struct vconn **vconnp);
static int
struct vconn **vconnp);
static int
-punix_open(const char *name, char *suffix, struct
vconn **
vconnp)
+punix_open(const char *name, char *suffix, struct
pvconn **p
vconnp)
{
int fd;
{
int fd;
@@
-108,7
+106,7
@@
punix_open(const char *name, char *suffix, struct vconn **vconnp)
return errno;
}
return errno;
}
- return new_pstream_
vconn("punix", fd, punix_accept,
vconnp);
+ return new_pstream_
pvconn("punix", fd, punix_accept, p
vconnp);
}
static int
}
static int
@@
-128,14
+126,8
@@
punix_accept(int fd, const struct sockaddr *sa, size_t sa_len,
return new_stream_vconn(name, fd, 0, 0, vconnp);
}
return new_stream_vconn(name, fd, 0, 0, vconnp);
}
-struct vconn_class punix_vconn_class = {
- "punix", /* name */
- punix_open, /* open */
- NULL, /* close */
- NULL, /* connect */
- NULL, /* accept */
- NULL, /* recv */
- NULL, /* send */
- NULL, /* wait */
+struct pvconn_class punix_pvconn_class = {
+ "punix",
+ punix_open,
};
};