X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fd_tuntap.c;h=bf72a8187481e3d472566400ba36c37ca561830e;hb=8527f1df297910a6bd7c97d7d45648acb83fc045;hp=668a9c510d75fc70363bd54236199a4ef20869ad;hpb=064ce390a1a08f947f5fc9f21b1814c153950268;p=vsys-scripts.git diff --git a/fd_tuntap.c b/fd_tuntap.c index 668a9c5..bf72a81 100644 --- 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 */ - 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); @@ -129,7 +129,7 @@ int main(int argc, char *argv[]) /* 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; }