IPv6 address increment

This is a discussion on IPv6 address increment within the C Programming forums, part of the General Programming Boards category; Hii every body.. how to increase the addressing format by 1(using C language).Suppose my address is fa23:aabf:ffff My output will ...

  1. #1
    Registered User
    Join Date
    Nov 2011
    Posts
    2

    IPv6 address increment

    Hii every body..

    how to increase the addressing format by 1(using C language).Suppose my address is
    fa23:aabf:ffff
    My output will be - fa23:aac0:0000
    Any suggestion??

  2. #2
    Registered User manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    Kolkata@India
    Posts
    2,498
    >Any suggestion??
    Do you know how that increment took place ?
    If not.. read up on hexadecimal numbers.
    Manasij Mukherjee | gcc-4.8.2 @Arch Linux
    Slow and Steady wins the race... if and only if :
    1.None of the other participants are fast and steady.
    2.The fast and unsteady suddenly falls asleep while running !



  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,420
    Just in case it's already answered elsewhere -> How To Increment IPv6 Address? - C And C++ | Dream.In.Code
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Post Increment an Pre Increment operators in c++
    By anil_ in forum C++ Programming
    Replies: 4
    Last Post: 11-12-2011, 07:27 PM
  2. IPv6 Address
    By sarathius in forum Networking/Device Communication
    Replies: 8
    Last Post: 03-02-2008, 04:52 AM
  3. IPv6 convert
    By smmad in forum C++ Programming
    Replies: 0
    Last Post: 05-02-2007, 03:53 AM
  4. Increment the address stored in a pointer???
    By patricio2626 in forum C++ Programming
    Replies: 9
    Last Post: 04-04-2007, 06:36 PM
  5. Post increment and pre increment help
    By noob2c in forum C++ Programming
    Replies: 5
    Last Post: 08-05-2003, 03:03 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21