Go Down

Topic: EtherCard library: adding "promiscuous" mode (Read 1 time) previous topic - next topic

flavigny

Hello, me again,
Reading http://www.apexelectrix.com/PDFs/ENC28J60.pdf , I discover that Enc28J60 is able to run in "promisuous" mode (reporting all packets seen, even not matching mac address).
So I add a function to the library:

in file "enc28j60h":
static void enablePromiscuous();

in file  "enc28j60.cpp:
void ENC28J60::enablePromiscuous () {
    writeRegByte(ERXFCON, 0);
}

By the way, my gadget "manInTheMidle"  is running fine without needing to configure the mac-adresses.

Regards
PO.

Go Up