[Serusers] Re: bug in last changes for "rport-received" tags

Andrei Pelinescu-Onciul pelinescu-onciul at fokus.fraunhofer.de
Sun Apr 6 02:26:41 CEST 2003


On Apr 05, 2003 at 18:38, Sergio Miguel Garcia <sergio at cooltechintl.com> wrote:
> I have been testing the last changes about the "rport-received" tags, and I
> have found the next bug:
> 
[...]
> 
> I've been checking other pairs of ports sent and received like 1667-33542,
> 1507-58117, 1509-58629, 1511-59141 and the second is the network address
> order of the first ( 1667 = ntohs(33542) ) .
> 
> I think that you forget to make a htons() of the port received in host
> format before sending the packet back to network.

Yes you're right (well almost, I did an extra htons -- the port was kept in
network byte order).
> 
> Please, let me know when this issue is solved in the CVS.

It should be fixed, however I haven't tested it. I hope I didn't miss
anything :-)

Thanks,
Andrei



More information about the sr-users mailing list