Intercepting system calls
Hello.
Maybe this question is often, but all post i found is too old and some things is wrong... So, i need to intercept some system calls (socket calls) and make my own handler. Is there legal, correct and clean way to do it, without hacking system call table ? Thank.
Best regards,
Oleg.
Quoted 8 lines · Oleg Kutkov
Hello.
Maybe this question is often, but all post i found is too old and some things is wrong...
So, i need to intercept some system calls (socket calls) and make my own handler.
Is there legal, correct and clean way to do it, without hacking system call table ?
Thank.
Why do you need to do this? There may be a better way than overriding syscalls.
A message that is not in the archive (sent off-list or not yet received): [email protected]
2010/2/5 Oleg Kutkov <[email protected]>:
Quoted 3 lines
Hello. l need to capture and process outgoing and incoming packets from all network interfaces, include virtual interfaces. So I try to overload socket and
if_rx. I'm not found another way to do that.
Why not just use libpcap?