[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

connecting from a virtual interface



DKnet uses a vif for irc.dknet.dk (IRCnet) - it seems to me that upon
initiating a connection it doesn't bind() to the vif it has been assigned 
prior to calling connect().
  This gives the TCP stream the address of the ethernet interface, which
is very unfortunate.

Any hints or fixes? :-)

-- Robert Martin-Legène (RM59), Network Manager (AS2109), Null@xxxxxxxxxxxx

   main(){int a[2],b[2];pipe(a);pipe(b);if(fork()){dup2(a[0],0);dup2(b[1],1)
   ;}else{dup2(b[0],0);dup2(a[1],1);write(1,"R",1);}execlp("cat","cat",0);}