Get struct socket*, struct sock * from socket descriptor in a C program on Linux -


i'm working on c program on linux (unprivileged).

is possible reference struct socket or struct sock socket descriptor?

thank you.

if you're working in user mode (eg. not kernel mode), cannot directly manipulate kernel structures (including struct sock). if need access these kernel structures, need write code running in kernel mode (likely in kernel module).


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -