Sending UDP packet in Linux Kernel

前端 未结 4 1487
礼貌的吻别
礼貌的吻别 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:27

    Run your code when you're in a text mode console (i.e. press Ctrl+Alt+F1 to go to the text console). This way a kernel panic will print out the stack trace and any extra information about what went wrong.

    If that doesn't help you, update your question with the stack trace.

提交回复
热议问题