Re: tool for converting IPv6 address strings

2001-03-08 Thread Peter Bieringer
Hi itojun, At 03:20 23.02.2001, Jun-ichiro itojun Hagino wrote: this should be okay. Thank you very much, also to Arkadiusz Miskiewicz, which sends me similar code. I have already ran some tests - very well. Will publish a small binary soon at the tools section, because it will be

Re: tool for converting IPv6 address strings

2001-03-08 Thread Peter Bieringer
Hi, At 03:29 23.02.2001, Ryan Sweat wrote: - Original Message - From: "Ryan Sweat" [EMAIL PROTECTED] Peter, while i dont have the exact tool you are looking for, I believe I may have one that users of this list may benefit from. If you have ever setup reverse dns with ipv6

Re: S: tool for converting IPv6 address strings

2001-03-08 Thread Marc Roger
Peter, ftp://ftp.ripe.net/tools/Net-IP-1.0.tar.gz is a perl module by the RIPE NCC for manipulating IPv4 and IPv6 addresses. For instance: #!/usr/bin/perl use Net::IP; my $ip = new Net::IP('3ffe:0400:0100:f101::::0001') or die (Net::IP::Error()); print ("IP : ".$ip-ip()."\n");

S: tool for converting IPv6 address strings

2001-02-22 Thread Peter Bieringer
Hi, I'm looking for a small utility (C, Perl) which converts IPv6 address strings like: Input like: 3ffe:0400:0100:f101::::0001 Output (short format): 3ffe:400:100:f101::1 Reason: I want to extend my current not always working duplicate address detection on adding IPv6 addresses

Re: tool for converting IPv6 address strings

2001-02-22 Thread Ryan Sweat
: "Peter Bieringer" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, February 22, 2001 3:55 PM Subject: S: tool for converting IPv6 address strings Hi, I'm looking for a small utility (C, Perl) which converts IPv6 address strings like: Input like: 3ffe

Re: tool for converting IPv6 address strings

2001-02-22 Thread Jun-ichiro itojun Hagino
this should be okay. itojun #include sys/types.h #include sys/socket.h #include stdio.h #include netdb.h int main(argc, argv) int argc; char **argv; { char hbuf[NI_MAXHOST]; struct addrinfo hints, *res; int error; #ifdef NI_WITHSCOPEID