Skip to content

Send udp packet with helloworld payload using sk_buff in the Linux kernel

Notifications You must be signed in to change notification settings

dmytroshytyi-6WIND/KERNEL-sk_buff-helloWorld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

About this kernel module

Result of the working LKM is presented on the next screenshot (produced by WireShark).

alt text

Description

In this repo you may find a small demo of the Linux Kernel Module (LKM) develloped for kernel 4.4.0-116-generic. It is sending udp packet with "Hello World" payload.

Use

make

and

make clean

to compile and clean the project in the cli of current directory.

To import/remove the module, type in the cli:

insmod lkm.ko

rmmod lkm.ko

When imported, the module will send 1 udp packet with helloworld payload broadcasting on the link layer and using ipv4 192.168.0.1(2) addresses.

LKM uses sk_buff in the Linux kernel

About

Send udp packet with helloworld payload using sk_buff in the Linux kernel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published