in reply to Converting decimal IP addresses to binary

It should would be nice if you could extend these examples to recognize and manipulate IPv6-level IPs- especially in a tutorial about TCP/IP.
AgentM Systems nor Nasca Enterprises nor Bone::Easy nor Macperl is responsible for the comments made by AgentM. Remember, you can build any logical system with NOR.
  • Comment on Re: Converting decimal IP addresses to binary

Replies are listed 'Best First'.
Re: Re: Converting decimal IP addresses to binary
by Coyote (Deacon) on Jan 31, 2001 at 00:35 UTC
    IPv6 is beyond the scope of my tutorial which is for internal staff training, but I don't mind doing IPv6 versions of my conversion functions for PM. Should I add the IPv6 versions to the snippets I've already submitted or should I create new ones? I'm still a bit new here and not sure of monkly etiquette.

    ----
    Coyote

      Heck, I'd be more willing to ++ a plus that had more effort put into it (++IPv6). One question though, aren't your functions functionally equivalent to the inet_xxx series combined with an sprintf to return a human-readable string?
      AgentM Systems nor Nasca Enterprises nor Bone::Easy nor Macperl is responsible for the comments made by AgentM. Remember, you can build any logical system with NOR.
        I didn't think of looking in the Socket module for the inet_aton or inet_ntoa functions since I had a pretty good idea of how to approach the problem. Thanks for the pointer. TIMTOWTDI.

        ----
        Coyote