Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming > #1064

Re: Incrementing IPv6 address

From Willem <willem@toad.stack.nl>
Newsgroups comp.programming
Subject Re: Incrementing IPv6 address
Date 2011-11-30 13:44 +0000
Organization Stack Usenet News Service
Message-ID <slrnjdccpg.2or6.willem@toad.stack.nl> (permalink)
References <65c6afc7-ed5a-4372-8953-f3270a11f4ba@y6g2000yqe.googlegroups.com>

Show all headers | View raw


Tester Tester wrote:
) hello every body.
) I am working in address incrementation(+1) using c language.User
) inputs a value which is in hex address and incremented by 1.
) Suppose my address is - abc5:5723:2109:ffff:76af:82ea:9256:ffff.
) So my output becomes - abc5:5723:2109:ffff:76af:82ea:9257:0000
)
) I already parse the entire string and put it in 8 different array but
) unable to do when the the last 4 digit reaches FFFF..I could not write
) the logic of that last portion.can any body help me to solve the
) problem?

Can you describe, in plain old English, what's supposed to happen when
a set of digits that is 0xffff is increased ?

So basically, when it's not 0xffff, it's increased by 1, and when
it *is* 0xffff, then what should happen ?


SaSW, Willem
-- 
Disclaimer: I am in no way responsible for any of the statements
            made in the above text. For all I know I might be
            drugged or something..
            No I'm not paranoid. You all think I'm paranoid, don't you !
#EOT

Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Incrementing IPv6 address Tester Tester <codectest99@gmail.com> - 2011-11-30 05:11 -0800
  Re: Incrementing IPv6 address Willem <willem@toad.stack.nl> - 2011-11-30 13:44 +0000
  Re: Incrementing IPv6 address Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-11-30 16:51 +0000

csiph-web