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


Groups > comp.programming > #1064

Re: Incrementing IPv6 address

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!news.stack.nl!.POSTED!not-for-mail
From Willem <willem@toad.stack.nl>
Newsgroups comp.programming
Subject Re: Incrementing IPv6 address
Date Wed, 30 Nov 2011 13:44:16 +0000 (UTC)
Organization Stack Usenet News Service
Lines 26
Message-ID <slrnjdccpg.2or6.willem@toad.stack.nl> (permalink)
References <65c6afc7-ed5a-4372-8953-f3270a11f4ba@y6g2000yqe.googlegroups.com>
NNTP-Posting-Host toad.stack.nl
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
X-Trace mud.stack.nl 1322660656 42240 2001:610:1108:5010::135 (30 Nov 2011 13:44:16 GMT)
X-Complaints-To abuse@stack.nl
NNTP-Posting-Date Wed, 30 Nov 2011 13:44:16 +0000 (UTC)
User-Agent slrn/0.9.9p1 (FreeBSD)
Xref x330-a1.tempe.blueboxinc.net comp.programming:1064

Show key headers only | 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