inet_pton problem in C

Discussion in 'C Programming' started by Neha Jain, Dec 2, 2011.

  1. Neha Jain

    Neha Jain Guest

    hello every body,

    My term project based on IPv6 address incrementation using C
    language.I already done that part.But in case IPv6 there is lots of
    other format exist.
    If i have ipv6 address like ::FFFF then my output becomes
    0000:0000:0000:0000:0000:0000:0000:FFFF
    or if my address is - 1233:6534:7651:abcd::FFFF
    so out put will - 1233:6534:7651:abcd:0000:0000:0000:FFFF
    I know using inet_pton function we can do it.But somehow I can't
    manage.
    can any body help me?
    Neha Jain, Dec 2, 2011
    #1
    1. Advertising

  2. Neha Jain <> writes:

    > My term project based on IPv6 address incrementation using C
    > language.I already done that part.But in case IPv6 there is lots of
    > other format exist.
    > If i have ipv6 address like ::FFFF then my output becomes
    > 0000:0000:0000:0000:0000:0000:0000:FFFF
    > or if my address is - 1233:6534:7651:abcd::FFFF
    > so out put will - 1233:6534:7651:abcd:0000:0000:0000:FFFF
    > I know using inet_pton function we can do it.But somehow I can't
    > manage.
    > can any body help me?


    There are two problems here. First, I don't see a problem. What is it
    that you can't manage? The second problem is that there is no code.
    Since English is not you first language, your best bet is to post what
    you have been able to write, and say what it should do that it doesn't
    (or what it does that it shouldn't).

    inet_pton and inet_ntop are not standard C functions, so problems that
    are specific to them are not topical here, but I think it is likely that
    your main problem is actually a C one, so post the code.

    --
    Ben.
    Ben Bacarisse, Dec 2, 2011
    #2
    1. Advertising

  3. Neha Jain

    Noob Guest

    Noob, Dec 2, 2011
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andreas Suurkuusk
    Replies:
    0
    Views:
    3,968
    Andreas Suurkuusk
    Jul 27, 2003
  2. Ted Miller
    Replies:
    0
    Views:
    5,149
    Ted Miller
    Sep 13, 2003
  3. Mike

    Problem problem problem :( Need Help

    Mike, May 7, 2004, in forum: ASP General
    Replies:
    2
    Views:
    545
    Bullschmidt
    May 11, 2004
  4. Roxy Natal

    Expanding IPv6 address using inet_pton

    Roxy Natal, Dec 6, 2011, in forum: C Programming
    Replies:
    1
    Views:
    657
    Ben Bacarisse
    Dec 6, 2011
  5. joao

    Question : inet_pton

    joao, Dec 7, 2011, in forum: C Programming
    Replies:
    3
    Views:
    360
    Ike Naar
    Dec 7, 2011
Loading...

Share This Page