开发者

How can I use sys_sendto() under kernel mode?

开发者 https://www.devze.com 2023-03-25 11:27 出处:网络
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 undef

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

精彩评论

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