Source ip replaced by docker network gateway ip when we receive udp packets

We have a bridge network with multiple containers that need to interact with each other.

On receiving a udp packet from a device (SNMP trap to be specific), source IP address is replaced by docker gateway Ip.

Is there any setting in the docker network that forces docker to preserve the source IP address?

Any pointers or help is appreciated.

Thanks,
Sravanthi