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

Derrick J Brashear shadow@dementia.org
Wed, 18 Aug 2004 20:29:41 -0400 (EDT)


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.