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
fix some warnings
[sliver-openvswitch.git]
/
planetlab
/
pltap-ovs
/
pltap-ovs.c
diff --git
a/planetlab/pltap-ovs/pltap-ovs.c
b/planetlab/pltap-ovs/pltap-ovs.c
index
55eb7ea
..
e1660b0
100644
(file)
--- a/
planetlab/pltap-ovs/pltap-ovs.c
+++ b/
planetlab/pltap-ovs/pltap-ovs.c
@@
-15,6
+15,8
@@
#define OVS_SOCK "/var/run/pl-ovs.control"
#define OVS_SOCK "/var/run/pl-ovs.control"
+void send_fd(int p, int fd, char* vif_name);
+
char *appname;
#define ERROR(msg) \
char *appname;
#define ERROR(msg) \
@@
-24,6
+26,7
@@
char *appname;
} while (0)
} while (0)
+static
int send_vif_fd(int sock_fd, int vif_fd, char *vif_name)
{
int retval;
int send_vif_fd(int sock_fd, int vif_fd, char *vif_name)
{
int retval;
@@
-105,12
+108,15
@@
int main(int argc, char* argv[])
char if_name[IFNAMSIZ];
int p[2]; // synchronization pipe
char dummy;
char if_name[IFNAMSIZ];
int p[2]; // synchronization pipe
char dummy;
+ int tun_fd;
+
+ (void) argc; // unused
if (pipe(p) < 0) {
ERROR("pipe");
}
if (pipe(p) < 0) {
ERROR("pipe");
}
-
int
tun_fd = tun_alloc(IFF_TAP, if_name);
+ tun_fd = tun_alloc(IFF_TAP, if_name);
appname = argv[0];
appname = argv[0];