[OpenAFS-devel] pr_Initialize falis when called within a simple application

John Hayes jhh@envirobat.org
Thu, 19 Aug 2004 08:11:36 -0400 (EDT)


I have seen the follow up post to this. I ahven't tried byte swapping.

I have tried explicitly setting the address but that doesn't appear ot
have much affect.

There's a lot of stuff to go through to figure out what may be different
about the way the test program and klog make calls.

At this point what I may do is lift the klog code out and start dumming
that down to the smallest possible set and make it a library to use with
the application I need to develop.

John Hayes

> On Tue, 17 Aug 2004, John Hayes wrote:
>
>> The portion of the strace for klog that appears relevant is:
>> sendmsg(3, {msg_name(16)={sa_family=AF_INET, sin_port=htons(7004),
>> sin_addr=inet_addr("35.9.7.10")}, msg_iov(2)=[{"A\"F\344\4\
>> 240\235\364\0\0\0\1\0\0\0\1\0\0\0\1\1\5\0\0"..., 28},
>> {"\0\0\0\26\0\0\0\3jhh\0\0\0\0\0A\"F\344AI\323\344\0\0\0"..., 44}], msg_
>>
>>
>> While the similar portion of strace for afstest is:
>> sendmsg(3, {msg_name(16)={sa_family=AF_INET, sin_port=htons(42166),
>> sin_addr=inet_addr("164.182.7.8")}, msg_iov(2)=[{"A\"G*\4\
>> 242p\324\0\0\0\1\0\0\0\1\0\0\0\1\1\5\0\0\0\0\0"..., 28},
>> {"\0\0\0\26\0\0\0\3jhh\0\0\0\0\0A\"G*AI\324*\0\0\0\10\333"..., 44}],
>> m
>>
>> What is boils down to at  this point is that the afstest application is
>> going to the wrong server.
>
> and the wrong port. so uh, byte swapping would be my guess. i tried on
> solaris. i bet you tried on linux.
>
> _______________________________________________
> OpenAFS-devel mailing list
> OpenAFS-devel@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-devel
>


-- 
Once you set foot on this path, you see it everywhere!