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  linux-cve-announce  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]
Message-ID: <d0383f90711280555s6fa62802w92bcd026f78bb5ac@mail.gmail.com>
Date:	Wed, 28 Nov 2007 15:55:19 +0200
From:	"Ian Brown" <ianbrn@...il.com>
To:	"Herbert Xu" <herbert@...dor.apana.org.au>
Cc:	netdev@...r.kernel.org
Subject: Re: DST_NOHASH flag and IPsec transformers routing tables - need some clarification

Thanks!
I had though about this in the last two days and a half, and there is
still something which I cannot
understand and it bothers me (while trying vainlesly to sleep).

I am talking about IPV4:

  - Can anyone explain in 2-3 sentences what is the reason that there
is no need for caching
dst_entries which are created by IPsec (using xfrm API) ?
I can understand , in case there is a linked list of such dst_enties,
that there is no need to cache them all because
you can access them by traversing the list with the child pointer of
dst_entry. But what about the head of the list,  which is the first
dst_entry (which is created by IPsec and its input/output methods are
in fact IPsec transformers)? is there
no need to cache this entry ? because as I understand it , next
sk_buff with the same dest IP will have to get this same
dst_entry (the head of the list). So why not cache this head of the
list of dst_entries ?

Regards,
Ian


On Nov 27, 2007 3:57 AM, Herbert Xu <herbert@...dor.apana.org.au> wrote:
> Ian Brown <ianbrn@...il.com> wrote:
> >
> > NOHASH hints that we do not keep the
> > an entry in a hash. I doubt that such dst_entries , which are created with
> > IPsec and so has the DST_NOHASH flag set, are not kept in the routing cache?
>
> Exactly, they're not in the routing cache (for IPv4 anyway,
> there is no cache at all for IPv6).
>
>
> Cheers,
> --
> Visit Openswan at http://www.openswan.org/
> Email: Herbert Xu ~{PmV>HI~} <herbert@...dor.apana.org.au>
> Home Page: http://gondor.apana.org.au/~herbert/
> PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
>
-
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ