I am running a container application using the default bridge network.
I want to receive all the UDP packets sent to a particular well known port (for all destination ip address) in the container application and respond to this UDP packets with a SRC address that is configured in the container application. I am trying to use the IP_PKTINFO in the cmsg to send the src address in the UDP sockets similar to linux. In my case the sendMsg is returning error with Network Not available ?
Has any one successfully used the cmsg options on the docker container application ?
The same code works fine if I use the HOST network stack. i…e I use the -network host option in the docker run command.
Any tips to debug the issue is greatly appreciated.
Thanks in advance,