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-next>] [day] [month] [year] [list]
Date:	Sun, 25 Nov 2007 16:36:15 +0200
From:	"Ian Brown" <ianbrn@...il.com>
To:	netdev@...r.kernel.org
Subject: DST_NOHASH flag and IPsec transformers routing tables - need some clarification

Hello, netdev,

I try, in vain, to understand what is DST_NOHASH for.
I looked for DST_NOHASH under the linux source tree (http://lxr.linux.no/source)
and found that it appears in 4 files:

1) in include/net/dst.h (just defined there, #define DST_NOHASH 8)

2)

in xfrm4_policy.c:
static int
__xfrm4_bundle_create()
{
  ...
  ...
  dst1->flags |= DST_NOHASH;
  ...
  ...
}

3) in net/core/dst.c:
struct dst_entry *dst_destroy(struct dst_entry * dst)
	{
	...
	...	
  int nohash = dst->flags & DST_NOHASH;
	...
	...	
}

4) in Linux/net/ipv6/xfrm6_policy.c


__xfrm6_bundle_create()
 {
  ...
  ...

 else {
                         dst_prev->child = dst1;
                         dst1->flags |= DST_NOHASH;
...
...


}

We see here a definition and 3 places with assignment ; So I don't
understand what is the DST_NOHASH flag for ?
It seems to me that it has to do with IPSec transformers routing tables entires
but again, it seems that this flag is not accessed
(except for assigning this flag).

I would appreciate of anybody will say some words about this flag and its
usage (maybe it is redundant and should be removed?)

Regards,
Ian
-
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