FreeBSD kernel module and sending udp packets
Julian Elischer
julian at elischer.org
Mon Dec 8 15:22:56 PST 2008
Ferner Cilloniz wrote:
> Yes I am writing my own loadable kernel module such that I can send a
> UDP packet when i tell it to by issuing a homemade system call.
>
> I have been looking at /usr/src/sys/netgraph/ng_sample.c
>
> Am i supposed to implement the functions in that file? I am a little
> lost. I only want to send a UDP packet and in that file I see functions
> concerning receiving.
>
> Is there any other way?
>
> Thanks Julian and everyone else.
>
If you won't receive, then just don't implement it :-)
on the other hand if you are really only doing packet level output
then maybe you would look at ng_source.c
which simply acts as a source of packets
you need to give a bit more details to what you want to do..\
More information about the freebsd-net
mailing list