Re: kernel network

2008-12-30 Thread Ferner Cilloniz
30 Dec 2008 15:36:07 -0600 > Subject: Re: kernel network > > I tried another approach. The code is below. However, > wireshark does not > pick up anything happening. I don't know what is going on. > > stati

Re: kernel network

2008-12-30 Thread Gerry Weaver
_ From: Ferner Cilloniz [mailto:ferne...@gmail.com] To: freebsd-net@freebsd.org Sent: Tue, 30 Dec 2008 15:36:07 -0600 Subject: Re: kernel network I tried another approach. The code is below. However, wireshark does not pick up anything happening. I don't know what is goi

Re: kernel network

2008-12-30 Thread Ferner Cilloniz
I tried another approach. The code is below. However, wireshark does not pick up anything happening. I don't know what is going on. static int my_udp_send(struct thread *td, void *syscall_args) { struct socket *sock = NULL; if( socreate(AF_INET, &sock, SOCK_DGRAM, 0, td->td_proc->p_ucred,

Re: kernel network

2008-12-30 Thread Ferner Cilloniz
I have been tackling this today. This is what i have so far: - static int my_udp_send(struct thread *td, void *syscall_args) { struct socket *sock = NULL; if( socreate(AF_INET, &sock, SOCK_DGRAM, 0, td->td_proc->p_ucr

Re: kernel network

2008-12-30 Thread Julian Elischer
Gerry Weaver wrote: _ From: Ferner Cilloniz [mailto:ferne...@gmail.com] To: freebsd-net@freebsd.org Sent: Tue, 30 Dec 2008 05:49:55 -0600 Subject: kernel network Guys, I do not think I could ever be more tired of this topic but I cannot seem to understand what to do. I have tried

Re: kernel network

2008-12-30 Thread Gerry Weaver
_ From: Ferner Cilloniz [mailto:ferne...@gmail.com] To: freebsd-net@freebsd.org Sent: Tue, 30 Dec 2008 05:49:55 -0600 Subject: kernel network Guys, I do not think I could ever be more tired of this topic but I cannot seem to understand what to do. I have tried more about a month now

Re: kernel network

2008-12-30 Thread Julian Elischer
Ferner Cilloniz wrote: Guys, I do not think I could ever be more tired of this topic but I cannot seem to understand what to do. I have tried more about a month now to send arbitrary UDP packets from a kernel module but cannot achieve it. I have looked at udp_send but found that building a socke

Re: kernel network

2008-12-30 Thread Robert Watson
On Tue, 30 Dec 2008, Max Laier wrote: On Tuesday 30 December 2008 12:49:55 Ferner Cilloniz wrote: I do not think I could ever be more tired of this topic but I cannot seem to understand what to do. I have tried more about a month now to send arbitrary UDP packets from a kernel module but cann

Re: kernel network

2008-12-30 Thread Max Laier
On Tuesday 30 December 2008 12:49:55 Ferner Cilloniz wrote: > Guys, > > I do not think I could ever be more tired of this topic but I cannot > seem to understand what to do. I have tried more about a month now to > send arbitrary UDP packets from a kernel module but cannot achieve it. I > have look