[php-src] PR #21631: ext/sockets: Enable AF_PACKET raw buffer support in socket_sendto/soc…
| From: | devnexen | Date: | Sat, 04 Apr 2026 05:38:23 +0000 |
| Subject: | [php-src] PR #21631: ext/sockets: Enable AF_PACKET raw buffer support in socket_sendto/soc… | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-35535@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21631
Author: devnexen
…ket_recvfrom.
Take a new approach from PR #17926: instead of parsing ethernet/IP/TCP/UDP headers in C, expose the
raw frame as a string to userland, letting users handle protocol decoding safely in PHP. This
addresses the security concerns raised during review.
Also rename opaque argument variables (arg1..arg6) to meaningful names in both functions and fix a
bug in the commented-out sendto code that was using &sin instead of &sll.