lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 21 May 2007 09:50:16 -0400
From:	Neil Horman <nhorman@...driver.com>
To:	Anton <Anton.Uzunov@...o.defence.gov.au>
Cc:	netdev@...r.kernel.org
Subject: Re: Sending ipv6 packets from a kernel module

On Mon, May 21, 2007 at 02:04:33PM +0930, Anton wrote:
> Hi all,
> 
> Please excuse me if the following question has already been asked on the 
> mailing list, I am a little new to this.
> 
> I am trying to send IPv6 packets from a kernel module. As far as I 
> understand, I would have to use the ip6_output() function, and this 
> function is certainly present in the net/ipv6/ip6_output.c file (on my
> 2.6.18 kernel). Unfortunately, the function is not exported from the
> IPv6 module and so my kernel module is unable to use it. Has anyone 
> encountered such a problem before, and if not, does anyone know what is 
> required for me to push a sk_buff into the IP stack for transmission 
> (from a kernel module)?
> Any ideas would be appreciated!
> 
> Regards,
> Anton
> 
No, you'll probably want to use something like kernel_sendmsg to send what you
want, passing in a socket created with something like sock_create_kern.

Regards
Neil

-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists