CAN Protocol-Device Mode

I am using a software for CAN communication between a Gateway and a controller where a parameter named "Device Mode" must be set as either "Sending" or "Receiving". In the software, a CAN channel is set up where the Gateway is defined as a controller and the other controller is defined as a Device under the CAN protocol.
When sending data from Gateway to the controller, the device mode should be "Receiving". Correct?
But, in the existing program, it is "Sending"!
Which one is correct?