Sending UDP packet in Linux Kernel

前端 未结 4 1474
礼貌的吻别
礼貌的吻别 2020-12-21 22:50

For a project, I\'m trying to send UDP packets from Linux kernel-space. I\'m currently \'hard-coding\' my code into the kernel (which I appreciate isn\'t the best/neatest wa

4条回答
  •  情歌与酒
    2020-12-21 23:40

    I think you should try to put all variables outside mymethod() function and make them static. Remember, that the size of kernel stack is limited do 8KiB, so to much of/too big local variables may cause stack overflow and system hangup.

提交回复
热议问题