Operating System - HP-UX
1833780 Members
2201 Online
110063 Solutions
New Discussion

Don't know how to interpret sin6_scope_id

 
Nicoara Liviu
New Member

Don't know how to interpret sin6_scope_id

Hi,

I am not sure how to interpret the result of the attached test case.

It is an IPv6 server, which accepts a connection from a client, both running on the localhost in my setup. Calling getpeername from the client returns a sockaddr_in6 object which contains 0x9FFFFFFF in the sin6_scope_id member which I do not know how to interpret. AFAIK, the processing of sin6_scope_id member is implementation-defined. Where can I find more information about it?

~$ uname -a
HP-UX twister B.11.31 U ia64 3417177861 unlimited-user license
~$ cc -V
(Bundled) cc: HP C/aC++ B3910B A.06.12 [Oct 11 2006]

Build both programs like:

$ cc -o s s.c
$ cc -o c c.c

Run the server in the background:

$ ./s &

And then run the client:

$ ./c

Thanks!