Re: non-random IP IDs

From: Kris Kennaway (kris@obsecurity.org)
Date: 04/16/01


Date: Mon, 16 Apr 2001 13:08:14 -0700
From: Kris Kennaway <kris@obsecurity.org>
To: Darren Reed <avalon@coombs.anu.edu.au>


On Tue, Apr 17, 2001 at 06:02:42AM +1000, Darren Reed wrote:

> > > You should optimize it for mod being 2^n-1 (or make that a requirement).
> >
> > I'm afraid I don't have time to look at this right now. Perhaps it
> > can be revisited (the sysctl defaults to off for now), or Niels Provos
> > may be interested in the idea.
>
> Basically it means '% mod' -> '& mod' and call it with a 2^n-1 number.

Oh, okay.

> > Well, it still has wrapping properties like a network-order counter,
> > i.e. the algorithm attempts to order the output so that it doesn't
> > wrap within the segment lifetime. That would be lost without using
> > HTONS.
>
> You're confusing properties of the local number and some opaque bits in
> a packet being sent over the 'net.

Quite likely.

Kris



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message




Relevant Pages

  • Re: sendfile(2) SF_NOPUSH flag proposal
    ... :Bill Fenner wrote: ... :If the file is larger than `sysctl net.inet.tcp.sendspace`, ... unconditionally hold off a flush. ... This section does all tests related to sending a packet and as you can ...
    (freebsd-arch)
  • Re: 2.6.25.4-rt2
    ... On Tue, 20 May 2008, Kasper Sandberg wrote: ... # sysctl kernel.sched_nr_migrate = 4 ... I am afraid i do not have this proc entry. ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • Re: Multicast Packet Delay
    ... Thanks Alexander for your idea. ... I'm afraid that if I drop my ... packet size down too far, it would kill the performance, and in this ...
    (microsoft.public.win32.programmer.networks)
  • Re: Fast IPSEC issue
    ... This means a packet was fed into if_gre while if_gre was also active. ... In the case of FAST_IPSEC this may be normal if you have packets moving ... between tunnels. ... are permitted by changing the sysctl: ...
    (freebsd-stable)

Quantcast