netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* how to use secure_tcp_sequence_number
@ 2010-09-29 16:46 Nicola Padovano
  2010-09-30 17:01 ` Nicola Padovano
  0 siblings, 1 reply; 3+ messages in thread
From: Nicola Padovano @ 2010-09-29 16:46 UTC (permalink / raw)
  To: netfilter-devel, netdev

Hi all. How can I export the secure_tcp_sequence_number to use it in my modules?

-- 
Nicola Padovano
e-mail: nicola.padovano@gmail.com
web: http://npadovano.altervista.org

"My only ambition is not be anything at all; it seems the most
sensible thing" (C. Bukowski)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how to use secure_tcp_sequence_number
  2010-09-29 16:46 how to use secure_tcp_sequence_number Nicola Padovano
@ 2010-09-30 17:01 ` Nicola Padovano
  2010-09-30 18:21   ` Eric Dumazet
  0 siblings, 1 reply; 3+ messages in thread
From: Nicola Padovano @ 2010-09-30 17:01 UTC (permalink / raw)
  To: netfilter-devel, netdev

If i attempt to insert the module that uses the
secure_tcp_sequence_number i get this error message:

from insmod:  -1 Invalid module format
and from dmesg: version magic '2.6.35.4 SMP mod_unload 586 ' should be
'2.6.35.4 SMP mod_unload modversions 586 '

what's the matter?

On Wed, Sep 29, 2010 at 6:46 PM, Nicola Padovano
<nicola.padovano@gmail.com> wrote:
> Hi all. How can I export the secure_tcp_sequence_number to use it in my modules?
>
> --
> Nicola Padovano
> e-mail: nicola.padovano@gmail.com
> web: http://npadovano.altervista.org
>
> "My only ambition is not be anything at all; it seems the most
> sensible thing" (C. Bukowski)
>



-- 
Nicola Padovano
e-mail: nicola.padovano@gmail.com
web: http://npadovano.altervista.org

"My only ambition is not be anything at all; it seems the most
sensible thing" (C. Bukowski)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how to use secure_tcp_sequence_number
  2010-09-30 17:01 ` Nicola Padovano
@ 2010-09-30 18:21   ` Eric Dumazet
  0 siblings, 0 replies; 3+ messages in thread
From: Eric Dumazet @ 2010-09-30 18:21 UTC (permalink / raw)
  To: Nicola Padovano; +Cc: netfilter-devel, netdev

Le jeudi 30 septembre 2010 à 19:01 +0200, Nicola Padovano a écrit :
> If i attempt to insert the module that uses the
> secure_tcp_sequence_number i get this error message:
> 
> from insmod:  -1 Invalid module format
> and from dmesg: version magic '2.6.35.4 SMP mod_unload 586 ' should be
> '2.6.35.4 SMP mod_unload modversions 586 '
> 
> what's the matter?

diff --git a/drivers/char/random.c b/drivers/char/random.c
index caef35a..f5ef7ba 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -1550,6 +1550,7 @@ __u32 secure_tcp_sequence_number(__be32 saddr, __be32 daddr,
 
 	return seq;
 }
+EXPORT_SYMBOL(secure_tcp_sequence_number);
 
 /* Generate secure starting point for ephemeral IPV4 transport port search */
 u32 secure_ipv4_port_ephemeral(__be32 saddr, __be32 daddr, __be16 dport)


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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-09-30 18:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-29 16:46 how to use secure_tcp_sequence_number Nicola Padovano
2010-09-30 17:01 ` Nicola Padovano
2010-09-30 18:21   ` Eric Dumazet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).