Public bug reported: Hi. Im running ubuntu-dev (soon to be 7.10) on x64 architecture.
I'm trying to send a UDP packet using PHP (5.2.3-1ubuntu6). The following script sends one UDP packet. It works correctly (generates correct checksum) on PHP 5.2.3 under Windows XP (32 bit). However on my Ubuntu machine, the UDP checksum is calculated wrong so the packet is discarded. <? $data = 'test123'; $fwd_sock = stream_socket_client('udp://localhost:44200', $errno, $errstr); if (!$fwd_sock) echo "$errstr ($errno)\n"; stream_socket_sendto($fwd_sock, $data); fclose($fwd_sock); ?> Generated UDP packet: 0000 00 00 03 04 00 00 00 11 95 42 42 49 00 00 08 00 .........BBI.... 0010 45 00 00 23 7d 6a 40 00 40 11 bf 5d 7f 00 00 01 [EMAIL PROTECTED]@..].... 0020 7f 00 00 01 80 13 ac a8 00 0f fe 22 74 65 73 74 ..........."test 0030 31 32 33 123 Checksum is 0xfe22. Correct checksum should be 0x8905 according to Wireshark. ** Affects: php5 (Ubuntu) Importance: Undecided Status: New ** Tags: checksum udp ** Tags added: checksum udp -- wrong udp checksums https://bugs.launchpad.net/bugs/153253 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs