EtherCard_bis: a library for adding a second Enc28J60

Hello,
I hope I have finished the work:
The EtherCard library contains a lot of static elements, and I am not fluent with C++.
So, I draft a rough solution by dupplicating ALL files appending “_bis” to names.
Then I renamed each conflicting item (always appending “_bis”).
I attach my sandbox, with dummes examples.

about harware: AntiGuide:ArduinoEnc28J60StereoMegaTwoWired

Now, I will use it, my first application will be “man in the middle” to watch ethenet traffic between two “black-box”:
http://antiguide.free.fr/wiki/wakka.php?wiki=ArduinoEnc28J60StereoManInTheMiddleTcpDump
(I also added a function sendEthernet, to read soon in another post.)

Regards.
PO.

EtherCard_bis.zip (59.1 KB)