Ethernet Shield ENC28J60

I put the code you've posted on my arduino board and connected it to an ENC28J60 breakout board. It works.

You must make sure that the pins defined in enc28j60.c are correct.

#define ENC28J60_CONTROL_CS  10
#define SPI_MOSI             11
#define SPI_MISO             12
#define SPI_SCK              13