Operating System - HP-UX
1833216 Members
3177 Online
110051 Solutions
New Discussion

sin6_scope_id field does not appear to be initialized

 
David Ritter
Occasional Advisor

sin6_scope_id field does not appear to be initialized

Hello,

A colleague of mine posted this question a while ago and I am researching the same issue.

My test case has 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. It appears that the field is not being initialized. I can not find anything in the HP documentation suggesting that this field is unused. Am I using it wrong? Any advice/help would be greatly appreciated.

~$ 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!