Re: IPv6 Address as text (C)

2015-12-09 Thread Ken Moore
On 12/09/2015 11:51, Andrey V. Elsukov wrote: On 09.12.15 18:25, Ken Moore wrote: Simple example: #include __FBSDID("$FreeBSD$"); #include #include #include #include #include #include #include #include int main(int argc, char **argv) { char buf[INET6_

Re: IPv6 Address as text (C)

2015-12-09 Thread Ken Moore
On 12/09/2015 09:35, Hiroki Sato wrote: Ken Moore wrote in <5668369f.9020...@pcbsd.org>: ke> Note: Please CC me on replies - I am not subscribed to this list. ke> ke> I am having a bit of trouble getting an accurate string representation ke> of the current IPv6 address

Re: IPv6 Address as text (C)

2015-12-09 Thread Ken Moore
On 12/09/2015 09:35, Hiroki Sato wrote: Ken Moore wrote in <5668369f.9020...@pcbsd.org>: ke> Note: Please CC me on replies - I am not subscribed to this list. ke> ke> I am having a bit of trouble getting an accurate string representation ke> of the current IPv6 address

IPv6 Address as text (C)

2015-12-09 Thread Ken Moore
raddr[INET6_ADDRSTRLEN]; inet_ntop(AF_INET6, &in, straddr, sizeof(straddr)); return QString( inet_ntop(AF_INET6, &in, straddr, sizeof(straddr)) ); } [/code] Thanks! Any input is appreciated! -- ~~ Ken Moore ~~ PC-BSD/iXsystems ___ freebsd-n