On 06/12, Paulo Alcantara wrote:
Shyam Prasad N <nspmangalore@xxxxxxxxx> writes:I had to use kernel_getsockname to get socket source details, not kernel_getpeername.Why can't you use @server->srcaddr directly?
That's only filled if explicitly passed through srcaddr= mount option (to bind it later in bind_socket()). Otherwise, it stays zeroed through @server's lifetime.