Ethernet2 change SPI CS pin

I am trying to use the Ethernet2 library with UDP and I want to change the SPI CS pin. I am using LadyAda's modification that supposedly allows you to change that pin (it defaults to 10 and I want it to be 53, which is the default CS pin on the ATmega2560), but I cannot for the life of me figure out how to actually make that change happen.

The code I'm using is here: Ethernet2/Ethernet2.h at master · adafruit/Ethernet2 · GitHub

#include <SPI.h>         // needed for Arduino versions later than 0018
#include <Ethernet2.h>
#include <EthernetUdp2.h>         // UDP library from: 12/30/2008

// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network:
byte mac[] = {
  0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xEF
IPAddress ip(192, 122, 1, 178);
IPAddress re_ip(192,122,1,177);
unsigned int re_port = 8887;
unsigned int localPort = 8888;      // local port to listen on

// buffers for receiving and sending data
char packetBuffer[UDP_TX_PACKET_MAX_SIZE]; //buffer to hold incoming packet,
//char  ReplyBuffer[] = "acknowledged";       // a string to send back
uint8_t ReplyBuffer = 0;
// An EthernetUDP instance to let us send and receive packets over UDP
char rx_byte = 0;
EthernetUDP Udp;

void setup() {
  // start the Ethernet and UDP:
  Ethernet.begin(mac, ip);

Looks like your code does change the CS pin. Do you have the ethernet IC CS connected to D53?

I wasn't getting anything when I tried it so I figured something was wrong with how I did it. My board has been having issues with voltages lately; I thought I had fixed them but if my code is right then they must have popped up again. Thanks!

The code you posted doesn't do anything except assign the network settings. You should be able to ping it, but that is all it will do.