Skip Menu |

This queue is for tickets about the Socket CPAN distribution.

Report information
The Basics
Id: 32628
Status: resolved
Priority: 0/
Queue: Socket

Owner: Nobody in particular
Requestors: leonerd-cpan [...]

Bug Information
Severity: (no value)
Broken in: 1.5
Fixed in: 1.95

Subject: pack_sockaddr_in() does not set "sin_len" field on systems using BSD4.4 sockaddr_in structure
Download (untitled) / with headers
text/plain 534b
Because the sin_len field isn't set, you can no longer use simple string comparison to compare the output of pack_sockaddr_in() with a real address generated by the kernel/libc. Hence my test failure: I've had a look into it but I can't see an easy way to tell if sin_len is used on the platform from just the XS code - perhaps have the Makefile.PL include a list of those platforms it is used on, and pass a -DHAVE_SIN_LEN in to the CFLAGS? -- Paul Evans
Download (untitled) / with headers
text/plain 193b
Since I'm now looking after Socket as a dual-life module on CPAN, I'll have a hack at fixing this in the first round of updates after the dual- life nature is properly synced. -- Paul Evans
Download (untitled) / with headers
text/plain 155b
On second thoughts, I distinctly remember fixing this around 1.93*mumble* in Perl core. Now it's dual-lifed on CPAN, it's fixed here too. -- Paul Evans

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to