git://git.onelab.eu
/
vsys-scripts.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use deployed version of the fd_tuntap script, rather than the local test version.
[vsys-scripts.git]
/
fd_tuntap.c
diff --git
a/fd_tuntap.c
b/fd_tuntap.c
index
668a9c5
..
bf72a81
100644
(file)
--- a/
fd_tuntap.c
+++ b/
fd_tuntap.c
@@
-45,7
+45,7
@@
int send_vif_fd(int sock_fd, int vif_fd, char *vif_name)
msg.msg_flags = 0;
/* Send the interface name as the iov */
msg.msg_flags = 0;
/* Send the interface name as the iov */
- vec.iov_base =
&
vif_name;
+ vec.iov_base = vif_name;
vec.iov_len = strlen(vif_name)+1;
while ((retval = sendmsg(sock_fd, &msg, 0)) == -1 && errno == EINTR);
vec.iov_len = strlen(vif_name)+1;
while ((retval = sendmsg(sock_fd, &msg, 0)) == -1 && errno == EINTR);
@@
-129,7
+129,7
@@
int main(int argc, char *argv[])
/* Send tap_fd to slice */
/* Send tap_fd to slice */
-
//
send_vif_fd(control_channel_fd, tap_fd, if_name);
+ send_vif_fd(control_channel_fd, tap_fd, if_name);
return 0;
}
return 0;
}