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_ADDRSTRLEN];

Re: IPv6 Address as text (C)

2015-12-09 Thread Andrey V. Elsukov
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_ADDRSTRLEN]; struct ifaddrs *ifap, *ifa; int error;

Re: IPv6 Address as text (C)

2015-12-09 Thread Mark Atkinson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/9/15 7:25 AM, Ken Moore wrote: > 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 get

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 for a given device u

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 for a given device usi

Re: IPv6 Address as text (C)

2015-12-09 Thread Hiroki Sato
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 for a given device using the C system ke> libraries and was wonde

IPv6 Address as text (C)

2015-12-09 Thread Ken Moore
Note: Please CC me on replies - I am not subscribed to this list. I am having a bit of trouble getting an accurate string representation of the current IPv6 address for a given device using the C system libraries and was wondering of somebody with more experience than me might be able to spot