Creating socket(9) functions in FreeBSD 8 kernel

2010-09-11 Thread Sadish Kulasekere
Hi, I've been trying to write a program to send a message to a specific host with a specific MAC address. I used the socket(9) kernel interface socket functions, but the kernel keeps crashing when I try to load it. I have posted the code below. Can someone please tell me what is wrong with this c

Sending packets at Kernel level

2010-08-28 Thread Sadish Kulasekere
Hi, I need to know how to send packet from the kernel level. Can someone please point me to any documentation? Cheers, Sadish. ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail t

FreeBSD Kernel Timers

2010-08-25 Thread Sadish Kulasekere
Hi, Does anyone know how to create a timer in the kernel? I want to execute a function after 1s and 3s and I want to create multiple instances of the timer. The requirement here is to invoke a function after receiving a SYN packet and then after 10s remove the perticular timer corresponding to tha

Wake-on-LAN at kernel level

2010-05-05 Thread Sadish Kulasekere
Hi, Does anyone know about sending packets from kernel level? In a project I'm working on, it is required to generate and send Wake-on-LAN packets automatically from kernel level. Any ideas? Regards, Dilshan ___ freebsd-net@freebsd.org mailing list http