diff options
| author | Christian Krinitsin <mail@krinitsin.com> | 2025-07-03 19:39:53 +0200 |
|---|---|---|
| committer | Christian Krinitsin <mail@krinitsin.com> | 2025-07-03 19:39:53 +0200 |
| commit | dee4dcba78baf712cab403d47d9db319ab7f95d6 (patch) | |
| tree | 418478faf06786701a56268672f73d6b0b4eb239 /results/classifier/deepseek-2/output/socket/1837 | |
| parent | 4d9e26c0333abd39bdbd039dcdb30ed429c475ba (diff) | |
| download | emulator-bug-study-dee4dcba78baf712cab403d47d9db319ab7f95d6.tar.gz emulator-bug-study-dee4dcba78baf712cab403d47d9db319ab7f95d6.zip | |
restructure results
Diffstat (limited to 'results/classifier/deepseek-2/output/socket/1837')
| -rw-r--r-- | results/classifier/deepseek-2/output/socket/1837 | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/results/classifier/deepseek-2/output/socket/1837 b/results/classifier/deepseek-2/output/socket/1837 deleted file mode 100644 index 72846ad8..00000000 --- a/results/classifier/deepseek-2/output/socket/1837 +++ /dev/null @@ -1,36 +0,0 @@ - -Support IP_MULTICAST_IF socket option in linux-user -Additional information: -I've run into this limitation in qemu-aarch64-static version Debian 1:6.2+dfsg-2ubuntu6.12, but from the link above, it doesn't seem to be implemented on master yet. - -Here's some source code that demonstrates the failure: -``` -#include <sys/socket.h> -#include <arpa/inet.h> -#include <netinet/ip.h> -#include <unistd.h> -#include <assert.h> -#include <stdio.h> - -int main() -{ - int fd, ret; - struct in_addr addr = {htonl(INADDR_LOOPBACK)}; - - fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); - assert(fd >= 0); - ret = setsockopt(fd, IPPROTO_IP, IP_MULTICAST_IF, &addr, sizeof(addr)); - if (ret < 0) - { - perror("setsockopt failed"); - return 1; - } - close(fd); - printf("Success!\n"); - return 0; -} -``` - -When run under qemu, it gives the error `setsockopt failed: Protocol not available`. - -It doesn't look like it should be too hard to support (certainly no worse than IP_ADD_MEMBERSHIP). Let me know if I can help with a patch. |
