<div dir="ltr"><div><div>Hi Raz,<br><br></div>Is it possible with your software to fake networks with large number of slaves? The way I understand, you should have `ethX` interfaces for your slaves to hook on to. Perhaps you could try <a href="mailto:babbittner@aol.com">babbittner@aol.com</a>'s idea of named pipes and if any of the given parameters (to the user-space one) couldn't be opened, you automatically hook on to a named pipe to transfer the data?<br>
<br></div>This would be very useful to test software targeted to work with large number of slaves, without actually having to buy that many slaves (or network cards!)<br><br>Shahbaz<br></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Mon, Nov 26, 2012 at 8:39 AM, Raz Ben Yehuda <span dir="ltr"><<a href="mailto:rbenyehuda@manz.com" target="_blank">rbenyehuda@manz.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Mon, 2012-11-26 at 02:35 +0100, <a href="mailto:babbittner@aol.com">babbittner@aol.com</a> wrote:<br>
> I'm attempting to run multiple virtual slaves on one host. I setup a<br>
> TUN/TAP interface via tunctl named tap0. Then I issued the commands:<br>
> ./ecslave tap0 &<br>
> ./ecslave eth0 tap0 &<br>
> but I get a message the tap0 interface is LINK DOWN.<br>
> Possibly I'm misusing the TUN/TAP virtual interfaces?<br>
</div>user space ecslave checks that /sys/class/net/ethX/operstate is "up".<br>
Do you have this path for tap0 ?<br>
<div class="im"><br>
> Alternatively I'd like to use something like named pipes, but I<br>
> believe that would involve modifying the code. If I were to modify<br>
> the code<br>
</div>This is what open source is all about. i will be happy to adopt your<br>
code.<br>
<div class="HOEnZb"><div class="h5">> I think I'd add an option to specify the number of slaves to<br>
> virtualize and make an array of slaves internally.<br>
><br>
> Any other ideas?<br>
><br>
> Thanks,<br>
> Bruno<br>
<br>
<br>
<br>
<br>
><br>
><br>
><br>
> -----Original Message-----<br>
> From: Ben Yehuda, Raz <<a href="mailto:RBenYehuda@manz.com">RBenYehuda@manz.com</a>><br>
> To: etherlab-users <<a href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a>><br>
> Sent: Wed, Nov 21, 2012 2:25 pm<br>
> Subject: [etherlab-users] Open source virtual Linux Ethercat Slave<br>
><br>
> Hello etherlab users<br>
><br>
> I wrote an open source linux virtual ethercat slave.<br>
><br>
> $ git clone git://<a href="http://git.code.sf.net/p/ecslave/code" target="_blank">git.code.sf.net/p/ecslave/code</a> ecslave<br>
><br>
> Ecslave is "tailored" to etherlab and it provides a virtual<br>
> and cheap solution to set up and debug etherlab master application.<br>
><br>
> At the moment ec_slave is user space application, but i am going to add a<br>
> version to kernel mode in the near future.<br>
><br>
> wiki :<br>
> <a href="https://sourceforge.net/p/ecslave/wiki/Howto/" target="_blank">https://sourceforge.net/p/ecslave/wiki/Howto/</a><br>
><br>
> I will be happy for debug and input.<br>
><br>
> raz<br>
><br>
> _______________________________________________<br>
> etherlab-users mailing list<br>
> <a href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a><br>
> <a href="http://lists.etherlab.org/mailman/listinfo/etherlab-users" target="_blank">http://lists.etherlab.org/mailman/listinfo/etherlab-users</a><br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
<a href="https://sites.google.com/site/ironspeedlinux/" target="_blank">https://sites.google.com/site/ironspeedlinux/</a><br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
etherlab-users mailing list<br>
<a href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a><br>
<a href="http://lists.etherlab.org/mailman/listinfo/etherlab-users" target="_blank">http://lists.etherlab.org/mailman/listinfo/etherlab-users</a><br>
</div></div></blockquote></div><br></div>