Thread: Expanding IPv6 address using inet_pton

  1. #1
    Registered User
    Join Date
    Dec 2011
    Posts
    4

    Expanding IPv6 address using inet_pton

    hello every body,
    My name is roxy and i am from brazil.I want to expand IPv6 address using inet_pton().After that increment the address by 1 using C code.If my address is - 1234:12::ffff then after expand it will be 1234:0012:0000:0000:0000:0000:0000:ffff
    When I increment the address it will display - 1234:0012:0000:0000:0000:0000:0001:0000
    Whenever it will reaches ffff it just put 0x0000 and increment the next value by 1.
    I already done some code part(not the increment part).Please help me in this matter.Please find the attach doc.
    Attached Files Attached Files

  2. #2
    VIM addict
    Join Date
    May 2009
    Location
    Chennai, India
    Posts
    43
    As you are a new user have a look at the practice of using the code tags

    Code tags will make your program readable in the post itself instead of everyone doing the download from attachment and then having a look to find the things (Ofcourse it saves time for everyone).

    Can you elaborate about the result you are expecting from the code. As far as i can see the code has some stuff which i have never used (Might be Turbo C thing like strcnt, conio.h, getch )

  3. #3
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Crosspost, answers here - Expanding IPv6 address using inet_pton

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    @roxynatal - Dont use the report post link to ask for help.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. IPv6 address increment
    By JNeha in forum C Programming
    Replies: 2
    Last Post: 11-30-2011, 11:42 AM
  2. error C2065: 'inet_pton' : undeclared identifier - ipv6
    By WeberGer in forum Networking/Device Communication
    Replies: 2
    Last Post: 01-14-2010, 11:38 AM
  3. IPv6 Address
    By sarathius in forum Networking/Device Communication
    Replies: 8
    Last Post: 03-02-2008, 05:52 AM
  4. inet_pton problems
    By KneeLess in forum Networking/Device Communication
    Replies: 1
    Last Post: 09-07-2005, 01:03 AM
  5. Replies: 1
    Last Post: 04-05-2003, 08:39 AM