Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Dec 2008 15:22:56 -0800
From:      Julian Elischer <julian@elischer.org>
To:        Ferner Cilloniz <fernercc@gmail.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: FreeBSD kernel module and sending udp packets
Message-ID:  <493DAC50.5060501@elischer.org>
In-Reply-To: <1228753304.4948.6.camel@mobiliare.Belkin>
References:  <1228699701.4940.2.camel@mobiliare.Belkin>	 <493CD5AB.8030303@elischer.org> <1228702422.4940.7.camel@mobiliare.Belkin>	 <493CD98D.7000909@elischer.org> <1228740437.4956.1.camel@mobiliare>	 <493D6F6E.4020900@elischer.org> <1228753304.4948.6.camel@mobiliare.Belkin>

next in thread | previous in thread | raw e-mail | index | archive | help
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..\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?493DAC50.5060501>