kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Would like know when the tcp sequence no is rollover
@ 2015-09-18  6:51 Ramana Reddy
  2015-09-18  7:50 ` Bjørn Mork
  0 siblings, 1 reply; 4+ messages in thread
From: Ramana Reddy @ 2015-09-18  6:51 UTC (permalink / raw)
  To: kernelnewbies

Hi all,

I would like to know, when the TCP sequence no is rollover.
Who will do it. Is it happens in tcp code or through the hardware.
If is it is in the tcp code, can some one please point the code in the
linux kernel
where it happens.

Thanks & Regards,
Ramana
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150918/6cd9fc39/attachment.html 

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

* Would like know when the tcp sequence no is rollover
  2015-09-18  6:51 Would like know when the tcp sequence no is rollover Ramana Reddy
@ 2015-09-18  7:50 ` Bjørn Mork
       [not found]   ` <CAL2CrsNq3RKSKnJgtsz+RjhgVypjbawYADubjos+fNKTL6d4qg@mail.gmail.com>
  0 siblings, 1 reply; 4+ messages in thread
From: Bjørn Mork @ 2015-09-18  7:50 UTC (permalink / raw)
  To: kernelnewbies

Ramana Reddy <gtvrreddy@gmail.com> writes:

> Hi all,
>
> I would like to know, when the TCP sequence no is rollover.
> Who will do it. Is it happens in tcp code or through the hardware.
> If is it is in the tcp code, can some one please point the code in the
> linux kernel
> where it happens.

Why this interest in TCP sequence numbers?

I believe RFC793 is a better source for understanding how this works:

  It is essential to remember that the actual sequence number space is
  finite, though very large.  This space ranges from 0 to 2**32 - 1.
  Since the space is finite, all arithmetic dealing with sequence
  numbers must be performed modulo 2**32.

Do you still think you'll find an explicit rollover code path? Why would
you write code like that?


Bj?rn

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

* Would like know when the tcp sequence no is rollover
       [not found]   ` <CAL2CrsNq3RKSKnJgtsz+RjhgVypjbawYADubjos+fNKTL6d4qg@mail.gmail.com>
@ 2015-09-20  9:19     ` Ramana Reddy
  2015-09-20  9:33       ` Bjørn Mork
  0 siblings, 1 reply; 4+ messages in thread
From: Ramana Reddy @ 2015-09-20  9:19 UTC (permalink / raw)
  To: kernelnewbies

Hi Bj?rn,

Thanks for your reply. Actually, I want to do some small experiment, so
would need this tcp sequence roll over code.
If you know some thing in this regards, please let me know.

Thanks & Regards,
Ramana

On Fri, Sep 18, 2015 at 7:17 PM, Ramana Reddy <gtvrreddy@gmail.com> wrote:

> Hi,
> Thanks for your reply. Actually, I want to restrict the TCP Sequence range
> to a half range and rollover after
> crosses that value. In anotherway, I want to use only half the TCP
> sequence and once it crosses that value will rollover.
>
> Thanks,
> Ramana
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150920/02aef304/attachment.html 

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

* Would like know when the tcp sequence no is rollover
  2015-09-20  9:19     ` Ramana Reddy
@ 2015-09-20  9:33       ` Bjørn Mork
  0 siblings, 0 replies; 4+ messages in thread
From: Bjørn Mork @ 2015-09-20  9:33 UTC (permalink / raw)
  To: kernelnewbies

Ramana Reddy <gtvrreddy@gmail.com> writes:

> Hi Bj?rn,
>
> Thanks for your reply. Actually, I want to do some small experiment, so
> would need this tcp sequence roll over code.
> If you know some thing in this regards, please let me know.

There isn't much more to say, I think.  All that's left is hard work.
Since there is no existing rollover logic, you'll have to track down
every single sequence number calculation in the kernel and modify them
with additional rollover code.  Note that this includes every sequence
number comparison too.

I'm afraid I still don't see the point.  The end result will of course
not be TCP anymore, and will only be capable of talking to itself.  What
use is that?


Bj?rn

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

end of thread, other threads:[~2015-09-20  9:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-18  6:51 Would like know when the tcp sequence no is rollover Ramana Reddy
2015-09-18  7:50 ` Bjørn Mork
     [not found]   ` <CAL2CrsNq3RKSKnJgtsz+RjhgVypjbawYADubjos+fNKTL6d4qg@mail.gmail.com>
2015-09-20  9:19     ` Ramana Reddy
2015-09-20  9:33       ` Bjørn Mork

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).