开发者

How can I use sys_sendto() under kernel mode?

I'm writing a DDoS firewall by netfilter, I want to send a socket packet to another computer under kernel mode. But the compiler warned m开发者_StackOverflowe that the symbol "sys_sendto" was undefined. So how can I use these sys_socketcalls in my module? Thank you for your help.


Instead of calling the sys_sendto system call, you might be able to use the sock_sendmsg function, which is how sys_sendto is implemented.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜