recvmsg is returning buffer filled with zeros
by chakka.lokesh from LinuxQuestions.org on (#51Q03)
I am using write / recvmsg for writing / reading packets from the socket.
Buffer I am passing is much bigger than the size of packet I am writing / receiving.
To my surprise, I am seeing recvmsg is returning exact packet size but entire buffer is filled with zeros...!!!
code is here
https://www.linuxquestions.org/quest...4/#post6105820


Buffer I am passing is much bigger than the size of packet I am writing / receiving.
To my surprise, I am seeing recvmsg is returning exact packet size but entire buffer is filled with zeros...!!!
code is here
https://www.linuxquestions.org/quest...4/#post6105820